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

PortSystem 1.0

name	   latex2rtf
version	   1.9.19
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 8a3b920d59f6b38736aa256c26374472 \
		sha1 e6a97b18d605326691a0094704678e5a9d42fbb7 \
		rmd160 00f5275153766ef3d81f4e5ef604d40de356ea14

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
