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

Contents of /net-p2p/bitcoin-qt/bitcoin-qt-0.8.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Tue May 14 09:39:23 2013 UTC (5 years, 6 months ago) by ago
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #469342

(Portage version: 2.1.11.63/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 blueness 1.1 # Copyright 2010-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.4 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-0.8.1.ebuild,v 1.3 2013/05/14 09:32:08 ago Exp $
4 blueness 1.1
5     EAPI=4
6    
7     DB_VER="4.8"
8    
9     LANGS="bg ca_ES cs da de el_GR en es es_CL et eu_ES fa fa_IR fi fr fr_CA gu_IN he hi_IN hr hu it ja lt nb nl pl pt_BR pt_PT ro_RO ru sk sr sv tr uk zh_CN zh_TW"
10     inherit db-use eutils qt4-r2 versionator
11    
12     MyPV="${PV/_/}"
13     MyPN="bitcoin"
14     MyP="${MyPN}-${MyPV}"
15    
16     DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
17     HOMEPAGE="http://bitcoin.org/"
18     SRC_URI="https://github.com/${MyPN}/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyPN}-v${PV}.tgz
19     1stclassmsg? ( http://luke.dashjr.org/programs/bitcoin/files/bitcoind/luke-jr/1stclassmsg/0.7.1-1stclassmsg.patch.xz )
20     "
21    
22     LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain || ( CC-BY-SA-3.0 LGPL-2.1 )"
23     SLOT="0"
24 ago 1.4 KEYWORDS="amd64 ~arm x86"
25 blueness 1.1 IUSE="$IUSE 1stclassmsg dbus ipv6 +qrcode upnp"
26    
27     RDEPEND="
28     >=dev-libs/boost-1.41.0[threads(+)]
29 blueness 1.2 dev-libs/openssl:0[-bindist]
30 blueness 1.1 qrcode? (
31     media-gfx/qrencode
32     )
33     upnp? (
34     net-libs/miniupnpc
35     )
36     sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
37     =dev-libs/leveldb-1.9.0*
38     dev-qt/qtgui:4
39     dbus? (
40     dev-qt/qtdbus:4
41     )
42     "
43     DEPEND="${RDEPEND}
44     >=app-shells/bash-4.1
45     "
46    
47     DOCS="doc/README"
48    
49     S="${WORKDIR}/${MyP}"
50    
51     src_prepare() {
52     use 1stclassmsg && epatch "${WORKDIR}/0.7.1-1stclassmsg.patch"
53     epatch "${FILESDIR}/0.8.0-sys_leveldb.patch"
54     rm -r src/leveldb
55    
56     cd src || die
57    
58     local filt= yeslang= nolang=
59    
60     for lan in $LANGS; do
61     if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
62     ewarn "Language '$lan' no longer supported. Ebuild needs update."
63     fi
64     done
65    
66     for ts in $(ls qt/locale/*.ts)
67     do
68     x="${ts/*bitcoin_/}"
69     x="${x/.ts/}"
70     if ! use "linguas_$x"; then
71     nolang="$nolang $x"
72     rm "$ts"
73     filt="$filt\\|$x"
74     else
75     yeslang="$yeslang $x"
76     fi
77     done
78     filt="bitcoin_\\(${filt:2}\\)\\.qm"
79     sed "/${filt}/d" -i 'qt/bitcoin.qrc'
80     einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
81     }
82    
83     src_configure() {
84     OPTS=()
85    
86     use dbus && OPTS+=("USE_DBUS=1")
87     if use upnp; then
88     OPTS+=("USE_UPNP=1")
89     else
90     OPTS+=("USE_UPNP=-")
91     fi
92     use qrcode && OPTS+=("USE_QRCODE=1")
93     use 1stclassmsg && OPTS+=("FIRST_CLASS_MESSAGING=1")
94     use ipv6 || OPTS+=("USE_IPV6=-")
95    
96     OPTS+=("USE_SYSTEM_LEVELDB=1")
97    
98     OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
99     OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
100    
101     eqmake4 "${PN}.pro" "${OPTS[@]}"
102     }
103    
104     src_test() {
105     cd src || die
106     emake -f makefile.unix "${OPTS[@]}" test_bitcoin
107     ./test_bitcoin || die 'Tests failed'
108     }
109    
110     src_install() {
111     qt4-r2_src_install
112     dobin ${PN}
113     insinto /usr/share/pixmaps
114     newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
115     make_desktop_entry ${PN} "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Network;P2P"
116     }

  ViewVC Help
Powered by ViewVC 1.1.20