# -*- 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/amake/go2port 055169e0173eb484f7f9b22092e5f48299df29c7
version             20240119
categories          sysutils macports
maintainers         {amake @amake} openmaintainer
license             BSD

description         A tool for creating MacPorts portfiles for Go projects

long_description    ${description}

checksums           ${distname}${extract.suffix} \
                        rmd160  d2de11b5f8c4a24c0e5fb07f6aa3ad0eac5fb051 \
                        sha256  dce642f5e507205914695f2f1ad9007208c0851329abaaa4971dd00585b12839 \
                        size    16554

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/yaml.v2 \
                        lock    v2.4.0 \
                        rmd160  66e9feb7944b3804efa63155ed9b618717b8955c \
                        sha256  72812077e7f20278003de6ab0d85053d89131d64c443f39115a022114fd032b6 \
                        size    73231 \
                    gopkg.in/check.v1 \
                        lock    038fdea0a05b \
                        rmd160  0f1896097db9d42b2fb5d62999bb52c77635f758 \
                        sha256  a82bd5c6960aa523c4dd8b30d52c3a7e8a5382e91f25862ef277bedf5c107007 \
                        size    31647 \
                    golang.org/x/net \
                        lock    v0.20.0 \
                        rmd160  da27bb00763cd0e9796c81e6a8e2fbd358d6fbaf \
                        sha256  11d8a944c8758f6955dc431be141eb08a76acf2b6888395bbfb188f9c098dbd4 \
                        size    1486963 \
                    golang.org/x/crypto \
                        lock    v0.18.0 \
                        rmd160  53a8a4ac652109ef207962e696e4961b861cfca0 \
                        sha256  03da085c4d9f2ca1bbf100eba7b53512a6aad1b7aefb6d212ef7ea110dbe71be \
                        size    1809200 \
                    github.com/urfave/cli \
                        lock    v1.22.14 \
                        rmd160  e524faf0e1a24986b69d9cb65eeac73981041687 \
                        sha256  9a7fecc6b31328ed4362e5055f011fa35667314e6b4d7f2873a3c1b2f5482727 \
                        size    80450 \
                    github.com/stretchr/testify \
                        lock    v1.8.4 \
                        rmd160  8e1645055c9b1d8e117df7974034e74b7f600d27 \
                        sha256  6d0a77075bbe0f8f1c0cbed51dd4d174579db976fef39d9ae6b500aab8917d6a \
                        size    104469 \
                    github.com/russross/blackfriday \
                        lock    v2.1.0 \
                        rmd160  c42a9332a2c2f3074c6f7e8d37a58d6148d2af08 \
                        sha256  c4df56f2012a7d16471418245e78b5790569e27bbe8d72a860d7117a801a7fae \
                        size    92950 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/niemeyer/pretty \
                        lock    a10e7caefd8e \
                        rmd160  46bcfc3db9e3d98acbacd1f96d9483fa360f88b7 \
                        sha256  97b952a32175ba84349ef352e523bfa15bf3a06e07e44458a908061fbc519b40 \
                        size    9405 \
                    github.com/kr/text \
                        lock    v0.2.0 \
                        rmd160  48558c7e8ff67d510f83c66883907e95f4783163 \
                        sha256  2f2e21ac8a9d523e88cbba4039441defc4a66bfaa78811c900a88fcf28729c4c \
                        size    8702 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171 \
                    github.com/cpuguy83/go-md2man \
                        lock    v2.0.3 \
                        rmd160  f44cb99228e4f418c00979bf850d568837755b76 \
                        sha256  712375b6a4472b6eff9225cdf3e01a4d33e1e0753f713874ecd67a0d0c74bfea \
                        size    64980 \
                    github.com/BurntSushi/toml \
                        lock    v1.3.2 \
                        rmd160  d34d7e7532c67412d48f3777a5bba8cd5a04b0cd \
                        sha256  ba788b5f21507f40faa972bc86cb87d8929c798959f7402152d86120ac357d05 \
                        size    119417

build.cmd           make
build.target        build
build.args          version=${version}

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