/[gentoo-x86]/net-p2p/bitcoin-qt/bitcoin-qt-0.5.7_rc3.ebuild
Gentoo

Contents of /net-p2p/bitcoin-qt/bitcoin-qt-0.5.7_rc3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jan 13 22:40:35 2013 UTC (19 months, 1 week ago) by blueness
Branch: MAIN
Changes since 1.1: +3 -10 lines
Remove boost versioning for remaining versions, bug #445180

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.5.7_rc3.ebuild,v 1.1 2012/10/08 18:26:45 blueness Exp $
4
5 EAPI=4
6
7 DB_VER="4.8"
8
9 LANGS="da de en es es_CL hu it nb nl pt_BR ru uk zh_CN zh_TW"
10 inherit db-use eutils qt4-r2 versionator
11
12 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
13 HOMEPAGE="http://bitcoin.org/"
14 SRC_URI="http://gitorious.org/bitcoin/bitcoind-stable/archive-tarball/v${PV/_/} -> bitcoin-v${PV}.tgz
15 bip16? ( http://luke.dashjr.org/programs/bitcoin/files/bip16/0.5.6-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch.xz )
16 eligius? (
17 !bip16? ( http://luke.dashjr.org/programs/bitcoin/files/eligius_sendfee/0.5.0.6rc1-eligius_sendfee.patch.xz )
18 )
19 "
20
21 LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain"
22 SLOT="0"
23 KEYWORDS="~amd64 ~arm ~x86"
24 IUSE="$IUSE +bip16 dbus +eligius ssl upnp"
25
26 RDEPEND="
27 >=dev-libs/boost-1.41.0[threads(+)]
28 dev-libs/openssl[-bindist]
29 upnp? (
30 net-libs/miniupnpc
31 )
32 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
33 x11-libs/qt-gui:4
34 dbus? (
35 x11-libs/qt-dbus:4
36 )
37 "
38 DEPEND="${RDEPEND}
39 >=app-shells/bash-4.1
40 "
41
42 DOCS="doc/README"
43
44 S="${WORKDIR}/bitcoin-bitcoind-stable"
45
46 src_prepare() {
47 cd src || die
48 if use bip16; then
49 epatch "${WORKDIR}/0.5.6-Minimal-support-for-mining-BIP16-pay-to-script-hash-.patch"
50 use eligius && epatch "${FILESDIR}/0.5.0.5+bip16-eligius_sendfee.patch"
51 else
52 use eligius && epatch "${WORKDIR}/0.5.0.6rc1-eligius_sendfee.patch"
53 fi
54
55 local filt= yeslang= nolang=
56
57 for lan in $LANGS; do
58 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
59 ewarn "Language '$lan' no longer supported. Ebuild needs update."
60 fi
61 done
62
63 for ts in $(ls qt/locale/*.ts)
64 do
65 x="${ts/*bitcoin_/}"
66 x="${x/.ts/}"
67 if ! use "linguas_$x"; then
68 nolang="$nolang $x"
69 rm "$ts"
70 filt="$filt\\|$x"
71 else
72 yeslang="$yeslang $x"
73 fi
74 done
75 filt="bitcoin_\\(${filt:2}\\)\\.qm"
76 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
77 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
78 }
79
80 src_configure() {
81 OPTS=()
82
83 use dbus && OPTS+=("USE_DBUS=1")
84 use ssl && OPTS+=("DEFINES+=USE_SSL")
85 if use upnp; then
86 OPTS+=("USE_UPNP=1")
87 else
88 OPTS+=("USE_UPNP=-")
89 fi
90
91 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
92 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
93
94 eqmake4 "${PN}.pro" "${OPTS[@]}"
95 }
96
97 src_compile() {
98 emake
99 }
100
101 src_test() {
102 cd src || die
103 emake -f makefile.unix "${OPTS[@]}" test_bitcoin
104 ./test_bitcoin || die 'Tests failed'
105 }
106
107 src_install() {
108 qt4-r2_src_install
109 dobin ${PN}
110 insinto /usr/share/pixmaps
111 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
112 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
113 }

  ViewVC Help
Powered by ViewVC 1.1.20