# $Id: Portfile 88399 2011-12-30 22:55:56Z ryandesign@macports.org $

PortSystem 1.0

name            linuxdoc-tools
version         0.9.67
categories      textproc
maintainers     puffin.lb.shuttle.de:michael.klein openmaintainer
description     convert LinuxDoc SGML source into other formats
platforms       darwin
homepage        http://packages.qa.debian.org/l/linuxdoc-tools.html

long_description ${description}

master_sites    debian:l/linuxdoc-tools

patchfiles      patch-rtf2rtf.l.diff

distname        ${name}_${version}
worksrcdir      ${name}-${version}

checksums       rmd160  5ea6dc61b48f34a8940dc853ce64300a1d79cb2a \
                sha256  605f97ced9db6deb8e3aa0ee65372204eea81adbe6314f053229d16ff0622fa3

depends_build   bin:latex:texlive port:flex
depends_lib     port:gawk port:opensp port:texinfo

# rebuild configure script to work around bogus INSTALL path in entity-map/Makefile
use_autoconf    yes

variant universal {}

build.args      CC=${configure.cc} \
                CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

destroot.env    LANG=C

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex "<span id=\"latest_version\">(.*)</span>"
