diff options
-rw-r--r-- | dev-go/go-oauth2/ChangeLog | 8 | ||||
-rw-r--r-- | dev-go/go-oauth2/go-oauth2-1.4.2_p20150527.ebuild | 58 |
2 files changed, 65 insertions, 1 deletions
diff --git a/dev-go/go-oauth2/ChangeLog b/dev-go/go-oauth2/ChangeLog index 7024cff8e2dd..225444415dc7 100644 --- a/dev-go/go-oauth2/ChangeLog +++ b/dev-go/go-oauth2/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-go/go-oauth2 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/ChangeLog,v 1.2 2015/06/07 08:28:00 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/ChangeLog,v 1.3 2015/06/09 03:43:11 zmedico Exp $ + +*go-oauth2-1.4.2_p20150527 (09 Jun 2015) + + 09 Jun 2015; Zac Medico <zmedico@gentoo.org> + +go-oauth2-1.4.2_p20150527.ebuild: + Add 1.4.2_p20150527 snapshot with timestamp preservation for bug 551486. 07 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml: Add github to remote-id in metadata.xml diff --git a/dev-go/go-oauth2/go-oauth2-1.4.2_p20150527.ebuild b/dev-go/go-oauth2/go-oauth2-1.4.2_p20150527.ebuild new file mode 100644 index 000000000000..4754596f57a6 --- /dev/null +++ b/dev-go/go-oauth2/go-oauth2-1.4.2_p20150527.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/go-oauth2-1.4.2_p20150527.ebuild,v 1.1 2015/06/09 03:43:11 zmedico Exp $ + +EAPI=5 + +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="b5adcc2dcdf009d0391547edc6ecbaff889f5bb9" +SRC_URI="https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz +https://github.com/GoogleCloudPlatform/gcloud-golang/archive/629ed086d82ad5d0ac3668e309b8785aaf54735b.tar.gz -> gcloud-golang-629ed086d82ad5d0ac3668e309b8785aaf54735b.tar.gz" +LICENSE="BSD" +SLOT="0" +IUSE="" +DEPEND=">=dev-lang/go-1.4 + dev-go/go-net" +RDEPEND="" +S="${WORKDIR}/src/${GO_PN}" +EGIT_CHECKOUT_DIR="${S}" +STRIP_MASK="*.a" + +src_unpack() { + default + mkdir -p src/${GO_PN%/*} || die + mv ${MY_PN}-${EGIT_COMMIT} src/${GO_PN} || die + + # Create a writable GOROOT in order to avoid sandbox violations. + export GOROOT="${WORKDIR}/goroot" GOPATH=${WORKDIR} + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + rm -rf "${GOROOT}/src/${GO_PN}" || die + + mkdir -p "${GOROOT}/src/google.golang.org" || die + rm -rf "${GOROOT}/src/google.golang.org"/* || die + rm -rf "${GOROOT}/pkg/${KERNEL}_${ARCH}/google.golang.org" || die + mv gcloud-golang-629ed086d82ad5d0ac3668e309b8785aaf54735b "${GOROOT}/src/google.golang.org/cloud" || die +} + +src_compile() { + go install -v -x -work google.golang.org/cloud/compute/metadata || die + go install -v -x -work ${GO_PN}/... || die +} + +src_test() { + # google/example_test.go imports appengine, introducing a circular dep + mv google/example_test.go{,_} + go test -x -v ${GO_PN}/... || die $? + mv google/example_test.go{_,} +} + +src_install() { + insinto /usr/lib/go + find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null + insopts -m0644 -p # preserve timestamps for bug 551486 + doins -r "${WORKDIR}"/{pkg,src} +} |