# $Id: Portfile 82731 2011-08-19 15:02:15Z macsforever2000@macports.org $

PortSystem 1.0

name	   latex2rtf
version	   2.1.0
categories	tex
platforms	darwin
maintainers	jmpp openmaintainer

description	Translator program intended to translate a LaTeX document into RTF
long_description	LaTeX2rtf is a translator program which is intended to translate a LaTeX \
			document (precisely: the text and a limited subset of LaTeX tags) into \
			the RTF format which can be imported by several textprocessors (including \
			Microsoft Word for Windows and Word for Macintosh).

homepage	http://latex2rtf.sourceforge.net/
master_sites	sourceforge
checksums           md5     e89b78f9cfe6d83c79e657a9390e8bc9 \
                    sha1    31e6280312b56c2c38cf6a3fddff21a9910c7d6f \
                    rmd160  e70f84055d088a5a582d2e2db451418a1ade2275

patchfiles	patch-Makefile.diff

depends_run	bin:tex:texlive \
		bin:gs:ghostscript \
		bin:convert:ImageMagick \
		bin:pnmtopng:netpbm

use_configure	no

destroot.target	install install-info

build.pre_args-append \
		PREFIX=${prefix} \
		CC=${configure.cc}

destroot.pre_args-append \
		DESTDIR=${destroot} \
		PREFIX=${prefix} \
		CC=${configure.cc}

test.run	yes

livecheck.type      sourceforge
livecheck.regex	    ${name}-unix (.*) released
