summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-08-18 21:10:49 -0700
committerZac Medico <zmedico@gentoo.org>2018-08-18 23:38:01 -0700
commitc04b2be33e40246b8c6b68d4e81a967d78e03ca7 (patch)
tree01a4dbfe308e5d8daa5c50cbff4a0a10ea7bbbe8 /dev-go/go-net
parentdev-go/go-crypto: version bump to 0_pre20180816 (diff)
downloadgentoo-c04b2be33e40246b8c6b68d4e81a967d78e03ca7.tar.gz
gentoo-c04b2be33e40246b8c6b68d4e81a967d78e03ca7.tar.bz2
gentoo-c04b2be33e40246b8c6b68d4e81a967d78e03ca7.zip
dev-go/go-net: version bump to 0_pre20180816
Package-Manager: Portage-2.3.47, Repoman-2.3.10
Diffstat (limited to 'dev-go/go-net')
-rw-r--r--dev-go/go-net/Manifest1
-rw-r--r--dev-go/go-net/go-net-0_pre20180816.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-go/go-net/Manifest b/dev-go/go-net/Manifest
index 8a46816b0ea2..c1906307d493 100644
--- a/dev-go/go-net/Manifest
+++ b/dev-go/go-net/Manifest
@@ -1,2 +1,3 @@
DIST go-net-0_pre20150804.tar.gz 539435 BLAKE2B f59222bd025bff05353c328072a028092bdc77c73fc438b78fb7c1aee5d3b152b1242ad5603a9da9e7e0a7bd1684bebe733342c0d5e415d1d1728f6e75e06cbd SHA512 02a9734f8335909a15280e925b11ff03b96fbedd6e48fa5c3f869ab1a8b3062971d634f7043f92cee685c618222b147fdee915f1d5d83bd82cdde171970287e3
DIST go-net-0_pre20160216.tar.gz 741192 BLAKE2B ed4ca3ddc71f794a92746e360157967582958e4de29a46c5e63964694986e5a8a4f95062a1d46881941e8e8dfb848bbd9c4bd3b7008d8f2da357c2cae9a441ae SHA512 75db9098b33ede5621fce36645ebe946fad911c815dae219d74242b15714d1b9a3d8544f5f8c90b58989cea3a46b5688d20f705cb24a7d31f201ec218e69e78f
+DIST go-net-0_pre20180816.tar.gz 965206 BLAKE2B 018ab877bfa7208bb0ca9b4ede85077ed37c8ee3c7065569646e6c9704715d6810b0286276ea0fa9a271f12ffbe964b41f55ec762711c8a43ccea564607f3265 SHA512 d56f5608e64e8d883a782f0c460f08da20e7d01a97330fad35c8757420ac82fb84b657c3f64e3c4d90a08cc4d8905ab37225d6fab8472e8f1fd3d7be212df8b9
diff --git a/dev-go/go-net/go-net-0_pre20180816.ebuild b/dev-go/go-net/go-net-0_pre20180816.ebuild
new file mode 100644
index 000000000000..6568f4a0837f
--- /dev/null
+++ b/dev-go/go-net/go-net-0_pre20180816.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+EGO_PN=golang.org/x/net/...
+EGO_SRC=golang.org/x/net
+
+if [[ ${PV} = *9999* ]]; then
+ inherit golang-vcs
+else
+ KEYWORDS="~amd64 ~arm ~x86"
+ EGIT_COMMIT="aaf60122140d3fcf75376d319f0554393160eb50"
+ SRC_URI="https://github.com/golang/net/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ inherit golang-vcs-snapshot
+fi
+inherit golang-build
+
+DESCRIPTION="Go supplementary network libraries"
+HOMEPAGE="https://godoc.org/golang.org/x/net"
+LICENSE="BSD"
+SLOT="0/${PVR}"
+IUSE=""
+DEPEND=">=dev-go/go-crypto-0_pre20180816:=
+ >=dev-go/go-sys-0_pre20180816:=
+ >=dev-go/go-text-0.3.0:="
+RDEPEND=""
+
+src_prepare() {
+ default
+ sed -e 's:TestDiag(:_\0:' \
+ -e 's:TestConcurrentNonPrivilegedListenPacket(:_\0:' \
+ -i src/${EGO_SRC}/icmp/diag_test.go || die
+ sed -e 's:TestConcurrentNonPrivilegedListenPacket(:_\0:' \
+ -i src/${EGO_SRC}/icmp/diag_test.go || die
+ sed -e 's:TestMultipartMessageBodyLen(:_\0:' \
+ -i src/${EGO_SRC}/icmp/multipart_test.go || die
+}
+
+src_compile() {
+ local x
+ mkdir -p "${T}/golibdir/src/golang.org/x" || die
+ for x in sys text crypto; do
+ ln -s "$(get_golibdir_gopath)/src/golang.org/x/${x}" "${T}/golibdir/src/golang.org/x/${x}" || die
+ done
+ env GOPATH="${S}:${T}/golibdir" \
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_install() {
+ golang_install_pkgs
+}
+
+src_test() {
+ GOPATH="${S}:${T}/golibdir" \
+ go test -v -work -x "${EGO_PN}" || die
+}