diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-03-09 14:34:21 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-03-09 14:34:59 +0100 |
commit | cc247f17651eee9316efefb2994b148af7fe8226 (patch) | |
tree | 8cd240f9fa01d49852e13f716bf7ce0e3f40b8e2 /dev-go/goversion | |
parent | dev-ada/asis: Add ~x86 (diff) | |
download | gentoo-cc247f17651eee9316efefb2994b148af7fe8226.tar.gz gentoo-cc247f17651eee9316efefb2994b148af7fe8226.tar.bz2 gentoo-cc247f17651eee9316efefb2994b148af7fe8226.zip |
dev-go/goversion: Initial version
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-go/goversion')
-rw-r--r-- | dev-go/goversion/Manifest | 1 | ||||
-rw-r--r-- | dev-go/goversion/goversion-1.0.0_p20180222.ebuild | 31 | ||||
-rw-r--r-- | dev-go/goversion/metadata.xml | 11 |
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-go/goversion/Manifest b/dev-go/goversion/Manifest new file mode 100644 index 000000000000..1dbfeb0f392c --- /dev/null +++ b/dev-go/goversion/Manifest @@ -0,0 +1 @@ +DIST goversion-1.0.0_p20180222.tar.gz 8178 BLAKE2B f7ec0491bf35344b7b762dc6f14c7bae8cbf77ebf8e8e8373a7b04d772116f93787f184cbca11417b1487d1a91a7525f88fd6ad6f56622702142a2785380fc46 SHA512 0cfad73f7495baa722e36c7f773d4a5439099221a0e422e29abdd7724d1383673b453b39c8e823fcf386c4eb1afa356e527eaa99f5ea348b560eb8ca9bcc14c5 diff --git a/dev-go/goversion/goversion-1.0.0_p20180222.ebuild b/dev-go/goversion/goversion-1.0.0_p20180222.ebuild new file mode 100644 index 000000000000..5c2dad323821 --- /dev/null +++ b/dev-go/goversion/goversion-1.0.0_p20180222.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_PN="rsc.io/goversion" + +EGIT_COMMIT="04f0b81a96346cb33d48044cbffd24c8f57785ad" + +inherit golang-build golang-vcs-snapshot bash-completion-r1 +ARCHIVE_URI="https://github.com/rsc/goversion/archive/${EGIT_COMMIT}.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 +} diff --git a/dev-go/goversion/metadata.xml b/dev-go/goversion/metadata.xml new file mode 100644 index 000000000000..a313636a34dc --- /dev/null +++ b/dev-go/goversion/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mrueg@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> + <upstream> + <remote-id type="github">rsc/goversion</remote-id> + </upstream> +</pkgmetadata> |