homebrew-core/Formula/latex2html.rb
Adam Vandenberg bdd9049533 latex2html: install .sty files to share
By default latex2html will install to a TeX folder which it may not have
permissions for, or may not be appropriate.

Follow MacPorts and install to a known path.

Closes Homebrew/homebrew#22808.
2014-03-04 21:14:23 -08:00

18 lines
550 B
Ruby

require 'formula'
class Latex2html < Formula
homepage 'http://ctan.uib.no/help/Catalogue/entries/latex2html.html'
url 'http://ctan.uib.no/support/latex2html/latex2html-2012.tgz'
sha1 '54b42d3fb812b0bf3d25bbde7e0ea2daf84e69ff'
depends_on 'netpbm'
depends_on 'ghostscript' => :optional
depends_on :tex => :recommended
def install
system "./configure", "--prefix=#{prefix}",
"--without-mktexlsr",
"--with-texpath=#{share}/texmf/tex/latex/html"
system "make install"
end
end