# -*- 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.10.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  d4b44bfc691459f7b483c2146412ba9b83931d39 \
                      sha256  500da41d29fa53ab412a81864624b9e2bcd0785be61234f6cfb6b3b031b83280 \
                      size    468555

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
