# -*- 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.0 v
revision            0

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

checksums           direnv-2.37.0.tar.gz \
                    rmd160  60d20a871210f8349a4c1ad623fe6157670157ea \
                    sha256  6302f3eb824ae5f7d33475c6e9ac0ec46a228e282fca7dba881f3536575a25c8 \
                    size    102538

# 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

