Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/electrum: electrum-2.3.3.ebuild ChangeLog
Date: Sat, 04 Jul 2015 12:52:13
Message-Id: 20150704125203.F1335751@oystercatcher.gentoo.org
1 blueness 15/07/04 12:52:03
2
3 Modified: ChangeLog
4 Added: electrum-2.3.3.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.36 net-misc/electrum/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/electrum/ChangeLog?rev=1.36&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/electrum/ChangeLog?rev=1.36&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/electrum/ChangeLog?r1=1.35&r2=1.36
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/electrum/ChangeLog,v
20 retrieving revision 1.35
21 retrieving revision 1.36
22 diff -u -r1.35 -r1.36
23 --- ChangeLog 5 May 2015 02:18:28 -0000 1.35
24 +++ ChangeLog 4 Jul 2015 12:52:03 -0000 1.36
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-misc/electrum
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/ChangeLog,v 1.35 2015/05/05 02:18:28 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/ChangeLog,v 1.36 2015/07/04 12:52:03 blueness Exp $
30 +
31 +*electrum-2.3.3 (04 Jul 2015)
32 +
33 + 04 Jul 2015; Anthony G. Basile <blueness@g.o> +electrum-2.3.3.ebuild:
34 + Version bump.
35
36 05 May 2015; Patrick Lauer <patrick@g.o> metadata.xml:
37 Remove unused useflag description from metadata.xml
38
39
40
41 1.1 net-misc/electrum/electrum-2.3.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/electrum/electrum-2.3.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/electrum/electrum-2.3.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: electrum-2.3.3.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-misc/electrum/electrum-2.3.3.ebuild,v 1.1 2015/07/04 12:52:03 blueness Exp $
51
52 EAPI="5"
53
54 PYTHON_COMPAT=( python2_7 )
55 PYTHON_REQ_USE="ncurses?"
56
57 inherit eutils distutils-r1 gnome2-utils
58
59 MY_P="Electrum-${PV}"
60 DESCRIPTION="User friendly Bitcoin client"
61 HOMEPAGE="https://electrum.org/"
62 SRC_URI="https://download.electrum.org/${MY_P}.tar.gz"
63
64 LICENSE="GPL-3"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 LINGUAS="ar_SA cs_CZ da_DK de_DE el_GR eo_UY es_ES fr_FR hu_HU hy_AM id_ID it_IT ja_JP ky_KG lv_LV nl_NL pl_PL pt_BR pt_PT ro_RO ru_RU sk_SK sl_SI ta_IN th_TH vi_VN zh_CN"
68
69 IUSE="cli cosign +fiat greenaddress_it gtk3 ncurses qrcode +qt4 sync trustedcoin_com vkb"
70
71 for lingua in ${LINGUAS}; do
72 IUSE+=" linguas_${lingua}"
73 done
74
75 REQUIRED_USE="
76 || ( cli gtk3 ncurses qt4 )
77 cosign? ( qt4 )
78 fiat? ( qt4 )
79 greenaddress_it? ( qt4 )
80 qrcode? ( qt4 )
81 sync? ( qt4 )
82 trustedcoin_com? ( qt4 )
83 vkb? ( qt4 )
84 "
85
86 RDEPEND="
87 dev-python/setuptools[${PYTHON_USEDEP}]
88 >=dev-python/ecdsa-0.9[${PYTHON_USEDEP}]
89 dev-python/slowaes[${PYTHON_USEDEP}]
90 dev-python/pbkdf2[${PYTHON_USEDEP}]
91 dev-python/requests[${PYTHON_USEDEP}]
92 dev-python/pyasn1[${PYTHON_USEDEP}]
93 dev-python/pyasn1-modules[${PYTHON_USEDEP}]
94 dev-python/tlslite[${PYTHON_USEDEP}]
95 dev-python/qrcode[${PYTHON_USEDEP}]
96 dev-python/socksipy[${PYTHON_USEDEP}]
97 dev-libs/protobuf[python,${PYTHON_USEDEP}]
98 dev-python/six[${PYTHON_USEDEP}]
99 gtk3? (
100 dev-python/pygobject:3[${PYTHON_USEDEP}]
101 x11-libs/gtk+:3[introspection]
102 )
103 qrcode? ( media-gfx/zbar[python,v4l,${PYTHON_USEDEP}] )
104 qt4? (
105 dev-python/PyQt4[${PYTHON_USEDEP}]
106 )
107 ncurses? ( dev-lang/python )
108 "
109
110 S="${WORKDIR}/${MY_P}"
111
112 DOCS="RELEASE-NOTES"
113
114 src_prepare() {
115 # Don't advise using PIP
116 sed -i "s/On Linux, try 'sudo pip install zbar'/Re-emerge Electrum with the qrcode USE flag/" lib/qrscanner.py || die
117
118 # Prevent icon from being installed in the wrong location
119 sed -i '/icons/d' setup.py || die
120
121 validate_desktop_entries
122
123 # Remove unrequested localization files:
124 for lang in ${LINGUAS}; do
125 use "linguas_${lang}" && continue
126 rm -r "lib/locale/${lang}" || die
127 done
128
129 local wordlist=
130 # french is unfinished
131 for wordlist in \
132 $(usex linguas_es_ES '' spanish) \
133 $(usex linguas_pt_BR '' $(usex linguas_pt_PT '' portuguese)) \
134 french \
135 $(usex linguas_ja_JP '' japanese) \
136 ; do
137 rm "lib/wordlist/${wordlist}.txt" || die
138 sed -i "/${wordlist}\\.txt/d" lib/mnemonic.py || die
139 done
140
141 # Remove unrequested GUI implementations:
142 local gui
143 for gui in \
144 $(usex cli '' stdio) \
145 $(usex gtk3 '' gtk ) \
146 $(usex qt4 '' qt ) \
147 $(usex ncurses '' text ) \
148 ; do
149 rm gui/"${gui}"* -r || die
150 done
151
152 if ! use qt4; then
153 sed -i "s/'electrum_gui\\.qt',//;/\"qt\\/themes/d" setup.py || die
154 local bestgui=$(usex gtk3 gtk $(usex ncurses text stdio))
155 sed -i "s/\(config.get('gui', \?\)'classic'/\1'${bestgui}'/" electrum || die
156 fi
157
158 local plugin
159 # btchipwallet requires python btchip module (and dev-python/pyusb)
160 # trezor requires python trezorlib module
161 for plugin in \
162 $(usex cosign '' cosigner_pool ) \
163 $(usex fiat '' exchange_rate ) \
164 $(usex greenaddress_it '' greenaddress_instant) \
165 $(usex sync '' labels ) \
166 trezor \
167 $(usex trustedcoin_com '' trustedcoin ) \
168 $(usex vkb '' virtualkeyboard ) \
169 ; do
170 rm plugins/"${plugin}"* || die
171 done
172
173 distutils-r1_src_prepare
174 }
175
176 src_install() {
177 doicon -s 128 icons/${PN}.png
178 distutils-r1_src_install
179 }
180
181 pkg_preinst() {
182 gnome2_icon_savelist
183 }
184
185 pkg_postinst() {
186 gnome2_icon_cache_update
187 }
188
189 pkg_postrm() {
190 gnome2_icon_cache_update
191 }