-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
-KEYWORDS="~amd64"
-DESCRIPTION="Go client library for etcd"
+inherit eutils
GO_PN=github.com/coreos/${PN}
+DESCRIPTION="Go client library for etcd"
HOMEPAGE="https://${GO_PN}"
EGIT_COMMIT="25e2c63be8e8ab405014a78879e0992ae5ff55e8"
SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
-LICENSE="Apache-2.0"
+
SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64"
IUSE=""
+
DEPEND=">=dev-lang/go-1.4"
RDEPEND=""
+
S=${WORKDIR}
src_unpack() {
insinto /usr/lib/go
doins -r pkg
insinto /usr/lib/go/src
- find src/${GO_PN} -name .gitignore -delete
+ egit_clean
doins -r src/*
}
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
-KEYWORDS="~amd64"
-DESCRIPTION="Go client library for etcd"
GO_PN=github.com/coreos/${PN}
-HOMEPAGE="https://${GO_PN}"
EGIT_COMMIT="25e2c63be8e8ab405014a78879e0992ae5ff55e8"
+
+DESCRIPTION="Go client library for etcd"
+HOMEPAGE="https://${GO_PN}"
SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
-LICENSE="Apache-2.0"
+
SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64"
IUSE=""
+
DEPEND=">=dev-lang/go-1.4:="
RDEPEND=""
+
S=${WORKDIR}
src_unpack() {
insinto /usr/lib/go
doins -r pkg
insinto /usr/lib/go/src
- find src/${GO_PN} -name .gitignore -delete
+ egit_clean
doins -r src/*
}
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
-KEYWORDS="~amd64"
-DESCRIPTION="Go client library for etcd"
+inherit eutils
+
GO_PN=github.com/coreos/${PN}
-HOMEPAGE="https://${GO_PN}"
EGIT_COMMIT="25e2c63be8e8ab405014a78879e0992ae5ff55e8"
+
+DESCRIPTION="Go client library for etcd"
+HOMEPAGE="https://${GO_PN}"
SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
-LICENSE="Apache-2.0"
+
SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64"
IUSE=""
+
DEPEND=">=dev-lang/go-1.4"
RDEPEND=""
+
S=${WORKDIR}
src_unpack() {
insinto /usr/lib/go
doins -r pkg
insinto /usr/lib/go/src
- find src/${GO_PN} -name .gitignore -delete
+ egit_clean
doins -r src/*
}