7c648d9732
When interpolating in strings passed to Formula#system, it should be done in such a way that if any interpolated variables contain spaces, they are either (a) passed as part of a list or (b) protected by quotes if they are part of a long string (which is subject to shell expansion). Otherwise, they will be split on the space when expanded by the shell and passed as multiple arguments to whatever process is being executed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
16 lines
431 B
Ruby
16 lines
431 B
Ruby
require 'formula'
|
|
|
|
class Latex2rtf < Formula
|
|
url 'http://downloads.sourceforge.net/project/latex2rtf/latex2rtf-unix/2.1.0/latex2rtf-2.1.0.tar.gz'
|
|
homepage 'http://latex2rtf.sourceforge.net/'
|
|
md5 'e89b78f9cfe6d83c79e657a9390e8bc9'
|
|
|
|
def install
|
|
inreplace "Makefile" do |s|
|
|
s.remove_make_var! 'PREFIX?'
|
|
s.change_make_var! 'MAN_INSTALL', man1
|
|
end
|
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
end
|
|
end
|