{"id":16747935,"url":"https://github.com/amake/go2port","last_synced_at":"2025-03-21T22:31:49.065Z","repository":{"id":38007228,"uuid":"147643724","full_name":"amake/go2port","owner":"amake","description":"A tool for generating MacPorts portfiles for Go projects","archived":false,"fork":false,"pushed_at":"2025-03-06T22:08:17.000Z","size":123,"stargazers_count":7,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T05:43:58.224Z","etag":null,"topics":["golang","macports"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-06T08:40:54.000Z","updated_at":"2025-03-06T22:08:21.000Z","dependencies_parsed_at":"2024-01-18T08:44:46.016Z","dependency_job_id":"b91cd2fd-277d-434d-aa88-72fe3638dfce","html_url":"https://github.com/amake/go2port","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fgo2port","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fgo2port/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fgo2port/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fgo2port/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amake","download_url":"https://codeload.github.com/amake/go2port/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880307,"owners_count":20525506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","macports"],"created_at":"2024-10-13T02:11:19.099Z","updated_at":"2025-03-21T22:31:48.676Z","avatar_url":"https://github.com/amake.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go2port: a MacPorts portfile generator for Go projects\n\ngo2port is a tool for generating and updating\n[MacPorts](https://www.macports.org/) portfiles for projects written in\n[Go](https://golang.org/).\n\n## Installation\n\nInstall with MacPorts:\n\n```\nsudo port install go2port\n```\n\nOr with Go:\n\n```\ngo get github.com/amake/go2port\n```\n\n## Usage\n\nSupply a Go package and a version to generate a portfile template. The result is\nsent to standard output by default:\n\n```\n$ go2port get github.com/amake/go2port 1.0.0\n# -*- 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\n\nPortSystem          1.0\nPortGroup           golang 1.0\n\ngo.setup            github.com/amake/go2port 1.0.0\ncategories\nmaintainers\nlicense\n\ndescription\n\nlong_description\n\nchecksums           ${distname}${extract.suffix} \\\n                        rmd160  8a0c94a4e840ede8633b305c467a2afc3184ca14 \\\n                        sha256  571217785e309f01e528842b246c8085189972696df525acacb1cf17dcd59bd5 \\\n                        size    4305\n\ngo.vendors          github.com/BurntSushi/toml \\\n                        lock    b26d9c308763d68093482582cea63d69be07a0f0 \\\n                        rmd160  08c91052763fa884c7d88f6b10a03bfbcdea93e8 \\\n                        sha256  360c150f4ec9f5450feee0009aba9555b6731ca0bbb2ce612c3b7b9173c0d896 \\\n                        size    41567 \\\n                    github.com/urfave/cli \\\n                        lock    cfb38830724cc34fedffe9a2a29fb54fa9169cd1 \\\n                        rmd160  b54f7232fbbfda640f7d9411a5dedab3adf6a888 \\\n                        sha256  94f12754129bce1d3435efd84826a73fc8af70f61f9264c60c1f554d425d503a \\\n                        size    58405 \\\n                    golang.org/x/crypto \\\n                        lock    0e37d006457bf46f9e6692014ba72ef82c33022c \\\n                        rmd160  dc6590753cf4472777b7a35a8ceacfb9a2316091 \\\n                        sha256  ab5b09609da7722997b32a55b58703e90815e8a8c28668444df62b00cac93aab \\\n                        size    1638395 \\\n                    gopkg.in/yaml.v2 \\\n                        lock    5420a8b6744d3b0345ab293f6fcba19c978f1183 \\\n                        rmd160  56eb283b31feac8db4ede3e24768e0f9999913d2 \\\n                        sha256  34dc73c7798abfa3bb96c46c25002ccc5b92543dc3e008a31e0ae94c2528e52b \\\n                        size    70231\n\ndestroot {\n    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/\n}\n```\n\nIf the project is hosted on GitHub or Bitbucket, go2port will automatically\ncalculate the checksums for the main distfile.\n\nIf the project uses a supported lockfile format for dependencies (currently\n`go.sum`, `glide.lock`, `Gopkg.lock`, or `GLOCKFILE`), go2port will also\nautomatically add `go.vendors` entries for dependencies.\n\nSee the [golang PortGroup\ndocumentation](https://guide.macports.org/#reference.portgroup.golang) for more\ninformation about specifying dependencies.\n\n**Note:** Many projects commit their dependency source e.g. in `vendor`. For\nsuch projects you should not specify `go.vendors`.\n\n### Updating existing ports\n\ngo2port can also update existing portfiles:\n\n```\n$ go2port update go2port 1.0.1\n```\n\nBy default this will overwrite an existing portfile (located with `port file\n\u003cportname\u003e`) with new checksums and dependency information.\n\n## License\n\ngo2port is available under the three-clause BSD license.\n\n## See also\n\n- [MacPorts Guide: golang\n  PortGroup](https://guide.macports.org/#reference.portgroup.golang)\n- [golang-1.0 PortGroup\ncode](https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/golang-1.0.tcl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famake%2Fgo2port","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famake%2Fgo2port","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famake%2Fgo2port/lists"}