Gentoo Archives: gentoo-commits

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