summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2015-06-29 15:59:44 +0000
committerWilliam Hubbs <williamh@gentoo.org>2015-06-29 15:59:44 +0000
commit4a8f55ea0d06082e3a120dd131415b84d397c70e (patch)
treebebc4e193d6d047618a3d4912b984948d6398d13 /dev-go
parentStable for sparc, wrt bug #551508 (diff)
downloadhistorical-4a8f55ea0d06082e3a120dd131415b84d397c70e.tar.gz
historical-4a8f55ea0d06082e3a120dd131415b84d397c70e.tar.bz2
historical-4a8f55ea0d06082e3a120dd131415b84d397c70e.zip
Make live ebuild copyable
Package-Manager: portage-2.2.18/cvs/Linux x86_64 Manifest-Sign-Key: 0x30C46538
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/go-oauth2/ChangeLog6
-rw-r--r--dev-go/go-oauth2/Manifest10
-rw-r--r--dev-go/go-oauth2/go-oauth2-9999.ebuild41
3 files changed, 49 insertions, 8 deletions
diff --git a/dev-go/go-oauth2/ChangeLog b/dev-go/go-oauth2/ChangeLog
index 0f6144fecd8d..b7d85312f4f7 100644
--- a/dev-go/go-oauth2/ChangeLog
+++ b/dev-go/go-oauth2/ChangeLog
@@ -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 <williamh@gentoo.org>
+ go-oauth2-1.4.2_p20150527.ebuild, go-oauth2-9999.ebuild:
+ Make live ebuild copyable
29 Jun 2015; William Hubbs <williamh@gentoo.org> go-oauth2-9999.ebuild:
drop keywords from live ebuild
diff --git a/dev-go/go-oauth2/Manifest b/dev-go/go-oauth2/Manifest
index 53a63edf9f01..fa0f897bb140 100644
--- a/dev-go/go-oauth2/Manifest
+++ b/dev-go/go-oauth2/Manifest
@@ -6,13 +6,13 @@ DIST go-oauth2-1.4.2_p20150511.tar.gz 31804 SHA256 db262d679331282b056bb19a75524
DIST go-oauth2-1.4.2_p20150527.tar.gz 32027 SHA256 eb1d48e29653b0bc68e41ef35df0d421e586e666ce52d7d504a6f2fb89807ce1 SHA512 9070bfed2e280286dbaeb360e77a9b2decf3e272e945ce4099875f7fd2e378b54082f8a9b4a2b7289d6984be4c66110d34b814cbc8e2850fd44122d484258fd4 WHIRLPOOL 09f19f1111f0a1d40ccff541c5cf4ad968264c91e9f6a3c18d23d441520002896b99f8f9979922dd4245edd9b46f89c46c94144b516c8424de43ccae8d462598
EBUILD go-oauth2-1.4.2_p20150511.ebuild 1919 SHA256 64d835c357ff1573df22388ffc327149a3fc80ff5d3370815f07793d611c1f6e SHA512 9c718fc0a482ebdace2a50e187b26f12ed90fa72b30ad48c40709468b52fdcc6bac5cb158df48345d14d53d4d277f266efa49bc63459f838e4718ad0d2f503b1 WHIRLPOOL ea9690b9115fd498144314b5c2b4f87020103d6e273e316d55a9c348d8af02f68b2ccbf053bcf04823ec9f778a93fbfa3bd7f8f42507bb359d5768e9497bd4e5
EBUILD go-oauth2-1.4.2_p20150527.ebuild 1993 SHA256 f8df38a974af364fcc04de548999c7e98eb838cee9d45f45fc92abed18c1cfae SHA512 6c033f8c6ee4d00b4939b560ad33f405812ccb231da932dbf7552991b76f226b0710428bfb57ba4608cabb1226f5e56aa4fef27d8ce1ddb0c482d4bca1691cb1 WHIRLPOOL b51993f7adaee206ea2f0d32f60051c8aa1271ab01b1c520c1c33ad9b6ab72c971dba2ddc2cc5f925f34e189f5af71a2c3c3b43a3133b8e19cbbbf4bbacd27b7
-EBUILD go-oauth2-9999.ebuild 462 SHA256 3a04db2803daef8ca240343188c9eb252355ae227e5a8b2874364d53f1b6a885 SHA512 2a4fac9a6d349b2526218fecbdf627b3dc5bb48ad06a11aee7df0c53003d8091f826271bf224da7a4ab82472ba031a04806752695c21d0af1a29c301f5be15b6 WHIRLPOOL aad29429677914303f32480aaa26a5f8190870f029f258427088ee6559cec13bdd57c2c2a841504d2ecbc2cdf3c4df6c43a6824ae45f61a973654ac60ad47366
-MISC ChangeLog 930 SHA256 bc791c051e825768de26945aed7c1ed086bddfec5536590e51f174ff4a1ce98b SHA512 611e8104471772b97d833e041444aff8d489f37b8d4dea24e5e39698516c356822891fac54bad22a4937df8d6ce03469824871e3b0b6bc8c1f4059ec03cd6e12 WHIRLPOOL 9b77afc1a58db4fba74e809b3040fde82232e3cdf4ff5f533ec8d72c86ef369869fb9cd9732a93fc0cf7e0a051ea4f8c22ebbac6b0fa382596ad39403fe2f50c
+EBUILD go-oauth2-9999.ebuild 1308 SHA256 cb49365a18217aa257dc57c56c9f2da3c00c8b6e263044b6bf8d619d5cd7d12b SHA512 f6108e861ac6097b71297d6ec7056a55523f02b0037d9ff9897fa01fb49036c1d4b96c9ac6898363a63b94d5db48bab1036e0592c6ce607688e102ef5aea5f89 WHIRLPOOL a677e68b7bc00cc5d06a308f4829518e6cfb68a8c23579347d1268b0d7d811d8d5fbdb0f990fb3cadd375d703fb9289e85bddc0ea65ae85a60d587f62694ac38
+MISC ChangeLog 1069 SHA256 89743cc82ee97c3fea7ef6405e1ff8d395ca9ea93c092bdb8ff2b7a80c66decb SHA512 2fe44269def24d8a153792248b8efb2b8a791ec9d68c9b06d02ce73b88538c22ddd84c74af585b03ab2960c0c804a0b15ee00acd8fa9345749c70d5dd35aa6b9 WHIRLPOOL d033088d6c60b8dd251211bc8994b28148743389859841eebe00f272df475b4de0adb879335ea2f3504b761c3039c45eee4fa95b087d04acd6ed32a8fbab1705
MISC metadata.xml 310 SHA256 e5b5d7641881b427bafe28de33692bea7795f2437a94166fb84bf4814fe1347d SHA512 7d85a3a39f3d15746f63b55a5e957525bef479b9ebe6c396d47539e9164367a041c40a40a56bf6a9281012538aeee5e5102ccebc4a012950a84b2c8d92f98fd7 WHIRLPOOL 6fa1989b1cebd12e2d4b834a329d2befc8c58bac407fe6644a0240839672939d1766843267dd2f774e9554a71af2fae23f6c9a6f84a291d3ed2171ec6f1fa1a6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iEYEAREIAAYFAlWRVWUACgkQblQW9DDEZTg0dgCguOil42lWehZXeYxt77ys8wzW
-wisAn0C+lf1JYJBCLxV4gLv2XEPxJPFM
-=z6jq
+iEYEAREIAAYFAlWRa3AACgkQblQW9DDEZTgmwACeLK91jSDa0xsmBdQVHjF/LSMK
+rV0AoLn9IjEI5EiHc/JQLKRMM00pTQ8X
+=mijE
-----END PGP SIGNATURE-----
diff --git a/dev-go/go-oauth2/go-oauth2-9999.ebuild b/dev-go/go-oauth2/go-oauth2-9999.ebuild
index c527f264df38..ef2f019ae133 100644
--- a/dev-go/go-oauth2/go-oauth2-9999.ebuild
+++ b/dev-go/go-oauth2/go-oauth2-9999.ebuild
@@ -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 @@ SLOT="0"
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