1 |
williamh 15/06/29 15:59:38 |
2 |
|
3 |
Modified: go-oauth2-9999.ebuild ChangeLog |
4 |
Log: |
5 |
Make live ebuild copyable |
6 |
|
7 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x30C46538) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 dev-go/go-oauth2/go-oauth2-9999.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: go-oauth2-9999.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- go-oauth2-9999.ebuild 29 Jun 2015 14:25:31 -0000 1.2 |
23 |
+++ go-oauth2-9999.ebuild 29 Jun 2015 15:59:38 -0000 1.3 |
24 |
@@ -1,11 +1,19 @@ |
25 |
# Copyright 1999-2015 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild,v 1.2 2015/06/29 14:25:31 williamh Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/go-oauth2-9999.ebuild,v 1.3 2015/06/29 15:59:38 williamh Exp $ |
29 |
|
30 |
EAPI=5 |
31 |
-inherit golang-build golang-vcs |
32 |
EGO_PN=golang.org/x/oauth2 |
33 |
|
34 |
+if [[ ${PV} = *9999* ]]; then |
35 |
+ inherit golang-vcs |
36 |
+else |
37 |
+ KEYWORDS="~amd64" |
38 |
+ EGIT_COMMIT="b5adcc2dcdf009d0391547edc6ecbaff889f5bb9" |
39 |
+ SRC_URI="https://github.com/golang/oauth2/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
40 |
+fi |
41 |
+inherit golang-build |
42 |
+ |
43 |
DESCRIPTION="Go client implementation for OAuth 2.0 spec" |
44 |
HOMEPAGE="https://godoc.org/golang.org/x/oauth2" |
45 |
LICENSE="BSD" |
46 |
@@ -13,3 +21,32 @@ |
47 |
IUSE="" |
48 |
DEPEND="dev-go/go-net" |
49 |
RDEPEND="" |
50 |
+ |
51 |
+if [[ ${PV} != *9999* ]]; then |
52 |
+src_unpack() { |
53 |
+ local f |
54 |
+ |
55 |
+ for f in ${A} |
56 |
+ do |
57 |
+ case "${f}" in |
58 |
+ *.tar|*.tar.gz|*.tar.bz2|*.tar.xz) |
59 |
+ local destdir=${WORKDIR}/${P}/src/${EGO_SRC} |
60 |
+ |
61 |
+ debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}" |
62 |
+ |
63 |
+ # XXX: check whether the directory structure inside is |
64 |
+ # fine? i.e. if the tarball has actually a parent dir. |
65 |
+ mkdir -p "${destdir}" || die |
66 |
+ tar -C "${destdir}" -x --strip-components 1 \ |
67 |
+ -f "${DISTDIR}/${f}" || die |
68 |
+ ;; |
69 |
+ *) |
70 |
+ debug-print "${FUNCNAME}: falling back to unpack for ${f}" |
71 |
+ |
72 |
+ # fall back to the default method |
73 |
+ unpack "${f}" |
74 |
+ ;; |
75 |
+ esac |
76 |
+ done |
77 |
+} |
78 |
+fi |
79 |
|
80 |
|
81 |
|
82 |
1.6 dev-go/go-oauth2/ChangeLog |
83 |
|
84 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/ChangeLog?rev=1.6&view=markup |
85 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/ChangeLog?rev=1.6&content-type=text/plain |
86 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-oauth2/ChangeLog?r1=1.5&r2=1.6 |
87 |
|
88 |
Index: ChangeLog |
89 |
=================================================================== |
90 |
RCS file: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/ChangeLog,v |
91 |
retrieving revision 1.5 |
92 |
retrieving revision 1.6 |
93 |
diff -u -r1.5 -r1.6 |
94 |
--- ChangeLog 29 Jun 2015 14:25:31 -0000 1.5 |
95 |
+++ ChangeLog 29 Jun 2015 15:59:38 -0000 1.6 |
96 |
@@ -1,6 +1,10 @@ |
97 |
# ChangeLog for dev-go/go-oauth2 |
98 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
99 |
-# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/ChangeLog,v 1.5 2015/06/29 14:25:31 williamh Exp $ |
100 |
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-oauth2/ChangeLog,v 1.6 2015/06/29 15:59:38 williamh Exp $ |
101 |
+ |
102 |
+ 29 Jun 2015; William Hubbs <williamh@g.o> |
103 |
+ go-oauth2-1.4.2_p20150527.ebuild, go-oauth2-9999.ebuild: |
104 |
+ Make live ebuild copyable |
105 |
|
106 |
29 Jun 2015; William Hubbs <williamh@g.o> go-oauth2-9999.ebuild: |
107 |
drop keywords from live ebuild |