blob: 3a8a09aeb01fb454c885936a44374a0413a91872 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 2010-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitcoin-qt/bitcoin-qt-9999.ebuild,v 1.6 2015/03/04 00:04:51 blueness Exp $
EAPI=5
LANGS="ach af_ZA ar be_BY bg bs ca ca@valencia ca_ES cmn cs cy da de el_GR en eo es es_CL es_DO es_MX es_UY et eu_ES fa fa_IR fi fr fr_CA gl gu_IN he hi_IN hr hu id_ID it ja ka kk_KZ ko_KR ky la lt lv_LV mn ms_MY nb nl pam pl pt_BR pt_PT ro_RO ru sah sk sl_SI sq sr sv th_TH tr uk ur_PK uz@Cyrl vi vi_VN zh_HK zh_CN zh_TW"
BITCOINCORE_IUSE="dbus kde +qrcode test upnp +wallet"
BITCOINCORE_NEED_LEVELDB=1
BITCOINCORE_NEED_LIBSECP256K1=1
inherit bitcoincore eutils fdo-mime gnome2-utils kde4-functions qt4-r2 git-2
DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency"
LICENSE="MIT GPL-3 LGPL-2.1 || ( CC-BY-SA-3.0 LGPL-2.1 )"
SLOT="0"
KEYWORDS=""
RDEPEND="
dev-libs/protobuf
qrcode? (
media-gfx/qrencode
)
dev-qt/qtgui:4
dbus? (
dev-qt/qtdbus:4
)
"
DEPEND="${RDEPEND}"
src_prepare() {
bitcoincore_prepare
local filt= yeslang= nolang=
for lan in $LANGS; do
if [ ! -e src/qt/locale/bitcoin_$lan.ts ]; then
ewarn "Language '$lan' no longer supported. Ebuild needs update."
fi
done
for ts in $(ls src/qt/locale/*.ts)
do
x="${ts/*bitcoin_/}"
x="${x/.ts/}"
if ! use "linguas_$x"; then
nolang="$nolang $x"
rm "$ts"
filt="$filt\\|$x"
else
yeslang="$yeslang $x"
fi
done
filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
sed "/${filt}/d" -i 'src/qt/bitcoin_locale.qrc'
sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/Makefile.qt.include'
einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
bitcoincore_autoreconf
}
src_configure() {
# NOTE: --enable-zmq actually disables it
bitcoincore_conf \
$(use_with dbus qtdbus) \
$(use_with qrcode qrencode) \
--with-gui
}
src_install() {
bitcoincore_src_install
insinto /usr/share/pixmaps
newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
make_desktop_entry "${PN} %u" "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Qt;Network;P2P;Office;Finance;" "MimeType=x-scheme-handler/bitcoin;\nTerminal=false"
dodoc doc/assets-attribution.md doc/tor.md
doman contrib/debian/manpages/bitcoin-qt.1
if use kde; then
insinto /usr/share/kde4/services
doins contrib/debian/bitcoin-qt.protocol
fi
}
update_caches() {
gnome2_icon_cache_update
fdo-mime_desktop_database_update
buildsycoca
}
pkg_postinst() {
update_caches
}
pkg_postrm() {
update_caches
}
|