# -*- 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.73
checksums       rmd160  1a168312d1a947a3a11f4ae6e6631f33695feb0c \
                sha256  6cc169c350ba40183714f7e42ff8f06da5ae151603fcaf7b806bf0284b66dc75 \
                size    518277

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 \
                path:bin/perl:perl5

depends_lib     port:flex \
                port:opensp \
                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/([^"]+)"}