bdd9049533
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.
18 lines
550 B
Ruby
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
|