homebrew-core/Formula/latex2rtf.rb

19 lines
666 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Latex2rtf < Formula
homepage 'http://latex2rtf.sourceforge.net/'
2014-03-16 00:07:10 +00:00
url 'https://downloads.sourceforge.net/project/latex2rtf/latex2rtf-unix/2.3.6/latex2rtf-2.3.6.tar.gz'
sha1 'd0436c52ec4d82f379cdbd7c8b00ddac4f015da5'
def install
inreplace 'Makefile', "cp -p doc/latex2rtf.html $(DESTDIR)$(SUPPORTDIR)", "cp -p doc/web/* $(DESTDIR)$(SUPPORTDIR)"
system "make", "DESTDIR=",
"BINDIR=#{bin}",
"MANDIR=#{man1}",
"INFODIR=#{info}",
"SUPPORTDIR=#{share}/latex2rtf",
"CFGDIR=#{share}/latex2rtf/cfg",
"install"
end
end