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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jan 10 17:19:55 2015 UTC (4 years, 9 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump for bug #536228

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

1 # Copyright 2010-2014 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.3 2014/11/13 18:31:37 blueness Exp $
4
5 EAPI=4
6
7 DB_VER="4.8"
8
9 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"
10 inherit autotools db-use eutils fdo-mime gnome2-utils kde4-functions qt4-r2 user versionator
11
12 MyPV="${PV/_/}"
13 MyPN="bitcoin"
14 MyP="${MyPN}-${MyPV}"
15 LJR_PV="${PV}.ljr20141002"
16 LJR_PATCH="bitcoin-${LJR_PV}.patch"
17
18 DESCRIPTION="An end-user Qt4 GUI for the Bitcoin crypto-currency"
19 HOMEPAGE="http://bitcoin.org/"
20 SRC_URI="https://github.com/${MyPN}/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyPN}-v${PV}.tgz
21 ljr? ( http://luke.dashjr.org/programs/bitcoin/files/bitcoind/luke-jr/0.9.x/${LJR_PV}/${LJR_PATCH}.xz )
22 "
23
24 LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain || ( CC-BY-SA-3.0 LGPL-2.1 )"
25 SLOT="0"
26 KEYWORDS="~amd64 ~arm ~x86"
27 IUSE="$IUSE 1stclassmsg dbus kde ljr ljr-antispam +qrcode test upnp"
28
29 REQUIRED_USE="
30 1stclassmsg? ( ljr )
31 ljr-antispam? ( ljr )
32 "
33 RDEPEND="
34 >=dev-libs/boost-1.52.0[threads(+)]
35 dev-libs/openssl:0[-bindist]
36 dev-libs/protobuf
37 qrcode? (
38 media-gfx/qrencode
39 )
40 upnp? (
41 net-libs/miniupnpc
42 )
43 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
44 virtual/bitcoin-leveldb
45 dev-qt/qtgui:4
46 dbus? (
47 dev-qt/qtdbus:4
48 )
49 "
50 DEPEND="${RDEPEND}
51 >=app-shells/bash-4.1
52 "
53
54 S="${WORKDIR}/${MyP}"
55
56 src_prepare() {
57 if use ljr; then
58 epatch "${WORKDIR}/${LJR_PATCH}"
59 use ljr-antispam || epatch "${FILESDIR}/0.9.x-ljr_noblacklist.patch"
60 else
61 epatch "${FILESDIR}/0.9.0-sys_leveldb.patch"
62 fi
63 rm -r src/leveldb
64
65 local filt= yeslang= nolang=
66
67 for lan in $LANGS; do
68 if [ ! -e src/qt/locale/bitcoin_$lan.ts ]; then
69 ewarn "Language '$lan' no longer supported. Ebuild needs update."
70 fi
71 done
72
73 for ts in $(ls src/qt/locale/*.ts)
74 do
75 x="${ts/*bitcoin_/}"
76 x="${x/.ts/}"
77 if ! use "linguas_$x"; then
78 nolang="$nolang $x"
79 rm "$ts"
80 filt="$filt\\|$x"
81 else
82 yeslang="$yeslang $x"
83 fi
84 done
85 filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
86 sed "/${filt}/d" -i 'src/qt/bitcoin.qrc'
87 sed "s/locale\/${filt}/bitcoin.qrc/" -i 'src/qt/Makefile.am'
88 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
89
90 eautoreconf
91 }
92
93 src_configure() {
94 econf \
95 --disable-ccache \
96 $(use_with dbus qtdbus) \
97 $(use_with upnp miniupnpc) $(use_enable upnp upnp-default) \
98 $(use_with qrcode qrencode) \
99 $(use_enable test tests) \
100 $(usex ljr $(use_enable 1stclassmsg first-class-messaging)) \
101 --with-system-leveldb \
102 --without-cli --without-daemon \
103 --with-gui
104 }
105
106 src_test() {
107 emake check
108 }
109
110 src_install() {
111 emake DESTDIR="${D}" install
112
113 insinto /usr/share/pixmaps
114 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
115 make_desktop_entry "${PN} %u" "Bitcoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Qt;Network;P2P;Office;Finance;" "MimeType=x-scheme-handler/bitcoin;\nTerminal=false"
116
117 dodoc doc/README.md doc/release-notes.md
118 dodoc doc/assets-attribution.md doc/tor.md
119 doman contrib/debian/manpages/bitcoin-qt.1
120
121 if use kde; then
122 insinto /usr/share/kde4/services
123 doins contrib/debian/bitcoin-qt.protocol
124 fi
125 }
126
127 update_caches() {
128 gnome2_icon_cache_update
129 fdo-mime_desktop_database_update
130 buildsycoca
131 }
132
133 pkg_postinst() {
134 update_caches
135 }
136
137 pkg_postrm() {
138 update_caches
139 }

  ViewVC Help
Powered by ViewVC 1.1.20