From: | "Zac Medico (zmedico)" <zmedico@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-go/go-spew: go-spew-9999.ebuild go-spew-0_pre20150619.ebuild metadata.xml ChangeLog |
Date: | Thu, 30 Jul 2015 20:32:02 |
Message-Id: | 20150730203157.088E6112@oystercatcher.gentoo.org |
1 | zmedico 15/07/30 20:31:57 |
2 | |
3 | Added: go-spew-9999.ebuild go-spew-0_pre20150619.ebuild |
4 | metadata.xml ChangeLog |
5 | Log: |
6 | Add go-spew. |
7 | |
8 | (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key FDE8EF85AE5719A3) |
9 | |
10 | Revision Changes Path |
11 | 1.1 dev-go/go-spew/go-spew-9999.ebuild |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-spew/go-spew-9999.ebuild?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-spew/go-spew-9999.ebuild?rev=1.1&content-type=text/plain |
15 | |
16 | Index: go-spew-9999.ebuild |
17 | =================================================================== |
18 | # Copyright 1999-2015 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/dev-go/go-spew/go-spew-9999.ebuild,v 1.1 2015/07/30 20:31:56 zmedico Exp $ |
21 | |
22 | EAPI=5 |
23 | |
24 | EGO_SRC=github.com/davecgh/${PN} |
25 | EGO_PN=${EGO_SRC}/... |
26 | |
27 | |
28 | if [[ ${PV} = *9999* ]]; then |
29 | inherit golang-vcs |
30 | else |
31 | KEYWORDS="~amd64" |
32 | EGIT_COMMIT="2df174808ee097f90d259e432cc04442cf60be21" |
33 | SRC_URI="https://${EGO_SRC}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
34 | fi |
35 | inherit golang-build |
36 | |
37 | DESCRIPTION="Implements a deep pretty printer for Go data structures to aid in debugging" |
38 | HOMEPAGE="https://${EGO_SRC}" |
39 | LICENSE="ISC" |
40 | SLOT="0/${PV}" |
41 | IUSE="" |
42 | DEPEND="" |
43 | RDEPEND="" |
44 | |
45 | if [[ ${PV} != *9999* ]]; then |
46 | src_unpack() { |
47 | local f |
48 | |
49 | for f in ${A} |
50 | do |
51 | case "${f}" in |
52 | *.tar|*.tar.gz|*.tar.bz2|*.tar.xz) |
53 | local destdir=${WORKDIR}/${P}/src/${EGO_SRC} |
54 | |
55 | debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}" |
56 | |
57 | # XXX: check whether the directory structure inside is |
58 | # fine? i.e. if the tarball has actually a parent dir. |
59 | mkdir -p "${destdir}" || die |
60 | tar -C "${destdir}" -x --strip-components 1 \ |
61 | -f "${DISTDIR}/${f}" || die |
62 | ;; |
63 | *) |
64 | debug-print "${FUNCNAME}: falling back to unpack for ${f}" |
65 | |
66 | # fall back to the default method |
67 | unpack "${f}" |
68 | ;; |
69 | esac |
70 | done |
71 | } |
72 | fi |
73 | |
74 | src_install() { |
75 | rm -rf src/${EGO_SRC}/.git* || die |
76 | golang-build_src_install |
77 | } |
78 | |
79 | |
80 | |
81 | 1.1 dev-go/go-spew/go-spew-0_pre20150619.ebuild |
82 | |
83 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-spew/go-spew-0_pre20150619.ebuild?rev=1.1&view=markup |
84 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-spew/go-spew-0_pre20150619.ebuild?rev=1.1&content-type=text/plain |
85 | |
86 | Index: go-spew-0_pre20150619.ebuild |
87 | =================================================================== |
88 | # Copyright 1999-2015 Gentoo Foundation |
89 | # Distributed under the terms of the GNU General Public License v2 |
90 | # $Header: /var/cvsroot/gentoo-x86/dev-go/go-spew/go-spew-0_pre20150619.ebuild,v 1.1 2015/07/30 20:31:56 zmedico Exp $ |
91 | |
92 | EAPI=5 |
93 | |
94 | EGO_SRC=github.com/davecgh/${PN} |
95 | EGO_PN=${EGO_SRC}/... |
96 | |
97 | |
98 | if [[ ${PV} = *9999* ]]; then |
99 | inherit golang-vcs |
100 | else |
101 | KEYWORDS="~amd64" |
102 | EGIT_COMMIT="2df174808ee097f90d259e432cc04442cf60be21" |
103 | SRC_URI="https://${EGO_SRC}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
104 | fi |
105 | inherit golang-build |
106 | |
107 | DESCRIPTION="Implements a deep pretty printer for Go data structures to aid in debugging" |
108 | HOMEPAGE="https://${EGO_SRC}" |
109 | LICENSE="ISC" |
110 | SLOT="0/${PV}" |
111 | IUSE="" |
112 | DEPEND="" |
113 | RDEPEND="" |
114 | |
115 | if [[ ${PV} != *9999* ]]; then |
116 | src_unpack() { |
117 | local f |
118 | |
119 | for f in ${A} |
120 | do |
121 | case "${f}" in |
122 | *.tar|*.tar.gz|*.tar.bz2|*.tar.xz) |
123 | local destdir=${WORKDIR}/${P}/src/${EGO_SRC} |
124 | |
125 | debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}" |
126 | |
127 | # XXX: check whether the directory structure inside is |
128 | # fine? i.e. if the tarball has actually a parent dir. |
129 | mkdir -p "${destdir}" || die |
130 | tar -C "${destdir}" -x --strip-components 1 \ |
131 | -f "${DISTDIR}/${f}" || die |
132 | ;; |
133 | *) |
134 | debug-print "${FUNCNAME}: falling back to unpack for ${f}" |
135 | |
136 | # fall back to the default method |
137 | unpack "${f}" |
138 | ;; |
139 | esac |
140 | done |
141 | } |
142 | fi |
143 | |
144 | src_install() { |
145 | rm -rf src/${EGO_SRC}/.git* || die |
146 | golang-build_src_install |
147 | } |
148 | |
149 | |
150 | |
151 | 1.1 dev-go/go-spew/metadata.xml |
152 | |
153 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-spew/metadata.xml?rev=1.1&view=markup |
154 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-spew/metadata.xml?rev=1.1&content-type=text/plain |
155 | |
156 | Index: metadata.xml |
157 | =================================================================== |
158 | <?xml version="1.0" encoding="UTF-8"?> |
159 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
160 | <pkgmetadata> |
161 | <maintainer> |
162 | <email>zmedico@g.o</email> |
163 | </maintainer> |
164 | <upstream> |
165 | <remote-id type="github">davecgh/go-spew</remote-id> |
166 | </upstream> |
167 | </pkgmetadata> |
168 | |
169 | |
170 | |
171 | 1.1 dev-go/go-spew/ChangeLog |
172 | |
173 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-spew/ChangeLog?rev=1.1&view=markup |
174 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-spew/ChangeLog?rev=1.1&content-type=text/plain |
175 | |
176 | Index: ChangeLog |
177 | =================================================================== |
178 | # ChangeLog for dev-go/go-spew |
179 | # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
180 | # $Header: /var/cvsroot/gentoo-x86/dev-go/go-spew/ChangeLog,v 1.1 2015/07/30 20:31:56 zmedico Exp $ |
181 | |
182 | *go-spew-9999 (30 Jul 2015) |
183 | *go-spew-0_pre20150619 (30 Jul 2015) |
184 | |
185 | 30 Jul 2015; Zac Medico <zmedico@g.o> +go-spew-0_pre20150619.ebuild, |
186 | +go-spew-9999.ebuild, +metadata.xml: |
187 | Add go-spew. |