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

github.setup        jonas tig 2.5.12 tig-
github.tarball_from releases
revision            0
checksums           rmd160  df80508e96d2621fa610cab7432561c143cb44cd \
                    sha256  5dda8a098810bb499096e17fc9f69c0a5915a23f46be27209fc8195d7a792108 \
                    size    1190652

categories          devel
maintainers         {cal @neverpanic} \
                    openmaintainer
description         A text interface to git repositories
long_description    {*}${description}

homepage            https://jonas.github.io/tig/
license             GPL-2+

depends_build       port:pkgconfig
depends_lib         bin:git:git \
                    port:libiconv \
                    port:ncurses \
                    port:pcre2 \
                    port:readline

license_noconflict  git asciidoc

# -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
universal_variant   no

destroot.target-append install-doc-man

variant doc description {Install HTML documentation} {
    depends_build-append port:asciidoc
    depends_build-append port:xmlto

    build.target-append doc-html
    destroot.target-append install-doc-html
}

default_variants    +doc
