mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
dev-go/go-net: Remove last-rited pkg
Bug: https://bugs.gentoo.org/710142 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST go-net-0_pre20180816.tar.gz 965206 BLAKE2B 018ab877bfa7208bb0ca9b4ede85077ed37c8ee3c7065569646e6c9704715d6810b0286276ea0fa9a271f12ffbe964b41f55ec762711c8a43ccea564607f3265 SHA512 d56f5608e64e8d883a782f0c460f08da20e7d01a97330fad35c8757420ac82fb84b657c3f64e3c4d90a08cc4d8905ab37225d6fab8472e8f1fd3d7be212df8b9
|
||||
@@ -1,56 +0,0 @@
|
||||
# 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
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EGO_SRC=golang.org/x/net
|
||||
EGO_PN=${EGO_SRC}/...
|
||||
|
||||
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" GOBIN="${S}/bin" \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
GOPATH="${S}:${T}/golibdir" GOBIN="${S}/bin" \
|
||||
go test -v -work -x "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -rf "${S}/src/${EGO_SRC}/.git"* || die
|
||||
golang_install_pkgs
|
||||
exeinto "$(go env GOROOT)/bin"
|
||||
doexe bin/*
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">golang/net</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -266,7 +266,6 @@ www-client/seamonkey-bin
|
||||
# Mask obsolete and vulnerable dev-go/go-crypto, along with obsolete
|
||||
# reverse dependencies. Removal in 30 days. Bug #710142.
|
||||
dev-go/go-crypto
|
||||
dev-go/go-net
|
||||
|
||||
# Michał Górny <mgorny@gentoo.org> (2020-04-26)
|
||||
# Unmaintained. Stuck on Python 3.6. No revdeps.
|
||||
|
||||
Reference in New Issue
Block a user