# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 116969 2014-02-11 14:39:51Z nicos@macports.org $

PortSystem          1.0

name                latex2rtf
version             2.3.5
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           rmd160  86ba1fadbded33acc6cc345315175ce7563b18c0 \
                    sha256  41bdde9ba1f03393013d939c2bfe1fc9bf0b815fa43ad2359a7e2bee76a36575


patchfiles          patch-Makefile.diff \
                    patch-Makefile-doc.diff \
                    patch-texinfo.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
