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