# -*- 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 077abeee20e4bc2f74ab9b4e076dc92194b0ead3
version             20260412
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  f6d738cd412a5f538fa08356dbb5f9073e72c8d3 \
                        sha256  75e0c1b64ab814a78bc6930fe5a8ce546e503ee8d630d4e137082ffc4d706e38 \
                        size    16521

go.vendors          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/sync \
                        lock    v0.20.0 \
                        rmd160  055ee2de37e36c8907ce82d10372aea98eb41b1a \
                        sha256  34820b4ce3b524d6544ebda2436b389c282f61fb644755f4e3f49e81fcd4ff4a \
                        size    18182 \
                    golang.org/x/net \
                        lock    v0.53.0 \
                        rmd160  d23d60f1b158f4f7beeb51179cce2083160b2b88 \
                        sha256  fecafe9a9b3f2334ecf39a5ab842fc6be6b7f6ea1cad6284d00da025b64e1f26 \
                        size    1561993 \
                    golang.org/x/mod \
                        lock    v0.35.0 \
                        rmd160  374e93dfa922ce234509b1306976003163e52ec0 \
                        sha256  294365a9812928c145803eb08bd5cba4edade1c3a6bfa681fdfb410bf249ddca \
                        size    126375 \
                    golang.org/x/crypto \
                        lock    v0.50.0 \
                        rmd160  9518fc3954928f643f732ace7a0542d52f97be75 \
                        sha256  a2921be161dd08e0912ec83e3ea9db27252e5f1cbec2f78ee7b30f7a1a77c185 \
                        size    2150511 \
                    github.com/urfave/cli \
                        lock    v1.22.17 \
                        rmd160  f1ae035cf77b3762b3569166ab463a15ce958dad \
                        sha256  af9c4f3ff595b63dfb0e2becbd5fc1c2bba78f139f8510c1263590ab0d383c81 \
                        size    80529 \
                    github.com/russross/blackfriday/v2 \
                        lock    v2.1.0 \
                        rmd160  c42a9332a2c2f3074c6f7e8d37a58d6148d2af08 \
                        sha256  c4df56f2012a7d16471418245e78b5790569e27bbe8d72a860d7117a801a7fae \
                        size    92950 \
                    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/cpuguy83/go-md2man/v2 \
                        lock    v2.0.7 \
                        rmd160  823bc7b17c4d9fb7a9a2b955522fdb1defbfd4d3 \
                        sha256  397b066e0e349873b80cb888ebc2e1b7d7436ba54a63ef5a990933df68b301c5 \
                        size    11353 \
                    github.com/BurntSushi/toml \
                        lock    v1.6.0 \
                        rmd160  ee9250da7143a9cf859c12d8c40c6977eb60155a \
                        sha256  68a2fb378f023b562792f70079c48d68e25e58bdbe0914d4b3f21d70a692beb3 \
                        size    141986

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

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