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: bitcoin-qt-0.6.0.10_rc4.ebuild bitcoin-qt-0.6.4_rc4.ebuild bitcoin-qt-0.7.1.ebuild bitcoin-qt-0.5.7_rc4.ebuild ChangeLog
Date: Mon, 29 Oct 2012 01:58:49
Message-Id: 20121029015837.66F7521600@flycatcher.gentoo.org
1 blueness 12/10/29 01:58:37
2
3 Modified: ChangeLog
4 Added: bitcoin-qt-0.6.0.10_rc4.ebuild
5 bitcoin-qt-0.6.4_rc4.ebuild bitcoin-qt-0.7.1.ebuild
6 bitcoin-qt-0.5.7_rc4.ebuild
7 Log:
8 Version bumps, bug #435216
9
10 (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xD0455535)
11
12 Revision Changes Path
13 1.44 net-p2p/bitcoin-qt/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog?rev=1.44&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog?rev=1.44&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog?r1=1.43&r2=1.44
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog,v
22 retrieving revision 1.43
23 retrieving revision 1.44
24 diff -u -r1.43 -r1.44
25 --- ChangeLog 21 Oct 2012 00:06:15 -0000 1.43
26 +++ ChangeLog 29 Oct 2012 01:58:37 -0000 1.44
27 @@ -1,6 +1,16 @@
28 # ChangeLog for net-p2p/bitcoin-qt
29 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog,v 1.43 2012/10/21 00:06:15 blueness Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/ChangeLog,v 1.44 2012/10/29 01:58:37 blueness Exp $
32 +
33 +*bitcoin-qt-0.5.7_rc4 (29 Oct 2012)
34 +*bitcoin-qt-0.6.4_rc4 (29 Oct 2012)
35 +*bitcoin-qt-0.7.1 (29 Oct 2012)
36 +*bitcoin-qt-0.6.0.10_rc4 (29 Oct 2012)
37 +
38 + 29 Oct 2012; Anthony G. Basile <blueness@g.o>
39 + +bitcoin-qt-0.5.7_rc4.ebuild, +bitcoin-qt-0.6.0.10_rc4.ebuild,
40 + +bitcoin-qt-0.6.4_rc4.ebuild, +bitcoin-qt-0.7.1.ebuild:
41 + Version bumps, bug #435216
42
43 21 Oct 2012; Anthony G. Basile <blueness@g.o> bitcoin-qt-0.6.3.ebuild:
44 stable arm, bug #429188
45
46
47
48 1.1 net-p2p/bitcoin-qt/bitcoin-qt-0.6.0.10_rc4.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.6.0.10_rc4.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.6.0.10_rc4.ebuild?rev=1.1&content-type=text/plain
52
53 Index: bitcoin-qt-0.6.0.10_rc4.ebuild
54 ===================================================================
55 # Copyright 2010-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.6.0.10_rc4.ebuild,v 1.1 2012/10/29 01:58:37 blueness Exp $
58
59 EAPI=4
60
61 DB_VER="4.8"
62
63 LANGS="ca_ES cs da de en es es_CL et eu_ES fa fa_IR fi fr_CA fr_FR he hr hu it lt nb nl pl pt_BR ro_RO ru sk sr sv tr uk zh_CN zh_TW"
64 inherit db-use eutils qt4-r2 versionator
65
66 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
67 HOMEPAGE="http://bitcoin.org/"
68 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
69 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/eligius_sendfee/0.6.0-eligius_sendfee.patch.xz )
70 "
71
72 LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain"
73 SLOT="0"
74 KEYWORDS="~amd64 ~arm ~x86"
75 IUSE="$IUSE 1stclassmsg dbus +eligius +qrcode ssl upnp"
76
77 RDEPEND="
78 >=dev-libs/boost-1.41.0
79 dev-libs/openssl[-bindist]
80 qrcode? (
81 media-gfx/qrencode
82 )
83 upnp? (
84 net-libs/miniupnpc
85 )
86 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
87 x11-libs/qt-gui:4
88 dbus? (
89 x11-libs/qt-dbus:4
90 )
91 "
92 DEPEND="${RDEPEND}
93 >=app-shells/bash-4.1
94 "
95
96 DOCS="doc/README"
97
98 S="${WORKDIR}/bitcoin-bitcoind-stable"
99
100 src_prepare() {
101 cd src || die
102 use eligius && epatch "${WORKDIR}/0.6.0-eligius_sendfee.patch"
103
104 local filt= yeslang= nolang=
105
106 for lan in $LANGS; do
107 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
108 ewarn "Language '$lan' no longer supported. Ebuild needs update."
109 fi
110 done
111
112 for ts in $(ls qt/locale/*.ts)
113 do
114 x="${ts/*bitcoin_/}"
115 x="${x/.ts/}"
116 if ! use "linguas_$x"; then
117 nolang="$nolang $x"
118 rm "$ts"
119 filt="$filt\\|$x"
120 else
121 yeslang="$yeslang $x"
122 fi
123 done
124 filt="bitcoin_\\(${filt:2}\\)\\.qm"
125 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
126 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
127 }
128
129 src_configure() {
130 OPTS=()
131 local BOOST_PKG BOOST_VER
132
133 use dbus && OPTS+=("USE_DBUS=1")
134 use ssl && OPTS+=("DEFINES+=USE_SSL")
135 if use upnp; then
136 OPTS+=("USE_UPNP=1")
137 else
138 OPTS+=("USE_UPNP=-")
139 fi
140 use qrcode && OPTS+=("USE_QRCODE=1")
141 use 1stclassmsg && OPTS+=("FIRST_CLASS_MESSAGING=1")
142
143 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
144 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
145
146 BOOST_PKG="$(best_version 'dev-libs/boost')"
147 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
148 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
149 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
150 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
151
152 eqmake4 "${PN}.pro" "${OPTS[@]}"
153 }
154
155 src_compile() {
156 emake
157 }
158
159 src_test() {
160 cd src || die
161 emake -f makefile.unix "${OPTS[@]}" test_bitcoin
162 ./test_bitcoin || die 'Tests failed'
163 }
164
165 src_install() {
166 qt4-r2_src_install
167 dobin ${PN}
168 insinto /usr/share/pixmaps
169 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
170 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
171 }
172
173
174
175 1.1 net-p2p/bitcoin-qt/bitcoin-qt-0.6.4_rc4.ebuild
176
177 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.6.4_rc4.ebuild?rev=1.1&view=markup
178 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.6.4_rc4.ebuild?rev=1.1&content-type=text/plain
179
180 Index: bitcoin-qt-0.6.4_rc4.ebuild
181 ===================================================================
182 # Copyright 2010-2012 Gentoo Foundation
183 # Distributed under the terms of the GNU General Public License v2
184 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.6.4_rc4.ebuild,v 1.1 2012/10/29 01:58:37 blueness Exp $
185
186 EAPI=4
187
188 DB_VER="4.8"
189
190 LANGS="ca_ES cs da de en es es_CL et eu_ES fa fa_IR fi fr_CA fr_FR he hr hu it lt nb nl pl pt_BR ro_RO ru sk sr sv tr uk zh_CN zh_TW"
191 inherit db-use eutils qt4-r2 versionator
192
193 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
194 HOMEPAGE="http://bitcoin.org/"
195 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/392d30f0 -> bitcoin-v${PV}.tgz
196 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/bitcoind/eligius/sendfee/0.6.1-eligius_sendfee.patch.xz )
197 "
198
199 LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain"
200 SLOT="0"
201 KEYWORDS="~amd64 ~arm ~x86"
202 IUSE="$IUSE 1stclassmsg dbus +eligius +qrcode upnp"
203
204 RDEPEND="
205 >=dev-libs/boost-1.41.0
206 dev-libs/openssl[-bindist]
207 qrcode? (
208 media-gfx/qrencode
209 )
210 upnp? (
211 net-libs/miniupnpc
212 )
213 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
214 x11-libs/qt-gui:4
215 dbus? (
216 x11-libs/qt-dbus:4
217 )
218 "
219 DEPEND="${RDEPEND}
220 >=app-shells/bash-4.1
221 "
222
223 DOCS="doc/README"
224
225 S="${WORKDIR}/bitcoin-bitcoind-stable"
226
227 src_prepare() {
228 cd src || die
229 use eligius && epatch "${WORKDIR}/0.6.1-eligius_sendfee.patch"
230
231 local filt= yeslang= nolang=
232
233 for lan in $LANGS; do
234 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
235 ewarn "Language '$lan' no longer supported. Ebuild needs update."
236 fi
237 done
238
239 for ts in $(ls qt/locale/*.ts)
240 do
241 x="${ts/*bitcoin_/}"
242 x="${x/.ts/}"
243 if ! use "linguas_$x"; then
244 nolang="$nolang $x"
245 rm "$ts"
246 filt="$filt\\|$x"
247 else
248 yeslang="$yeslang $x"
249 fi
250 done
251 filt="bitcoin_\\(${filt:2}\\)\\.qm"
252 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
253 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
254 }
255
256 src_configure() {
257 OPTS=()
258 local BOOST_PKG BOOST_VER
259
260 use dbus && OPTS+=("USE_DBUS=1")
261 if use upnp; then
262 OPTS+=("USE_UPNP=1")
263 else
264 OPTS+=("USE_UPNP=-")
265 fi
266 use qrcode && OPTS+=("USE_QRCODE=1")
267 use 1stclassmsg && OPTS+=("FIRST_CLASS_MESSAGING=1")
268
269 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
270 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
271
272 BOOST_PKG="$(best_version 'dev-libs/boost')"
273 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
274 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
275 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
276 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
277
278 eqmake4 "${PN}.pro" "${OPTS[@]}"
279 }
280
281 src_compile() {
282 # Workaround for bug #440034
283 share/genbuild.sh build/build.h
284
285 emake
286 }
287
288 src_test() {
289 cd src || die
290 emake -f makefile.unix "${OPTS[@]}" test_bitcoin
291 ./test_bitcoin || die 'Tests failed'
292 }
293
294 src_install() {
295 qt4-r2_src_install
296 dobin ${PN}
297 insinto /usr/share/pixmaps
298 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
299 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
300 }
301
302
303
304 1.1 net-p2p/bitcoin-qt/bitcoin-qt-0.7.1.ebuild
305
306 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.7.1.ebuild?rev=1.1&view=markup
307 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.7.1.ebuild?rev=1.1&content-type=text/plain
308
309 Index: bitcoin-qt-0.7.1.ebuild
310 ===================================================================
311 # Copyright 2010-2012 Gentoo Foundation
312 # Distributed under the terms of the GNU General Public License v2
313 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.7.1.ebuild,v 1.1 2012/10/29 01:58:37 blueness Exp $
314
315 EAPI=4
316
317 DB_VER="4.8"
318
319 LANGS="bg ca_ES cs da de el_GR en es es_CL et eu_ES fa fa_IR fi fr fr_CA he hr hu it lt nb nl pl pt_BR pt_PT ro_RO ru sk sr sv tr uk zh_CN zh_TW"
320 inherit db-use eutils qt4-r2 versionator
321
322 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
323 HOMEPAGE="http://bitcoin.org/"
324 SRC_URI="https://nodeload.github.com/bitcoin/bitcoin/tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
325 1stclassmsg? ( http://luke.dashjr.org/programs/bitcoin/files/bitcoind/luke-jr/1stclassmsg/0.7.1-1stclassmsg.patch.xz )
326 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/bitcoind/eligius/sendfee/0.7.1-eligius_sendfee.patch.xz )
327 "
328
329 LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain || ( CCPL-Attribution-ShareAlike-3.0 LGPL-2.1 )"
330 SLOT="0"
331 KEYWORDS="~amd64 ~arm ~x86"
332 IUSE="$IUSE 1stclassmsg dbus +eligius ipv6 +qrcode upnp"
333
334 RDEPEND="
335 >=dev-libs/boost-1.41.0
336 dev-libs/openssl[-bindist]
337 qrcode? (
338 media-gfx/qrencode
339 )
340 upnp? (
341 net-libs/miniupnpc
342 )
343 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
344 x11-libs/qt-gui:4
345 dbus? (
346 x11-libs/qt-dbus:4
347 )
348 "
349 DEPEND="${RDEPEND}
350 >=app-shells/bash-4.1
351 "
352
353 DOCS="doc/README"
354
355 S="${WORKDIR}/bitcoin-bitcoin-d082365"
356
357 src_prepare() {
358 use 1stclassmsg && epatch "${WORKDIR}/0.7.1-1stclassmsg.patch"
359 cd src || die
360 use eligius && epatch "${WORKDIR}/0.7.1-eligius_sendfee.patch"
361
362 local filt= yeslang= nolang=
363
364 for lan in $LANGS; do
365 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
366 ewarn "Language '$lan' no longer supported. Ebuild needs update."
367 fi
368 done
369
370 for ts in $(ls qt/locale/*.ts)
371 do
372 x="${ts/*bitcoin_/}"
373 x="${x/.ts/}"
374 if ! use "linguas_$x"; then
375 nolang="$nolang $x"
376 rm "$ts"
377 filt="$filt\\|$x"
378 else
379 yeslang="$yeslang $x"
380 fi
381 done
382 filt="bitcoin_\\(${filt:2}\\)\\.qm"
383 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
384 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
385 }
386
387 src_configure() {
388 OPTS=()
389 local BOOST_PKG BOOST_VER
390
391 use dbus && OPTS+=("USE_DBUS=1")
392 if use upnp; then
393 OPTS+=("USE_UPNP=1")
394 else
395 OPTS+=("USE_UPNP=-")
396 fi
397 use qrcode && OPTS+=("USE_QRCODE=1")
398 use 1stclassmsg && OPTS+=("FIRST_CLASS_MESSAGING=1")
399 use ipv6 || OPTS+=("USE_IPV6=-")
400
401 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
402 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
403
404 BOOST_PKG="$(best_version 'dev-libs/boost')"
405 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
406 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
407 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
408 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
409
410 eqmake4 "${PN}.pro" "${OPTS[@]}"
411 }
412
413 src_compile() {
414 # Workaround for bug #440034
415 share/genbuild.sh build/build.h
416
417 emake
418 }
419
420 src_test() {
421 cd src || die
422 emake -f makefile.unix "${OPTS[@]}" test_bitcoin
423 ./test_bitcoin || die 'Tests failed'
424 }
425
426 src_install() {
427 qt4-r2_src_install
428 dobin ${PN}
429 insinto /usr/share/pixmaps
430 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
431 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
432 }
433
434
435
436 1.1 net-p2p/bitcoin-qt/bitcoin-qt-0.5.7_rc4.ebuild
437
438 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.7_rc4.ebuild?rev=1.1&view=markup
439 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.7_rc4.ebuild?rev=1.1&content-type=text/plain
440
441 Index: bitcoin-qt-0.5.7_rc4.ebuild
442 ===================================================================
443 # Copyright 2010-2012 Gentoo Foundation
444 # Distributed under the terms of the GNU General Public License v2
445 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.7_rc4.ebuild,v 1.1 2012/10/29 01:58:37 blueness Exp $
446
447 EAPI=4
448
449 DB_VER="4.8"
450
451 LANGS="da de en es es_CL hu it nb nl pt_BR ru uk zh_CN zh_TW"
452 inherit db-use eutils qt4-r2 versionator
453
454 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
455 HOMEPAGE="http://bitcoin.org/"
456 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
457 bip16? ( http://luke.dashjr.org/programs/bitcoin/files/bip16/0.5.6-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch.xz )
458 eligius? (
459 !bip16? ( http://luke.dashjr.org/programs/bitcoin/files/eligius_sendfee/0.5.0.6rc1-eligius_sendfee.patch.xz )
460 )
461 "
462
463 LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain"
464 SLOT="0"
465 KEYWORDS="~amd64 ~arm ~x86"
466 IUSE="$IUSE +bip16 dbus +eligius ssl upnp"
467
468 RDEPEND="
469 >=dev-libs/boost-1.41.0
470 dev-libs/openssl[-bindist]
471 upnp? (
472 net-libs/miniupnpc
473 )
474 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
475 x11-libs/qt-gui:4
476 dbus? (
477 x11-libs/qt-dbus:4
478 )
479 "
480 DEPEND="${RDEPEND}
481 >=app-shells/bash-4.1
482 "
483
484 DOCS="doc/README"
485
486 S="${WORKDIR}/bitcoin-bitcoind-stable"
487
488 src_prepare() {
489 cd src || die
490 if use bip16; then
491 epatch "${WORKDIR}/0.5.6-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch"
492 use eligius && epatch "${FILESDIR}/0.5.0.5+bip16-eligius_sendfee.patch"
493 else
494 use eligius && epatch "${WORKDIR}/0.5.0.6rc1-eligius_sendfee.patch"
495 fi
496
497 local filt= yeslang= nolang=
498
499 for lan in $LANGS; do
500 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
501 ewarn "Language '$lan' no longer supported. Ebuild needs update."
502 fi
503 done
504
505 for ts in $(ls qt/locale/*.ts)
506 do
507 x="${ts/*bitcoin_/}"
508 x="${x/.ts/}"
509 if ! use "linguas_$x"; then
510 nolang="$nolang $x"
511 rm "$ts"
512 filt="$filt\\|$x"
513 else
514 yeslang="$yeslang $x"
515 fi
516 done
517 filt="bitcoin_\\(${filt:2}\\)\\.qm"
518 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
519 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
520 }
521
522 src_configure() {
523 OPTS=()
524 local BOOST_PKG BOOST_VER
525
526 use dbus && OPTS+=("USE_DBUS=1")
527 use ssl && OPTS+=("DEFINES+=USE_SSL")
528 if use upnp; then
529 OPTS+=("USE_UPNP=1")
530 else
531 OPTS+=("USE_UPNP=-")
532 fi
533
534 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
535 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
536
537 BOOST_PKG="$(best_version 'dev-libs/boost')"
538 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
539 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
540 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
541 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
542
543 eqmake4 "${PN}.pro" "${OPTS[@]}"
544 }
545
546 src_compile() {
547 emake
548 }
549
550 src_test() {
551 cd src || die
552 emake -f makefile.unix "${OPTS[@]}" test_bitcoin
553 ./test_bitcoin || die 'Tests failed'
554 }
555
556 src_install() {
557 qt4-r2_src_install
558 dobin ${PN}
559 insinto /usr/share/pixmaps
560 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
561 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
562 }