# -*- 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.13.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  31550cb35d43ae0efd575f650cf3553f2e7099d1 \
                      sha256  3dd25f636e439f7af6187248e46f2b4078dffdca4fe2d506d0edb275515d62b4 \
                      size    490746

depends_lib-append    port:curl

depends_build-append  port:bash\
                      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
}

configure.env-append  SHELL=${prefix}/bin/bash
build.env-append      SHELL=${prefix}/bin/bash
