class Latex2rtf < Formula desc "Translate LaTeX to RTF" homepage "http://latex2rtf.sourceforge.net/" url "https://downloads.sourceforge.net/project/latex2rtf/latex2rtf-unix/2.3.8/latex2rtf-2.3.8.tar.gz" sha256 "5484530de16e96ce76aedf969c464656a5f8834e748849d9009049e26f8c4143" bottle do sha256 "364280e75787811b3769d454a9da4d25f6b79179c89cbfc93ea17518385060f3" => :sierra sha256 "74de3e2c0efab26094f94cedaa085e158b702556301b04d4e664460b96b890c9" => :el_capitan sha256 "22505c79e8806150f2f5ddfd492f648c3b25e7d753816ebd9f13e2d66b54c132" => :yosemite sha256 "34a3fbac89383affaa05f3d3a7d9276dacdf55adc04a926fd7645ab9c983c631" => :mavericks end 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