summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-05-19 07:24:15 +0000
committerZac Medico <zmedico@gentoo.org>2015-05-19 07:24:15 +0000
commit63347ae8ade2f0807bbb5cf645d7ccc7cf207565 (patch)
tree371adc338224a0fc4c47abd208768b419656781e /dev-go
parentStable for x86, wrt bug #549258 (diff)
downloadhistorical-63347ae8ade2f0807bbb5cf645d7ccc7cf207565.tar.gz
historical-63347ae8ade2f0807bbb5cf645d7ccc7cf207565.tar.bz2
historical-63347ae8ade2f0807bbb5cf645d7ccc7cf207565.zip
Add go-sys.
Package-Manager: portage-2.2.20/cvs/Linux x86_64 Manifest-Sign-Key: 0xFDE8EF85AE5719A3
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/go-sys/ChangeLog9
-rw-r--r--dev-go/go-sys/Manifest13
-rw-r--r--dev-go/go-sys/go-sys-9999.ebuild44
-rw-r--r--dev-go/go-sys/metadata.xml7
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-go/go-sys/ChangeLog b/dev-go/go-sys/ChangeLog
new file mode 100644
index 000000000000..090516998956
--- /dev/null
+++ b/dev-go/go-sys/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-go/go-sys
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/ChangeLog,v 1.1 2015/05/19 07:24:08 zmedico Exp $
+
+*go-sys-9999 (19 May 2015)
+
+ 19 May 2015; Zac Medico <zmedico@gentoo.org> +go-sys-9999.ebuild,
+ +metadata.xml:
+ Add go-sys.
diff --git a/dev-go/go-sys/Manifest b/dev-go/go-sys/Manifest
new file mode 100644
index 000000000000..bbf3ef73b71a
--- /dev/null
+++ b/dev-go/go-sys/Manifest
@@ -0,0 +1,13 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+EBUILD go-sys-9999.ebuild 1262 SHA256 c11ef3a5370dca571ca812197b08b103768029bc6c1d07953fa4203568ce5e8a SHA512 6d2032623d1eeddbe6f0a3d029e06def5c7a7fa3ebb5356cad408894eda5bba441c9d8180d89d518b3ce6b7e8aa10f58b041f884886a981d7e99563d2c4eb06a WHIRLPOOL bd867e7f3fd602cf1436f4cf98011c0e12cbb62b6dcd1af922b82e64f3690fd0290ad13942ed9a09fabef8a9916700d016ecc1cbc4f19cf35f956b168e85338b
+MISC ChangeLog 327 SHA256 5ed1cc99b8bec31ca4531683d6d748f6cfbc33323b045fa9f9104f0c4b5c0c06 SHA512 85fab09b87f97ba273f4a1eaf1149f08e115c6894447499beeaa0c9c2c6190ec92f52338cd5e6b0b6536a7ca7cd438222002fe54d5efaa9c10dca61ca88be2a2 WHIRLPOOL f8a53c3c5ecbc783f43cf58dd8077c072ce092435a6c61985c6f27111757a479e71593b839a27e4e768b3b8ae9aec8e305c2e6cd154134e8cfdb6efb8e229ec3
+MISC metadata.xml 208 SHA256 67f4cd233dc8d6d341b8da89aef2654cae64f7e3b62fbcdd3a35e6e30e898e36 SHA512 5213f6c100db04c6bbbf73b4e52042caf1744aa805af76053f5ecaf5f921ffdd35c41507b492da65c6071f1699472db6c9334dcd5bb7da752dca8efe7e1c7aa4 WHIRLPOOL a43dc0ecd7f37ba8cf4d510a1195338816b6193e5c5517c8e005662a06d7fb62c725a3c2981474a872cba628c268de1bea0fb67a31ae1842a252c0fdc723eb4d
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iEYEAREIAAYFAlVa5RkACgkQ/ejvha5XGaNpIwCeKtBXoLvZzZNaD5HOSBijFka3
+KYMAn1u391QKohjbHdOYx2Keqy5pf7rs
+=gUBG
+-----END PGP SIGNATURE-----
diff --git a/dev-go/go-sys/go-sys-9999.ebuild b/dev-go/go-sys/go-sys-9999.ebuild
new file mode 100644
index 000000000000..df888d78a3ee
--- /dev/null
+++ b/dev-go/go-sys/go-sys-9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v 1.1 2015/05/19 07:24:08 zmedico Exp $
+
+EAPI=5
+inherit git-r3
+
+KEYWORDS=""
+DESCRIPTION="Go packages for low-level interaction with the operating system"
+GO_PN=golang.org/x/${PN##*-}
+HOMEPAGE="https://godoc.org/${GO_PN}"
+EGIT_REPO_URI="https://go.googlesource.com/${PN##*-}"
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+DEPEND=">=dev-lang/go-1.4"
+RDEPEND=""
+S="${WORKDIR}/src/${GO_PN}"
+EGIT_CHECKOUT_DIR="${S}"
+STRIP_MASK="*.a"
+
+src_compile() {
+ # Create a writable GOROOT in order to avoid sandbox violations.
+ GOROOT="${WORKDIR}/goroot"
+ cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
+ rm -rf "${GOROOT}/src/${GO_PN%%/*}" \
+ "${GOROOT}/pkg/linux_${ARCH}/${GO_PN%%/*}" || die
+ GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
+ go install -x -v -work ${GO_PN}/unix/... || die
+}
+
+src_test() {
+ GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
+ go test -x -v golang.org/x/sys/unix/... || die
+}
+
+src_install() {
+ insinto /usr/lib/go
+ doins -r "${WORKDIR}"/pkg
+ insinto /usr/lib/go/src/${GO_PN}
+ find "${WORKDIR}"/src/${GO_PN} -name '.git*' -exec \
+ rm -rf {} \; 2>/dev/null
+ doins -r "${WORKDIR}"/src/${GO_PN}/unix
+}
diff --git a/dev-go/go-sys/metadata.xml b/dev-go/go-sys/metadata.xml
new file mode 100644
index 000000000000..059d713e41ed
--- /dev/null
+++ b/dev-go/go-sys/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>