summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-12 00:01:15 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-12 00:01:15 +0100
commitd72a987a342949e200b5e9decbd71f246da53788 (patch)
treeea9d3f4ec74bd6ab18582852d7958d3f3176dfea /dev-go
parentc035b2b83f0e94c4b2e82184f00bcef874e6276b (diff)
gentoo auto-resync : 12:05:2024 - 00:01:15
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/Manifest.gzbin4888 -> 4884 bytes
-rw-r--r--dev-go/goversion/Manifest2
-rw-r--r--dev-go/goversion/goversion-1.2.0-r1.ebuild33
-rw-r--r--dev-go/goversion/goversion-1.2.0.ebuild29
4 files changed, 34 insertions, 30 deletions
diff --git a/dev-go/Manifest.gz b/dev-go/Manifest.gz
index 791114964812..427db42d035c 100644
--- a/dev-go/Manifest.gz
+++ b/dev-go/Manifest.gz
Binary files differ
diff --git a/dev-go/goversion/Manifest b/dev-go/goversion/Manifest
index daa6e86ba901..b878e42f37cb 100644
--- a/dev-go/goversion/Manifest
+++ b/dev-go/goversion/Manifest
@@ -1,3 +1,3 @@
DIST goversion-1.2.0.tar.gz 8586 BLAKE2B 76001c1ebbf55bf742a20f7434d7b28da3aaa8e24e2cb6d14c182192735d16184aabbfc47aedb5872ed2610c81c4e6d637f425597cebaacbbd7095f18cd715f4 SHA512 27a8ebe71679c9161556c8aa49356c2da54c7e7b3bf580aa18518e49bb919ea836a9958ae9fc8fdc86c3750afc900d6e1c17d87dea406366467a6ea9c8ed8931
-EBUILD goversion-1.2.0.ebuild 668 BLAKE2B add958badbe000255239501c3d772742b4de8eac1f0ae855becd01c37f2621ffa011b4c763072813855a84101a40bb8087cbc10e41212128d8593229daa332df SHA512 5e29999f85b32534e8cee9a0bd439e1ec37a745826f4e603c177470b2f36a1419b19aa349e630eccfd8c694a644edc9c6a9d5d9fc162f3b4ea693dec062d66ea
+EBUILD goversion-1.2.0-r1.ebuild 590 BLAKE2B 5d38539dc10d1c28f4cbbf0026fbbc2453220c235eba1e61380fb7cda12a6125b444fc565d656a80f58a33774a71e2cd092d3a654201225b321bf8b2d27dc0c1 SHA512 8ae9eb7000cc8601418e55aa82680c2e28f32faeb2df649b379e899e2c8391c3bd652357503757ccc690e6583300aa4e194c6f95209f7d5c4cde325eaedf7733
MISC metadata.xml 246 BLAKE2B 02325989f671c96e8250e0c4507b8c71e1a13b1526e3c23e54a19f307ce0547c69d8af2d50c6de97a501c0e88a1bf3c4eb23c0b2562826c5c949c2068faf88ca SHA512 f0f3e3fb00c908a0ae886e83d797f2801f66be2a41fe4f1b8cc68a16db353b815b1e3ea5d69d0b1bf5aa2356df2383d3401211389fc4a32ddbdfdcd6c7bbb122
diff --git a/dev-go/goversion/goversion-1.2.0-r1.ebuild b/dev-go/goversion/goversion-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..340fc82d4009
--- /dev/null
+++ b/dev-go/goversion/goversion-1.2.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="Print version used to build Go executables"
+HOMEPAGE="https://github.com/rsc/goversion https://rsc.io/goversion"
+SRC_URI="https://github.com/rsc/goversion/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_unpack() {
+ default
+ cat <<- EOF > "${S}"/go.mod
+ module rsc.io/goversion
+
+ go 1.17
+ EOF
+ go-module_src_unpack
+}
+
+src_compile() {
+ ego build -o ${PN} .
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc README.md
+}
diff --git a/dev-go/goversion/goversion-1.2.0.ebuild b/dev-go/goversion/goversion-1.2.0.ebuild
deleted file mode 100644
index d4c4b0f2d3b3..000000000000
--- a/dev-go/goversion/goversion-1.2.0.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-EGO_PN="rsc.io/goversion"
-
-inherit golang-build golang-vcs-snapshot bash-completion-r1
-ARCHIVE_URI="https://github.com/rsc/goversion/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-KEYWORDS="~amd64"
-
-DESCRIPTION="Print version used to build Go executables"
-HOMEPAGE="https://github.com/rsc/goversion https://rsc.io/goversion"
-SRC_URI="${ARCHIVE_URI}"
-
-LICENSE="BSD"
-SLOT="0"
-IUSE=""
-
-src_compile() {
- pushd src/${EGO_PN} || die
- GOPATH="${S}" go build -o ${PN} . || die
- popd || die
-}
-
-src_install() {
- dobin src/${EGO_PN}/${PN}
- dodoc src/${EGO_PN}/README.md
-}