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

Contents of /net-p2p/bitcoin-qt/bitcoin-qt-0.10.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 17 22:20:36 2015 UTC (3 years, 5 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Version bump.

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

1 # Copyright 2010-2015 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.9.3.ebuild,v 1.2 2014/10/10 11:30:23 blueness Exp $
4
5 EAPI=5
6
7 BITCOINCORE_COMMITHASH="16f45600c8c372a738ffef544292864256382601"
8 BITCOINCORE_SRC_SUFFIX="-r1"
9 BITCOINCORE_LJR_PV="0.10.1"
10 BITCOINCORE_LJR_DATE="20150428"
11 BITCOINCORE_IUSE="1stclassmsg dbus kde ljr +qrcode qt4 qt5 test upnp +wallet xt zeromq"
12 BITCOINCORE_POLICY_PATCHES="cpfp dcmp rbf spamfilter"
13 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"
14 BITCOINCORE_NEED_LEVELDB=1
15 BITCOINCORE_NEED_LIBSECP256K1=1
16 inherit bitcoincore eutils fdo-mime gnome2-utils kde4-functions qt4-r2
17
18 DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency"
19 LICENSE="MIT GPL-3 LGPL-2.1 || ( CC-BY-SA-3.0 LGPL-2.1 )"
20 SLOT="0"
21 KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
22
23 RDEPEND="
24 dev-libs/protobuf
25 qrcode? (
26 media-gfx/qrencode
27 )
28 qt4? ( dev-qt/qtgui:4 )
29 qt5? ( dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtwidgets:5 dev-qt/linguist-tools:5 )
30 dbus? (
31 qt4? ( dev-qt/qtdbus:4 )
32 qt5? ( dev-qt/qtdbus:5 )
33 )
34 "
35 DEPEND="${RDEPEND}"
36 REQUIRED_USE="${REQUIRED_USE} ^^ ( qt4 qt5 )"
37
38 src_prepare() {
39 bitcoincore_prepare
40
41 local filt= yeslang= nolang=
42
43 for lan in $LANGS; do
44 if [ ! -e src/qt/locale/bitcoin_$lan.ts ]; then
45 die "Language '$lan' no longer supported. Ebuild needs update."
46 fi
47 done
48
49 for ts in $(ls src/qt/locale/*.ts)
50 do
51 x="${ts/*bitcoin_/}"
52 x="${x/.ts/}"
53 if ! use "linguas_$x"; then
54 nolang="$nolang $x"
55 rm "$ts"
56 filt="$filt\\|$x"
57 else
58 yeslang="$yeslang $x"
59 fi
60 done
61 filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
62 sed "/${filt}/d" -i 'src/qt/bitcoin_locale.qrc'
63 sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/Makefile.qt.include'
64 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
65
66 bitcoincore_autoreconf
67 }
68
69 src_configure() {
70 # NOTE: --enable-zmq actually disables it
71 bitcoincore_conf \
72 $(use_with dbus qtdbus) \
73 $(use_with qrcode qrencode) \
74 $(usex 1stclassmsg --enable-first-class-messaging '') \
75 --with-gui=$(usex qt5 qt5 qt4)
76 }
77
78 src_install() {
79 bitcoincore_src_install
80
81 insinto /usr/share/pixmaps
82 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
83 make_desktop_entry "${PN} %u" "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Qt;Network;P2P;Office;Finance;" "MimeType=x-scheme-handler/bitcoin;\nTerminal=false"
84
85 dodoc doc/assets-attribution.md doc/tor.md
86 doman contrib/debian/manpages/bitcoin-qt.1
87
88 if use kde; then
89 insinto /usr/share/kde4/services
90 doins contrib/debian/bitcoin-qt.protocol
91 fi
92 }
93
94 update_caches() {
95 gnome2_icon_cache_update
96 fdo-mime_desktop_database_update
97 buildsycoca
98 }
99
100 pkg_postinst() {
101 update_caches
102 }
103
104 pkg_postrm() {
105 update_caches
106 }

  ViewVC Help
Powered by ViewVC 1.1.20