Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/bitcoin-qt: metadata.xml ChangeLog bitcoin-qt-0.5.2-r1.ebuild bitcoin-qt-0.5.0.3-r1.ebuild
Date: Wed, 08 Feb 2012 00:22:57
Message-Id: 20120208002245.C8D902004B@flycatcher.gentoo.org
1 blueness 12/02/08 00:22:45
2
3 Modified: metadata.xml ChangeLog
4 Added: bitcoin-qt-0.5.2-r1.ebuild
5 bitcoin-qt-0.5.0.3-r1.ebuild
6 Log:
7 Add USE=bip17 to validate new P2SH transactions
8
9 (Portage version: 2.1.10.44/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.2 net-p2p/bitcoin-qt/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/metadata.xml?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/metadata.xml?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/metadata.xml?r1=1.1&r2=1.2
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/metadata.xml,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- metadata.xml 23 Dec 2011 19:38:11 -0000 1.1
25 +++ metadata.xml 8 Feb 2012 00:22:45 -0000 1.2
26 @@ -10,6 +10,7 @@
27 <name>Luke Dashjr</name>
28 </maintainer>
29 <use>
30 + <flag name='bip17'>Enable validation of new P2SH transactions</flag>
31 <flag name='eligius'>Enable using lower fees accepted by Eligius</flag>
32 <flag name='upnp'>Enable Universal Plug and Play</flag>
33 </use>
34
35
36
37 1.5 net-p2p/bitcoin-qt/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog?rev=1.5&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog?rev=1.5&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog?r1=1.4&r2=1.5
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog,v
46 retrieving revision 1.4
47 retrieving revision 1.5
48 diff -u -r1.4 -r1.5
49 --- ChangeLog 11 Jan 2012 15:54:07 -0000 1.4
50 +++ ChangeLog 8 Feb 2012 00:22:45 -0000 1.5
51 @@ -1,5 +1,12 @@
52
53
54 +*bitcoin-qt-0.5.2-r1 (08 Feb 2012)
55 +*bitcoin-qt-0.5.0.3-r1 (08 Feb 2012)
56 +
57 + 08 Feb 2012; Anthony G. Basile <blueness@g.o>
58 + +bitcoin-qt-0.5.0.3-r1.ebuild, +bitcoin-qt-0.5.2-r1.ebuild, metadata.xml:
59 + Add USE=bip17 to validate new P2SH transactions
60 +
61 *bitcoin-qt-0.5.2 (11 Jan 2012)
62 *bitcoin-qt-0.5.0.3 (11 Jan 2012)
63
64
65
66
67 1.1 net-p2p/bitcoin-qt/bitcoin-qt-0.5.2-r1.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.2-r1.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.2-r1.ebuild?rev=1.1&content-type=text/plain
71
72 Index: bitcoin-qt-0.5.2-r1.ebuild
73 ===================================================================
74 # Copyright 1999-2012 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.2-r1.ebuild,v 1.1 2012/02/08 00:22:45 blueness Exp $
77
78 EAPI=4
79
80 DB_VER="4.8"
81
82 LANGS="da de en es es_CL hu it nb nl pt_BR ru uk zh_CN zh_TW"
83 inherit db-use eutils qt4-r2 versionator
84
85 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
86 HOMEPAGE="http://bitcoin.org/"
87 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
88 bip17? ( http://luke.dashjr.org/programs/bitcoin/files/bip17/bip17_v${PV}.patch )
89 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/0.5.2-eligius_sendfee.patch.xz )
90 "
91
92 LICENSE="MIT ISC GPL-3 md2k7-asyouwish LGPL-2.1 public-domain"
93 SLOT="0"
94 KEYWORDS="~amd64 ~arm ~x86"
95 IUSE="$IUSE +bip17 dbus +eligius ssl upnp"
96
97 RDEPEND="
98 >=dev-libs/boost-1.41.0
99 dev-libs/openssl[-bindist]
100 upnp? (
101 net-libs/miniupnpc
102 )
103 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
104 x11-libs/qt-gui
105 dbus? (
106 x11-libs/qt-dbus
107 )
108 "
109 DEPEND="${RDEPEND}
110 >=app-shells/bash-4.1
111 "
112
113 DOCS="doc/README"
114
115 S="${WORKDIR}/bitcoin-bitcoind-stable"
116
117 src_prepare() {
118 cd src || die
119 use bip17 && epatch "${DISTDIR}/bip17_v${PV}.patch"
120 use eligius && epatch "${WORKDIR}/0.5.2-eligius_sendfee.patch"
121
122 local filt= yeslang= nolang=
123
124 for lan in $LANGS; do
125 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
126 ewarn "Language '$lan' no longer supported. Ebuild needs update."
127 fi
128 done
129
130 for ts in $(ls qt/locale/*.ts)
131 do
132 x="${ts/*bitcoin_/}"
133 x="${x/.ts/}"
134 if ! use "linguas_$x"; then
135 nolang="$nolang $x"
136 rm "$ts"
137 filt="$filt\\|$x"
138 else
139 yeslang="$yeslang $x"
140 fi
141 done
142 filt="bitcoin_\\(${filt:2}\\)\\.qm"
143 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
144 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
145 }
146
147 src_configure() {
148 local OPTS=()
149 local BOOST_PKG BOOST_VER
150
151 use dbus && OPTS+=("USE_DBUS=1")
152 use ssl && OPTS+=("DEFINES+=USE_SSL")
153 if use upnp; then
154 OPTS+=("USE_UPNP=1")
155 else
156 OPTS+=("USE_UPNP=-")
157 fi
158
159 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
160 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
161
162 BOOST_PKG="$(best_version 'dev-libs/boost')"
163 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
164 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
165 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
166 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
167
168 eqmake4 "${PN}.pro" "${OPTS[@]}"
169 }
170
171 src_compile() {
172 emake
173 }
174
175 src_install() {
176 qt4-r2_src_install
177 dobin ${PN}
178 insinto /usr/share/pixmaps
179 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
180 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
181 }
182
183
184
185 1.1 net-p2p/bitcoin-qt/bitcoin-qt-0.5.0.3-r1.ebuild
186
187 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.0.3-r1.ebuild?rev=1.1&view=markup
188 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.0.3-r1.ebuild?rev=1.1&content-type=text/plain
189
190 Index: bitcoin-qt-0.5.0.3-r1.ebuild
191 ===================================================================
192 # Copyright 1999-2012 Gentoo Foundation
193 # Distributed under the terms of the GNU General Public License v2
194 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.0.3-r1.ebuild,v 1.1 2012/02/08 00:22:45 blueness Exp $
195
196 EAPI=4
197
198 DB_VER="4.8"
199
200 LANGS="da de en es es_CL nb nl ru zh_TW"
201 inherit db-use eutils qt4-r2 versionator
202
203 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
204 HOMEPAGE="http://bitcoin.org/"
205 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
206 bip17? ( http://luke.dashjr.org/programs/bitcoin/files/bip17/bip17_v${PV}.patch )
207 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/0.5.2-eligius_sendfee.patch.xz )
208 "
209
210 LICENSE="MIT ISC CCPL-Attribution-3.0 GPL-3 md2k7-asyouwish LGPL-2.1 public-domain"
211 SLOT="0"
212 KEYWORDS="~amd64 ~arm ~x86"
213 IUSE="$IUSE +bip17 dbus +eligius ssl upnp"
214
215 RDEPEND="
216 >=dev-libs/boost-1.41.0
217 dev-libs/openssl[-bindist]
218 upnp? (
219 net-libs/miniupnpc
220 )
221 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
222 x11-libs/qt-gui
223 dbus? (
224 x11-libs/qt-dbus
225 )
226 "
227 DEPEND="${RDEPEND}
228 >=app-shells/bash-4.1
229 "
230
231 DOCS="doc/README"
232
233 S="${WORKDIR}/bitcoin-bitcoind-stable"
234
235 src_prepare() {
236 cd src || die
237 use bip17 && epatch "${DISTDIR}/bip17_v${PV}.patch"
238 use eligius && epatch "${WORKDIR}/0.5.2-eligius_sendfee.patch"
239
240 local filt= yeslang= nolang=
241
242 for lan in $LANGS; do
243 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
244 ewarn "Language '$lan' no longer supported. Ebuild needs update."
245 fi
246 done
247
248 for ts in $(ls qt/locale/*.ts)
249 do
250 x="${ts/*bitcoin_/}"
251 x="${x/.ts/}"
252 if ! use "linguas_$x"; then
253 nolang="$nolang $x"
254 rm "$ts"
255 filt="$filt\\|$x"
256 else
257 yeslang="$yeslang $x"
258 fi
259 done
260 filt="bitcoin_\\(${filt:2}\\)\\.qm"
261 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
262 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
263 }
264
265 src_configure() {
266 local OPTS=()
267 local BOOST_PKG BOOST_VER
268
269 use dbus && OPTS+=("USE_DBUS=1")
270 use ssl && OPTS+=("DEFINES+=USE_SSL")
271 if use upnp; then
272 OPTS+=("USE_UPNP=1")
273 else
274 OPTS+=("USE_UPNP=-")
275 fi
276
277 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
278 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
279
280 BOOST_PKG="$(best_version 'dev-libs/boost')"
281 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
282 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
283 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
284 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
285
286 eqmake4 "${PN}.pro" "${OPTS[@]}"
287 }
288
289 src_compile() {
290 emake
291 }
292
293 src_install() {
294 qt4-r2_src_install
295 dobin ${PN}
296 insinto /usr/share/pixmaps
297 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
298 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
299 }