homebrew-core/Formula/latex2rtf.rb

19 lines
666 B
Ruby
Raw Normal View History

2014-07-20 00:49:32 +00:00
require "formula"
2011-03-10 05:11:03 +00:00
class Latex2rtf < Formula
2014-07-20 00:49:32 +00:00
homepage "http://latex2rtf.sourceforge.net/"
url "https://downloads.sourceforge.net/project/latex2rtf/latex2rtf-unix/2.3.8/latex2rtf-2.3.8.tar.gz"
sha1 "334de546342078c7a3213cb5b554a0a900952641"
def install
2014-07-20 00:49:32 +00:00
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