# -*- 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
PortGroup           github 1.0
PortGroup           makefile 1.0

conflicts           groff

github.setup        n-t-roff heirloom-doctools 191015
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             2019-10-15
categories          textproc
license             CDDL-1.1
maintainers         {makr @mohd-akram} openmaintainer

description         troff, nroff, and related utilities

long_description    The Heirloom Documentation Tools package provides troff, \
                    nroff, and related utilities to format manual pages and \
                    other documents for output on terminals and printers.

homepage            https://n-t-roff.github.io/heirloom/doctools

checksums           rmd160  d10ce4f4c5f8d636e5e28c6ade8619fdfe1d5f5a \
                    sha256  2e3ee6659b5b689f1281bdc99bafbda08cfa14039e38726df9e6399a61bdf087 \
                    size    5441592

# error: tool 'bison' requires Xcode
use_xcode           yes

build.target
build.args          ROOT=${destroot} \
                    PREFIX=${prefix} \
                    BINDIR=${prefix}/bin \
                    MANDIR=${prefix}/share/man \
                    LIBDIR=${prefix}/libexec/${name} \
                    PUBDIR=${prefix}/share/${name}/pub \
                    MACDIR=${prefix}/share/${name}/tmac \
                    FNTDIR=${prefix}/share/${name}/font \
                    TABDIR=${prefix}/share/${name}/nterm \
                    HYPDIR=${prefix}/share/${name}/hyphen \
                    REFDIR=${prefix}/share/${name}/reftools

use_parallel_build  no

destroot.args       {*}${build.args}
