summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-04-11 14:20:48 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-04-11 14:21:33 +0200
commit61fc8ee7729ebf345994769fd0cbc9a7b537f719 (patch)
treea3f1c1209c7de94753520901defb918e5d84ca28 /dev-go/goversion
parentapp-emulation/docker: Version bump to 18.04.0 (diff)
downloadgentoo-61fc8ee7729ebf345994769fd0cbc9a7b537f719.tar.gz
gentoo-61fc8ee7729ebf345994769fd0cbc9a7b537f719.tar.bz2
gentoo-61fc8ee7729ebf345994769fd0cbc9a7b537f719.zip
dev-go/goversion: Version bump to 1.2.0
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'dev-go/goversion')
-rw-r--r--dev-go/goversion/Manifest1
-rw-r--r--dev-go/goversion/goversion-1.2.0.ebuild29
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-go/goversion/Manifest b/dev-go/goversion/Manifest
index 18ec6ae1f9c5..533768c3133b 100644
--- a/dev-go/goversion/Manifest
+++ b/dev-go/goversion/Manifest
@@ -1,2 +1,3 @@
DIST goversion-1.0.0_p20180403.tar.gz 8562 BLAKE2B 937d5531ef0f4cf8d72c1fded8ae0e1c6230f87a6ebadd3444aa87875c6712ff82d12b17ce78fcd41c6e6c2e51944a3dd824dbd0ffc3d768316c0b7b4b96edb9 SHA512 d446ca4d7b512b6fd5e510b3a7c2c11a7c72f6e915f4dd0ad9c61f8f93359ef08ff5256133245138798df3b0a3ab6d19157ddf76ea935858ba3230653cfde7ad
DIST goversion-1.0.0_p20180404.tar.gz 8580 BLAKE2B 3a9f80194d022c44836bfe5e12f9ff0bc3204be236047bbb9b00147374ae65ead37087376a60509653299d46bfdbb92dc7abec547e47bbfd0855eda134f8b301 SHA512 a8b99d9f01ea72ebbd4dad2ea73d1d08b75b3806821cbea3fe70828d748e50f34452c980acdd48a2b5bf4bf1399a28904e80b284f465fda356f46bb9895d6c52
+DIST goversion-1.2.0.tar.gz 8586 BLAKE2B 76001c1ebbf55bf742a20f7434d7b28da3aaa8e24e2cb6d14c182192735d16184aabbfc47aedb5872ed2610c81c4e6d637f425597cebaacbbd7095f18cd715f4 SHA512 27a8ebe71679c9161556c8aa49356c2da54c7e7b3bf580aa18518e49bb919ea836a9958ae9fc8fdc86c3750afc900d6e1c17d87dea406366467a6ea9c8ed8931
diff --git a/dev-go/goversion/goversion-1.2.0.ebuild b/dev-go/goversion/goversion-1.2.0.ebuild
new file mode 100644
index 000000000000..d4c4b0f2d3b3
--- /dev/null
+++ b/dev-go/goversion/goversion-1.2.0.ebuild
@@ -0,0 +1,29 @@
+# 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
+}