/[gentoo-x86]/net-p2p/bitcoin-qt/bitcoin-qt-0.5.0.3-r2.ebuild
Gentoo

Contents of /net-p2p/bitcoin-qt/bitcoin-qt-0.5.0.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Mar 15 16:56:53 2012 UTC (2 years, 6 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove unstable vulnerable versions, bug #407793

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.0.3-r2.ebuild,v 1.1 2012/02/21 17:59:36 blueness Exp $
4
5 EAPI=4
6
7 DB_VER="4.8"
8
9 LANGS="da de en es es_CL nb nl ru 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 bip17? ( http://luke.dashjr.org/programs/bitcoin/files/bip17/bip17_v${PV}.patch -> bip17_v${PV}_r2.patch )
16 eligius? ( http://luke.dashjr.org/programs/bitcoin/files/0.5.2-eligius_sendfee.patch.xz )
17 "
18
19 LICENSE="MIT ISC CCPL-Attribution-3.0 GPL-3 md2k7-asyouwish LGPL-2.1 public-domain"
20 SLOT="0"
21 KEYWORDS="~amd64 ~arm ~x86"
22 IUSE="$IUSE +bip17 dbus +eligius ssl upnp"
23
24 RDEPEND="
25 >=dev-libs/boost-1.41.0
26 dev-libs/openssl[-bindist]
27 upnp? (
28 net-libs/miniupnpc
29 )
30 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
31 x11-libs/qt-gui
32 dbus? (
33 x11-libs/qt-dbus
34 )
35 "
36 DEPEND="${RDEPEND}
37 >=app-shells/bash-4.1
38 "
39
40 DOCS="doc/README"
41
42 S="${WORKDIR}/bitcoin-bitcoind-stable"
43
44 src_prepare() {
45 cd src || die
46 use bip17 && epatch "${DISTDIR}/bip17_v${PV}_r2.patch"
47 use eligius && epatch "${WORKDIR}/0.5.2-eligius_sendfee.patch"
48
49 local filt= yeslang= nolang=
50
51 for lan in $LANGS; do
52 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
53 ewarn "Language '$lan' no longer supported. Ebuild needs update."
54 fi
55 done
56
57 for ts in $(ls qt/locale/*.ts)
58 do
59 x="${ts/*bitcoin_/}"
60 x="${x/.ts/}"
61 if ! use "linguas_$x"; then
62 nolang="$nolang $x"
63 rm "$ts"
64 filt="$filt\\|$x"
65 else
66 yeslang="$yeslang $x"
67 fi
68 done
69 filt="bitcoin_\\(${filt:2}\\)\\.qm"
70 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
71 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
72 }
73
74 src_configure() {
75 local OPTS=()
76 local BOOST_PKG BOOST_VER
77
78 use dbus && OPTS+=("USE_DBUS=1")
79 use ssl && OPTS+=("DEFINES+=USE_SSL")
80 if use upnp; then
81 OPTS+=("USE_UPNP=1")
82 else
83 OPTS+=("USE_UPNP=-")
84 fi
85
86 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
87 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
88
89 BOOST_PKG="$(best_version 'dev-libs/boost')"
90 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
91 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
92 OPTS+=("BOOST_INCLUDE_PATH=/usr/include/boost-${BOOST_VER}")
93 OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
94
95 eqmake4 "${PN}.pro" "${OPTS[@]}"
96 }
97
98 src_compile() {
99 emake
100 }
101
102 src_install() {
103 qt4-r2_src_install
104 dobin ${PN}
105 insinto /usr/share/pixmaps
106 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
107 make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
108 }

  ViewVC Help
Powered by ViewVC 1.1.20