summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2016-01-22 21:56:07 +0100
committerJustin Lecher <jlec@gentoo.org>2016-01-22 22:03:03 +0100
commit4871d5e6560ed9627b0dfcfb92c71a4e74dd0b3b (patch)
tree3c0dae7f2b51cf625f861a99cacce06c80188ea4 /dev-go
parentdev-libs/libgit2: Use egit_clean to clean workdir (diff)
downloadgentoo-4871d5e6560ed9627b0dfcfb92c71a4e74dd0b3b.tar.gz
gentoo-4871d5e6560ed9627b0dfcfb92c71a4e74dd0b3b.tar.bz2
gentoo-4871d5e6560ed9627b0dfcfb92c71a4e74dd0b3b.zip
dev-go/go-oauth2: Use egit_clean to clean workdir
* Sort global scope according to skel.ebuild Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild27
-rw-r--r--dev-go/go-oauth2/go-oauth2-9999.ebuild8
2 files changed, 23 insertions, 12 deletions
diff --git a/dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild b/dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild
index 9807b1b17d9f..be31d40d5ede 100644
--- a/dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild
+++ b/dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild
@@ -1,26 +1,33 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
-inherit golang-base
+inherit eutils golang-base
-KEYWORDS="~amd64"
-DESCRIPTION="Go client implementation for OAuth 2.0 spec"
MY_PN=${PN##*-}
GO_PN=golang.org/x/${MY_PN}
-HOMEPAGE="https://godoc.org/${GO_PN}"
EGIT_COMMIT="8914e5017ca260f2a3a1575b1e6868874050d95e"
-SRC_URI="https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
-https://github.com/GoogleCloudPlatform/gcloud-golang/archive/e34a32f9b0ecbc0784865fb2d47f3818c09521d4.tar.gz -> gcloud-golang-e34a32f9b0ecbc0784865fb2d47f3818c09521d4.tar.gz"
-LICENSE="BSD"
+
+HOMEPAGE="https://godoc.org/${GO_PN}"
+DESCRIPTION="Go client implementation for OAuth 2.0 spec"
+SRC_URI="
+ https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
+ https://github.com/GoogleCloudPlatform/gcloud-golang/archive/e34a32f9b0ecbc0784865fb2d47f3818c09521d4.tar.gz -> gcloud-golang-e34a32f9b0ecbc0784865fb2d47f3818c09521d4.tar.gz"
+
SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64"
IUSE=""
-DEPEND="dev-go/go-net:=
+
+DEPEND="
+ dev-go/go-net:=
dev-go/go-tools:="
RDEPEND=""
+
S="${WORKDIR}/src/${GO_PN}"
+
EGIT_CHECKOUT_DIR="${S}"
STRIP_MASK="*.a"
@@ -54,7 +61,7 @@ src_test() {
src_install() {
insinto /usr/lib/go
- find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
+ egit_clean "${WORKDIR}"/{pkg,src}
insopts -m0644 -p # preserve timestamps for bug 551486
doins -r "${WORKDIR}"/{pkg,src}
}
diff --git a/dev-go/go-oauth2/go-oauth2-9999.ebuild b/dev-go/go-oauth2/go-oauth2-9999.ebuild
index 89f44e648b77..ad4a9e153134 100644
--- a/dev-go/go-oauth2/go-oauth2-9999.ebuild
+++ b/dev-go/go-oauth2/go-oauth2-9999.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
+
EGO_PN=golang.org/x/oauth2
EGO_SRC=golang.org/x/oauth2
@@ -18,9 +19,12 @@ inherit golang-build
DESCRIPTION="Go client implementation for OAuth 2.0 spec"
HOMEPAGE="https://godoc.org/golang.org/x/oauth2"
+
LICENSE="BSD"
SLOT="0/${PV}"
IUSE=""
-DEPEND="dev-go/go-net:=
+
+DEPEND="
+ dev-go/go-net:=
dev-go/go-tools:="
RDEPEND=""