williamh 15/06/29 15:59:38 Modified: go-oauth2-9999.ebuild ChangeLog Log: Make live ebuild copyable (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x30C46538)
Revision Changes Path 1.3 dev-go/go-oauth2/go-oauth2-9999.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild?rev=1.3&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild?rev=1.3&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild?r1=1.2&r2=1.3 Index: go-oauth2-9999.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- go-oauth2-9999.ebuild 29 Jun 2015 14:25:31 -0000 1.2 +++ go-oauth2-9999.ebuild 29 Jun 2015 15:59:38 -0000 1.3 @@ -1,11 +1,19 @@ # 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-9999.ebuild,v 1.2 2015/06/29 14:25:31 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild,v 1.3 2015/06/29 15:59:38 williamh Exp $ EAPI=5 -inherit golang-build golang-vcs EGO_PN=golang.org/x/oauth2 +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64" + EGIT_COMMIT="b5adcc2dcdf009d0391547edc6ecbaff889f5bb9" + SRC_URI="https://github.com/golang/oauth2/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +fi +inherit golang-build + DESCRIPTION="Go client implementation for OAuth 2.0 spec" HOMEPAGE="https://godoc.org/golang.org/x/oauth2" LICENSE="BSD" @@ -13,3 +21,32 @@ IUSE="" DEPEND="dev-go/go-net" RDEPEND="" + +if [[ ${PV} != *9999* ]]; then +src_unpack() { + local f + + for f in ${A} + do + case "${f}" in + *.tar|*.tar.gz|*.tar.bz2|*.tar.xz) + local destdir=${WORKDIR}/${P}/src/${EGO_SRC} + + debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}" + + # XXX: check whether the directory structure inside is + # fine? i.e. if the tarball has actually a parent dir. + mkdir -p "${destdir}" || die + tar -C "${destdir}" -x --strip-components 1 \ + -f "${DISTDIR}/${f}" || die + ;; + *) + debug-print "${FUNCNAME}: falling back to unpack for ${f}" + + # fall back to the default method + unpack "${f}" + ;; + esac + done +} +fi 1.6 dev-go/go-oauth2/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/ChangeLog?rev=1.6&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/ChangeLog?rev=1.6&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/ChangeLog?r1=1.5&r2=1.6 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/ChangeLog,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ChangeLog 29 Jun 2015 14:25:31 -0000 1.5 +++ ChangeLog 29 Jun 2015 15:59:38 -0000 1.6 @@ -1,6 +1,10 @@ # 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.5 2015/06/29 14:25:31 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/ChangeLog,v 1.6 2015/06/29 15:59:38 williamh Exp $ + + 29 Jun 2015; William Hubbs <[email protected]> + go-oauth2-1.4.2_p20150527.ebuild, go-oauth2-9999.ebuild: + Make live ebuild copyable 29 Jun 2015; William Hubbs <[email protected]> go-oauth2-9999.ebuild: drop keywords from live ebuild
