forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-go/go-sys: 0_pre20150729 version bump
Package-Manager: portage-2.2.20
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST go-sys-0_pre20150518.tar.gz 528445 SHA256 8b8af041e424a8bd04a955a1104313f4eb3b282f064c555ef4edc53b552ce753 SHA512 90565340fa64b625877444c84589e1ba870403a239cf43e99ba194b071e89e6a4877b4b04bb85ba5966401e9b6361eb1b1ffa88404d727eb9f02938313264a9c WHIRLPOOL 9bf6bf148b8d63bcd863cf64d16c4f999bc68dd8dc382167122afbc14499dbdf8ca0e5397f3106556cd1e3ebe62f0df31a394fed42d1a506a311aa3f9d232c37 | ||
DIST go-sys-0_pre20150729.tar.gz 529002 SHA256 9f9e4a2bca96d9f9708770607e21395c3f4f873f9b6266cae1ba1da526729528 SHA512 f80afa938977f3945ab3f08462eaf5d8db430013240a11b1f8a43911948fd2a8a390192ea9ebf79434b348b2ca520267a0441b922110e70603fff4849e57c487 WHIRLPOOL 0b269666650f285521c9fd3486959957ad9279544baac7ab5caa21158fb10ed4de2b2e7c080ffca9aa352c8e5685f2035612d40a04c8f6c5f7093daf1a020029 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 1999-2015 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="58da1121af381632b48b2843aeb16299f2e1dc50" | ||
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/${PV}" | ||
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 | ||
} |