New formula: latex2rtf

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Fix man install path
This commit is contained in:
Aaron Ecay 2010-02-05 19:36:27 -05:00 committed by Adam Vandenberg
parent a4e5b9bf02
commit b5aa9995e7

16
Formula/latex2rtf.rb Normal file
View file

@ -0,0 +1,16 @@
require 'formula'
class Latex2rtf <Formula
url 'http://downloads.sourceforge.net/project/latex2rtf/latex2rtf-unix/2.0.0/latex2rtf-2.0.0.tar.gz'
homepage 'http://latex2rtf.sourceforge.net/'
md5 '39611b6dbb5ce78b48c7695f3fcafb88'
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