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

go.setup            github.com/google/go-licenses 2.0.1 v

categories          devel
maintainers         nomaintainer
# Plus Unlicense, which MacPorts doesn't know, but is permissive
license             Apache-2 BSD MIT

description         Reports on the licenses used by a Go package and its dependencies.
long_description \
    go-licenses analyzes the dependency tree of a Go package/binary. It can \
    output a report on the libraries used and under what license they can be \
    used. It can also collect all of the license documents, copyright notices \
    and source code into a directory in order to comply with license terms on \
    redistribution.

checksums           ${distname}${extract.suffix} \
                        rmd160  873177831634a7d3c9ca970d7cb8a64f5cf60d0d \
                        sha256  04a875604c0cc62217fea3d283c243a2e4298142cdfeafb088b9e486daabded3 \
                        size    201582

go.vendors          k8s.io/klog/v2 \
                        repo    github.com/kubernetes/klog \
                        lock    v2.90.1 \
                        rmd160  a0b582b7a311f425fe44a02a4e122741750d5cf0 \
                        sha256  b10c8a9dfccf78f4a07080c0b13e0553fef05d0dc3510ac3f563366e3cb9eb52 \
                        size    94202 \
                    golang.org/x/tools \
                        lock    v0.36.0 \
                        rmd160  c320b3dd7bd40e7cd41199cc576b4fefda51d4fd \
                        sha256  f2a1b3e347cca0e97672ad0c7036648961edfb806d60af0203901399916efa90 \
                        size    9079653 \
                    golang.org/x/text \
                        lock    v0.28.0 \
                        rmd160  e5ab05d3bbb0adafb3984b7d33035c018b6a164a \
                        sha256  f11d445bbe3c12de14510103f18253b1840863ae66bebe2dfd65eceddb2be645 \
                        size    8974651 \
                    golang.org/x/sys \
                        lock    v0.35.0 \
                        rmd160  94ac3a8dd72c3a5b79bc8f068285b77634935368 \
                        sha256  b1c65be93d2d2ced17bd5ad9386a2385fd7258c708d3879f69e2485a1cea1011 \
                        size    1531744 \
                    golang.org/x/sync \
                        lock    v0.16.0 \
                        rmd160  68d9738ce548abe5fee7f08d9a7ce87c6a3c56a8 \
                        sha256  490f41af712f24ebdd058f7b66666645800c32c66697c3f3878bc985a2cdac16 \
                        size    18193 \
                    golang.org/x/net \
                        lock    v0.43.0 \
                        rmd160  590f81e646da3a9eae5875bf83e7c83e2d453244 \
                        sha256  754e82a10a3b8f62f5d85a9350ab95b3b03225bdde2304ecace03545321768c5 \
                        size    1504620 \
                    golang.org/x/mod \
                        lock    v0.27.0 \
                        rmd160  d107a15de342de7f82c0aef7baf7ca37ad619a73 \
                        sha256  55309b486af125932eb81bca8f40d148da7cabba8d7310f3adef18a9f9532d5a \
                        size    126585 \
                    go.opencensus.io \
                        repo    github.com/census-instrumentation/opencensus-go \
                        lock    v0.24.0 \
                        rmd160  3ff78177f0e279b4c2f8aaa474fd747bbcb1e89c \
                        sha256  7a88d68f99dd9ee8dd460e954f98b158629a44ba85ffc8239e13a60e0802e57a \
                        size    176686 \
                    github.com/spf13/pflag \
                        lock    v1.0.5 \
                        rmd160  2ce81608a38c6f383a35bccd24d64361df5828c9 \
                        sha256  7f41acdcba65b1fab5b9b633947a139f9915b60f94bdab486cdbe9d90c54f61e \
                        size    50815 \
                    github.com/spf13/cobra \
                        lock    v1.7.0 \
                        rmd160  2d0592a4c5aca1ba5daa45cd1d4e662adadd0703 \
                        sha256  913afd358ab699baf7773e7a5661c9f6436c6f825da2a1d61623e69d2c0b4b2d \
                        size    187188 \
                    github.com/sergi/go-diff \
                        lock    v1.2.0 \
                        rmd160  0ee3ab8df694f8b9d8aeea2309da3512aa6ade66 \
                        sha256  c01c182c57692b98bc38d787e7428c63a11338a8f1a1931427ab184bbdf59df0 \
                        size    1333604 \
                    github.com/otiai10/copy \
                        lock    v1.10.0 \
                        rmd160  af69c5c712fcc06336dac97f637076863c9f4359 \
                        sha256  75ba3c89901faa94292d2c5dbfa1f2f0ac74d08a4337af0a9089d2d223273d50 \
                        size    17496 \
                    github.com/inconshreveable/mousetrap \
                        lock    v1.1.0 \
                        rmd160  88f9577df93ac0f8801d8960adc7f28e38867f3e \
                        sha256  f69af10ff08c0e87f92dac3ee5172d8ed02463725b74edfc8943ef018a1a632d \
                        size    5343 \
                    github.com/google/martian/v3 \
                        lock    v3.3.2 \
                        rmd160  639f1542072a80f08fbe978585ab0a18e289a5d0 \
                        sha256  90d14c8d674b2461b7ace085ab2fe093d5f9eb1bb96395ea94e5d612c6a11862 \
                        size    160573 \
                    github.com/google/licenseclassifier/v2 \
                        lock    v2.0.0 \
                        rmd160  f1d485627f5ad463b85d568216535ae93eb52a7b \
                        sha256  67425cf04e75448d14c27c8730e109d9a4f69ec9a3b6c8c73a8e4d537cd8ded8 \
                        size    941197 \
                    github.com/google/go-replayers/httpreplay \
                        lock    httpreplay/v1.2.0 \
                        rmd160  2ec8b1f0adeec652f8006e22db52c8006133a0d8 \
                        sha256  2d868369578c7143f6ed9f1f1f566a4f1b85396597a1cd9e8faefbc3258435cd \
                        size    66082 \
                    github.com/google/go-cmp \
                        lock    v0.6.0 \
                        rmd160  2c9f5dab93f8a0895591466fe4a07c5dd9166ae2 \
                        sha256  0d550825fae514f8a947ab7e42fcb874f509d9cbfa3ad2711d7570a25f31571a \
                        size    104795 \
                    github.com/golang/groupcache \
                        lock    41bb18bfe9da \
                        rmd160  dba4526dc11102f7cfc3ee7be23cb1416793e35b \
                        sha256  03b46be967afa501b74a1bf72211b08d6e8f6b2a3b42335105480b6df6e51980 \
                        size    26110 \
                    github.com/go-logr/logr \
                        lock    v1.2.0 \
                        rmd160  b9ef90fcdaaff369314b365cdadcca2d35dd50d3 \
                        sha256  aab4cb59f8f140a76179e032de59c54f8300d18eb642c664b16290cc5189aa20 \
                        size    36642 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171

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