# -*- 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.36.0 v
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
revision            0

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

checksums           ${distname}${extract.suffix} \
                        rmd160  2eb3b2eccdb8ff502156ee2c204065f54de5bfe3 \
                        sha256  1538d5453a4bd49b9d08b9eb1b2a1c4dec8c7e408d4a6d540822d353e72a9379 \
                        size    97213

# 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.6.0 \
                        rmd160  eed022d31d3cd2b2a5c7d1bad325b6667db1d831 \
                        sha256  28b3d661c0b094ccb133bb2f30a2db8fcd64be036f4fc42ee6c2ab4b00867bd3 \
                        size    1435230 \
                    golang.org/x/mod \
                        lock    v0.19.0 \
                        rmd160  c7151bc570da6418102a9522a17f08ec42e4d120 \
                        sha256  7a83a550982587f064f5f4f377fec2eb7c22496b495590edf634272437865352 \
                        size    123358 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.20 \
                        rmd160  ef20ccdf87de8b704c0c7118625b2beb31d8f1b4 \
                        sha256  397549e98cf5d40df585f31dc7902f017c37be88c64311dd2b4aeccab4009949 \
                        size    4717 \
                    github.com/BurntSushi/toml \
                        lock    v1.4.0 \
                        rmd160  61fb91ac7b8b358e229a361c615a3cf3ea1fbd14 \
                        sha256  45692255b59b4dbe0045a088a20eba0efafdca83446accf65847a3184686eff9 \
                        size    117687
