diff options
author | 2016-02-20 11:57:05 -0800 | |
---|---|---|
committer | 2016-02-20 11:57:05 -0800 | |
commit | 476a8dd65631083f4e2ca8a68a027dcafebe4530 (patch) | |
tree | a576e69413e646bdf6ce2d12d9f2a75fbf09fa0d /dev-go/go-sys/go-sys-0_pre20160204.ebuild | |
parent | app-admin/consul: add missing go-sys dep to 0.6.3 (bug 575204) (diff) | |
download | gentoo-476a8dd65631083f4e2ca8a68a027dcafebe4530.tar.gz gentoo-476a8dd65631083f4e2ca8a68a027dcafebe4530.tar.bz2 gentoo-476a8dd65631083f4e2ca8a68a027dcafebe4530.zip |
dev-go/go-sys: version bump to 0_pre20160204
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-go/go-sys/go-sys-0_pre20160204.ebuild')
-rw-r--r-- | dev-go/go-sys/go-sys-0_pre20160204.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-go/go-sys/go-sys-0_pre20160204.ebuild b/dev-go/go-sys/go-sys-0_pre20160204.ebuild new file mode 100644 index 000000000000..1bbddb0b7914 --- /dev/null +++ b/dev-go/go-sys/go-sys-0_pre20160204.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +EGO_PN=golang.org/x/sys/... +EGO_SRC=golang.org/x/sys + +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64" + EGIT_COMMIT="50c6bc5e4292a1d4e65c6e9be5f53be28bcbe28e" + SRC_URI="https://github.com/golang/sys/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + inherit golang-vcs-snapshot +fi +inherit golang-build + +DESCRIPTION="Go packages for low-level interaction with the operating system" +HOMEPAGE="https://godoc.org/golang.org/x/sys" +LICENSE="BSD" +SLOT="0/${PVR}" +IUSE="" +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 +} |