summaryrefslogtreecommitdiff
path: root/dev-go/go-sys
diff options
context:
space:
mode:
Diffstat (limited to 'dev-go/go-sys')
-rw-r--r--dev-go/go-sys/Manifest6
-rw-r--r--dev-go/go-sys/go-sys-0_pre20180816.ebuild (renamed from dev-go/go-sys/go-sys-0_pre20150729.ebuild)26
-rw-r--r--dev-go/go-sys/go-sys-9999.ebuild24
3 files changed, 37 insertions, 19 deletions
diff --git a/dev-go/go-sys/Manifest b/dev-go/go-sys/Manifest
index f408309f4f98..0fb6379c7cd9 100644
--- a/dev-go/go-sys/Manifest
+++ b/dev-go/go-sys/Manifest
@@ -1,6 +1,6 @@
-DIST go-sys-0_pre20150729.tar.gz 529002 BLAKE2B cc51b55c9bad7fffb9bf4d3c00ffb62dbff0e6765873f5a4b07ab4afdc0066a4f8c9d943fa7d8532345207f5bd1eb2b219922f9e7d33d25eb699902b4f5b960c SHA512 f80afa938977f3945ab3f08462eaf5d8db430013240a11b1f8a43911948fd2a8a390192ea9ebf79434b348b2ca520267a0441b922110e70603fff4849e57c487
DIST go-sys-0_pre20160204.tar.gz 542894 BLAKE2B 6f3969e8beb9311a742b61a188826b92fcbb211cc0159870a2dad389710681ae415506f667feed1f82940c2f223acdb21ba8e09a94a322c2ee07948598397937 SHA512 59db0ba47447869f2339ea60b8766e1464f48e22a619da2aecc07977b146a54feb4e3fa4e6076b8d1c2deb11ffab3c820e4a61602f2ce3121df7cb08e0267569
-EBUILD go-sys-0_pre20150729.ebuild 929 BLAKE2B cd2b103f29b50acbab4bb90a2e02e6fcda41dbe5e9a1a79432f55b0e565157c7dcb7b95586c109c418e8ae02c8fb8a07f4e7d6c94902581e7b4b13eb30dfc385 SHA512 cc8ce0fae8f4409de4fe5125354fe24c43668edd72bd7d54d871ade8be6a45e238e5e890e3865f44231640f68a7a2526bd2ffc36c343fc5c389d473db06d94ef
+DIST go-sys-0_pre20180816.tar.gz 994494 BLAKE2B 24132a6dc2b8e73a28209418d8e89c62da4620b3ceed30ac51bd2f4e06a9bb37c9402e50f0f18b77ff9b0c4106836db894bb7f8d9b2ea77bca621aeb5999f460 SHA512 ae95fa505beab9791824fec5e4a52590b21d54af314db3219ef7545ab93059a5b8d1a6d3f81353852c72d2f515ad6bc9d6a0b5ae28b5b17a82cedd241165a2e4
EBUILD go-sys-0_pre20160204.ebuild 930 BLAKE2B 009e9db57b5422385b3ad8d95d719fea7bf99b42c31bf364d1e63943b938c8634fb08d86633cdfb6e03f12766c0de99e9682949d1406ab6bd36f7f7746f567b8 SHA512 eb059464c6202c63b50331ebe1375d2f9bff079ee2589417c848dd1629456abb625dd9758b5910f2e8c9a862322ffa29bd24cc1ba9a311366672c82880584670
-EBUILD go-sys-9999.ebuild 621 BLAKE2B 54cab560b7a3218e2186da51a1a7af9ba92f599bd6b83f727a3de5e69e55f7ea293910ad9445c02f80729b2503fc417e441918503745d7fe54d1668ac0785963 SHA512 b9abe7a584e2153ea42b0097af77efe6331d0106fb5184f5794d3e8818f48389b4d873e53be32757ca1b5379c49cba8ffde87f3fe695f30b578016ed081a2191
+EBUILD go-sys-0_pre20180816.ebuild 820 BLAKE2B ed34023da0a6975550f785a8ccf204f0828a4fd51772285b8c1f1114693225c2b609437631d072f8e079a2516d212c2d59eb6e892f0cbd878bebb397440a0bae SHA512 cac45410c6b17fdb1c5efc9c66f8b967fe81b794725a549d7f6a223eb3d34d5afa6e229fe053d59a653f11db4c44ac27cfb81544d5da0d9eaa77de26dd4183e7
+EBUILD go-sys-9999.ebuild 925 BLAKE2B 471f4d76451360d26121513e73b1ad9e4cc1d29c8141c6539ab544d9dda22037eddade850df06f42d1b4e1a42b62f1aa5ebeab94209cf8e29920d21a4aad7edb SHA512 7d3351550dd3777c9432481844998477c7bf739f4e1a9e74193aba6fa5e29361df3df6566dc33016b864a58aacf09d1245a9ac60b38549216df5772671a67da4
MISC metadata.xml 301 BLAKE2B 9ccb9a34913b74f256a6d9ed5f2caf99d4480d109725dff4ae48738eb74f130932253ebe3c085b121b3393a9d899248e9f10a8d684e7c00a56696b6d9daa6b5e SHA512 a0e26ad5f2b24f2d9f91b568423701fbcfccdd8cf06174a21e829eb851ad302ec677b5a5e32539e0d6701d90cebf503e233edae15aa908cd7c96dff6197148c9
diff --git a/dev-go/go-sys/go-sys-0_pre20150729.ebuild b/dev-go/go-sys/go-sys-0_pre20180816.ebuild
index 3a8840f6c759..e42e90c0451b 100644
--- a/dev-go/go-sys/go-sys-0_pre20150729.ebuild
+++ b/dev-go/go-sys/go-sys-0_pre20180816.ebuild
@@ -1,15 +1,14 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
EGO_PN=golang.org/x/sys/...
-EGO_SRC=golang.org/x/sys
if [[ ${PV} = *9999* ]]; then
inherit golang-vcs
else
- KEYWORDS="~amd64"
-EGIT_COMMIT="58da1121af381632b48b2843aeb16299f2e1dc50"
+ KEYWORDS="~amd64 ~arm ~x86"
+ EGIT_COMMIT="1c9583448a9c3aa0f9a6a5241bf73c0bd8aafded"
SRC_URI="https://github.com/golang/sys/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
inherit golang-vcs-snapshot
fi
@@ -24,10 +23,15 @@ DEPEND=""
RDEPEND=""
src_compile() {
- # Create a writable GOROOT in order to avoid sandbox violations.
- cp -sR "$(go env GOROOT)" "${T}/goroot" || die
- rm -rf "${T}/goroot/src/${EGO_SRC}" || die
- rm -rf "${T}/goroot/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_SRC}" || die
- export GOROOT="${T}/goroot"
- golang-build_src_compile
+ GOPATH="${S}" \
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_test() {
+ GOPATH="${S}" \
+ go test -v -work -x "${EGO_PN}" || die
+}
+
+src_install() {
+ golang_install_pkgs
}
diff --git a/dev-go/go-sys/go-sys-9999.ebuild b/dev-go/go-sys/go-sys-9999.ebuild
index 9ccb2c39b1ef..9fb94bbaa68a 100644
--- a/dev-go/go-sys/go-sys-9999.ebuild
+++ b/dev-go/go-sys/go-sys-9999.ebuild
@@ -1,15 +1,14 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
EGO_PN=golang.org/x/sys/...
-EGO_SRC=golang.org/x/sys
if [[ ${PV} = *9999* ]]; then
inherit golang-vcs
else
- KEYWORDS="~amd64"
-EGIT_COMMIT="58e109635f5d754f4b3a8a0172db65a52fcab866"
+ KEYWORDS="~amd64 ~arm ~x86"
+ EGIT_COMMIT="1c9583448a9c3aa0f9a6a5241bf73c0bd8aafded"
SRC_URI="https://github.com/golang/sys/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
inherit golang-vcs-snapshot
fi
@@ -22,3 +21,18 @@ SLOT="0/${PVR}"
IUSE=""
DEPEND=""
RDEPEND=""
+
+src_compile() {
+ GOPATH="${S}" GOBIN="$(go env GOROOT)/bin" \
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_test() {
+ GOPATH="${S}" GOBIN="$(go env GOROOT)/bin" \
+ go test -v -work -x "${EGO_PN}" || die
+}
+
+src_install() {
+ rm -rf "${S}/src/${EGO_PN%/...}/.git"* || die
+ golang_install_pkgs
+}