# -*- 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

PortSystem 1.0

name            linuxdoc-tools
version         0.9.82
checksums       rmd160  3b6ed28291649a419103037f800e62a17518f596 \
                sha256  212c4e5516e52340799f17eb3d69afcd5fedc0de48f0fdf3af25f9cbc993a37f \
                size    550046

categories      textproc
license         GPL-3+
maintainers     nomaintainer
description     convert LinuxDoc SGML source into other formats
platforms       darwin

long_description {*}${description}

homepage        https://gitlab.com/agmartin/linuxdoc-tools
master_sites    ${homepage}/-/archive/${version}/
use_bzip2       yes

depends_build   bin:latex:texlive

depends_lib     port:flex \
                port:opensp \
                port:perl5 \
                port:texinfo

variant universal {}

build.args      CC=${configure.cc} \
                CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                LANG=C \
                LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
                LEX=${prefix}/bin/flex

livecheck.type  regex
livecheck.url   ${homepage}/tags
livecheck.regex {tags/([^"]+)"}
