# -*- 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          herrhotzenplotz gcli 2.4.0 v
github.tarball_from   archive

revision              0

categories            devel

license               BSD

maintainers           nomaintainer

description           CLI utility to interact with various Git forges

long_description      GCLI is a simple and portable CLI tool for interacting with GitHub, \
                      GitLab, and Gitea from the command line.

homepage              https://herrhotzenplotz.de/gcli/

checksums             rmd160  dcd7bd31d35ea5c4ef9fe12156b2b4cd15ffe496 \
                      sha256  540c21d44148a0fc10701238231d11702d868932b84d80ca3d76459424393724 \
                      size    420655

depends_lib-append    port:curl

depends_build-append  port:bison \
                      port:flex \
                      path:bin/pkg-config:pkgconfig

# `realpath` is not available on Monterey and earlier.
if {${macos_version_major} <= 12} {
    depends_build-append path:libexec/coreutils/libstdbuf.so:coreutils
}

