# -*- 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 92264 2012-04-23 06:57:58Z ryandesign@macports.org $

PortSystem          1.0

name                rtf2latex2e
version             2.0.1
set branch          [join [lrange [split ${version} .] 0 1] .]
set my_version      [strsed ${version} {g/\./-/}]
set my_branch       [strsed ${branch} {g/\./-/}]
categories          tex
platforms           darwin
maintainers         jmpp openmaintainer
license             GPL-2+

description         Filter to convert rtf files into LaTeX2e code.

long_description    rtf2LaTeX2e is an RTF filter that generates LaTeX2e \
                    specific code, based on Paul DuBois' RTF reader. Its main \
                    features are detecting different text styles, reading \
                    embedded figures, tables, equations, footnotes, support \
                    for the inputenc package, translating hyperlinks.

homepage            http://rtf2latex2e.sourceforge.net/
master_sites        sourceforge:project/rtf2latex2e/rtf2latex2e-unix/${my_branch}
distname            ${name}-${my_version}
use_zip             yes

checksums           rmd160  63e7bd2aa3b4d3ef2e0da3d211bed6daf4c2a8bd \
                    sha256  74f97cbd2452413ad293ec1815cc7028b6e71e91c8747f04be28f738cac4a46b

use_configure       no

variant universal {}

build.post_args     PREFIX=${prefix} \
                    CC="${configure.cc} [get_canonical_archflags cc]"

destroot.destdir    PREFIX=${destroot}${prefix}

livecheck.version   ${my_version}
livecheck.regex     /${name}-(\[0-9-\]+)${extract.suffix}
