# $Id: Portfile 105629 2013-04-28 15:14:45Z nicos@macports.org $

PortSystem 1.0

name	   latex2rtf
version	   2.3.3
categories	tex
platforms	darwin
license         GPL-2+
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     bc57ec84ea46137a3bdd1a2b04709546 \
                    sha1    85dd36e8595f92f41b0b173a6b42279333bbb1a9 \
                    rmd160  7e94cf6f8f65654af020d2d9e0a71dd6f6ea2a9a

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.distname  ${name}-unix
