mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-db/go-etcd: drop old EAPI=5
Signed-off-by: Aaron Bauman <bman@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST go-etcd-0_p20141013.tar.gz 18214 BLAKE2B ceb14c88dc65c81d0b8f620986ad30d9b0b21f92169979c69d0f7fd97abd81ef0c210dd3cb4bc23f361fc13aa97ba2cf5fcf59524608a14637780a381f3bf21d SHA512 af07b2434bbad219962e989ca1d6ccb86bb40f698aa3f2b681ac04094dc7e878593af6a54e9c1e976d1aeb451661d8100295b0637291b46bafa45452537f1575
|
||||
DIST go-etcd-2.0.0.tar.gz 18214 BLAKE2B ceb14c88dc65c81d0b8f620986ad30d9b0b21f92169979c69d0f7fd97abd81ef0c210dd3cb4bc23f361fc13aa97ba2cf5fcf59524608a14637780a381f3bf21d SHA512 af07b2434bbad219962e989ca1d6ccb86bb40f698aa3f2b681ac04094dc7e878593af6a54e9c1e976d1aeb451661d8100295b0637291b46bafa45452537f1575
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils vcs-clean
|
||||
|
||||
GO_PN=github.com/coreos/${PN}
|
||||
DESCRIPTION="Go client library for etcd"
|
||||
|
||||
HOMEPAGE="https://github.com/coreos/go-etcd"
|
||||
EGIT_COMMIT="25e2c63be8e8ab405014a78879e0992ae5ff55e8"
|
||||
SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="Apache-2.0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4"
|
||||
RDEPEND=""
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
default_src_unpack
|
||||
mkdir -p src/${GO_PN%/*} || die
|
||||
mv ${PN}-${EGIT_COMMIT} src/${GO_PN} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Create a filtered GOROOT tree out of symlinks,
|
||||
# excluding go-etcd, for bug #503324.
|
||||
cp -sR /usr/lib/go goroot || die
|
||||
rm -rf goroot/src/${GO_PN} || die
|
||||
rm -rf goroot/pkg/linux_${ARCH}/${GO_PN} || die
|
||||
GOROOT=${WORKDIR}/goroot GOPATH=${WORKDIR} \
|
||||
go install -x ${GO_PN}/etcd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insopts -m0644 -p # preserve timestamps for bug 551486
|
||||
insinto /usr/lib/go
|
||||
doins -r pkg
|
||||
insinto /usr/lib/go/src
|
||||
egit_clean
|
||||
doins -r src/*
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils vcs-clean
|
||||
|
||||
GO_PN=github.com/coreos/${PN}
|
||||
EGIT_COMMIT="25e2c63be8e8ab405014a78879e0992ae5ff55e8"
|
||||
|
||||
DESCRIPTION="Go client library for etcd"
|
||||
HOMEPAGE="https://github.com/coreos/go-etcd"
|
||||
SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="Apache-2.0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4"
|
||||
RDEPEND=""
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
default_src_unpack
|
||||
mkdir -p src/${GO_PN%/*} || die
|
||||
mv ${PN}-${EGIT_COMMIT} src/${GO_PN} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Create a filtered GOROOT tree out of symlinks,
|
||||
# excluding go-etcd, for bug #503324.
|
||||
cp -sR /usr/lib/go goroot || die
|
||||
rm -rf goroot/src/${GO_PN} || die
|
||||
rm -rf goroot/pkg/linux_${ARCH}/${GO_PN} || die
|
||||
GOROOT=${WORKDIR}/goroot GOPATH=${WORKDIR} \
|
||||
go install -x ${GO_PN}/etcd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insopts -m0644 -p # preserve timestamps for bug 551486
|
||||
insinto /usr/lib/go
|
||||
doins -r pkg
|
||||
insinto /usr/lib/go/src
|
||||
egit_clean
|
||||
doins -r src/*
|
||||
}
|
||||
Reference in New Issue
Block a user