# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		latex2html
version		2008
revision	1
categories	print
platforms	darwin
maintainers	nomaintainer
description	Convert LaTeX into HTML.
long_description	\
		LATEX2HTML is a convertor written in Perl that		\
		converts LATEX documents to HTML.

homepage	http://saftsack.fs.uni-bayreuth.de/~latex2ht
master_sites	${homepage}/current/

checksums	md5     275ab6cfa8ca9328446b7f40d8dc302e		\
		sha1    5e0aa47572e0c13a4c5da51e963d5496be3f86e7	\
		rmd160  a95f06253d6fc8808ffedcad7edf8235194d7756

depends_run	bin:latex:texlive	\
		port:ghostscript	\
		port:netpbm

depends_lib	path:bin/perl:perl5

configure.perl  ${prefix}/bin/perl

configure.args	--without-mktexlsr	\
		--with-texpath=${prefix}/share/texmf-local/tex/latex/html

post-destroot	{ reinplace "s|gray85|rgb:d9/d9/d9|g" ${destroot}${prefix}/bin/pstoimg
}

post-activate	{ system "texhash" }

livecheck.type  regex
livecheck.url "http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/?C=M;O=D"
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
