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

name                direnv
categories          devel sysutils
license             MIT

maintainers         {michaelld @michaelld} openmaintainer

description         ${name} is an environment switcher for the shell.

long_description    \
    {*}${description} It knows how to hook into bash, zsh, tcsh and fish shell to \
    load or unload environment variables depending on the current \
    directory. This allows project-specific environment variables without \
    cluttering the \"~/.profile\" file.

homepage            https://direnv.net/

go.setup            github.com/direnv/direnv 2.37.1 v
revision            0

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  d253e68494aae826ae7be29e8ba74a65e2ad196c \
                        sha256  4142fbb661f3218913fac08d327c415e87b3e66bd0953185294ff8f3228ead24 \
                        size    102836

# see ${WORKSRCPATH}/gopath/src/github.com/direnv/direnv/go.sum
# pick the most recent version of each and verify downloading and building

go.vendors          golang.org/x/sys \
                        lock    v0.30.0 \
                        rmd160  4cd711df5da2e159b6efbb7fa42ae0a3a3f6eb53 \
                        sha256  76cfe40018bfa5418c1d19d47d8353c3375594013e2b2feea49f06018d2a3102 \
                        size    1523466 \
                    golang.org/x/mod \
                        lock    v0.25.0 \
                        rmd160  5936bc27463b64e63518d170478bd0725f2772f7 \
                        sha256  b1f05d8f05987cdcc622ff2c8a5c12a4161563ee793ad07527a0cc718b8ce4f3 \
                        size    126567 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.20 \
                        rmd160  ef20ccdf87de8b704c0c7118625b2beb31d8f1b4 \
                        sha256  397549e98cf5d40df585f31dc7902f017c37be88c64311dd2b4aeccab4009949 \
                        size    4717 \
                    github.com/BurntSushi/toml \
                        lock    v1.5.0 \
                        rmd160  49d05b71280b608decff341422e418dde7d3eb5a \
                        sha256  fa1ef74a26dbc3ffa82643fa9b51e99f54a19dd42a97d39e0ee20c2750bd2d94 \
                        size    118627
