Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/electrum/files/, net-misc/electrum/
Date: Wed, 27 Apr 2022 19:54:18
Message-Id: 1651089076.b7075feccceb71b8c8a986fcfaa66610bbdb9e25.mgorny@gentoo
1 commit: b7075feccceb71b8c8a986fcfaa66610bbdb9e25
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 27 19:51:16 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 27 19:51:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7075fec
7
8 net-misc/electrum: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-misc/electrum/Manifest | 2 -
13 net-misc/electrum/electrum-4.1.5.ebuild | 99 -----------------------------
14 net-misc/electrum/electrum-4.2.0.ebuild | 93 ---------------------------
15 net-misc/electrum/files/3.3.2-desktop.patch | 21 ------
16 4 files changed, 215 deletions(-)
17
18 diff --git a/net-misc/electrum/Manifest b/net-misc/electrum/Manifest
19 index 0de148fa01b2..305abd47b912 100644
20 --- a/net-misc/electrum/Manifest
21 +++ b/net-misc/electrum/Manifest
22 @@ -1,3 +1 @@
23 -DIST electrum-4.1.5.gh.tar.gz 4998188 BLAKE2B c33f1a8fa2af68370319a4f4fefe4d1814a20870114f4929d53bf90eca6bbb555cf9e52681f329d18dec32642ee21ee0e32558ec817936291296ce8e196c8fb1 SHA512 9430dfde6d6e78bb71db416cd35f474b44e234d69421b370dc7e4b09584ad86e095051dcf1366c142d5e6c3029aca617b4fb383f50904fc43d2f7f99053b1c92
24 -DIST electrum-4.2.0.gh.tar.gz 5065087 BLAKE2B 800667f2661ef45fae7e7f2d73229810eb490e90a9bea7ff84c04c3cf859f07ac71972658a52f802817a42de7eeb0084c6b0e1aba74733918f250228996f0641 SHA512 72c8afcd2f3fc3de2b8b6516dc82355718c7dc9a88b06ba91d8e3a3d1e2bf329c02cfc8ea9dc22aff88fbde622dd443606f14e11e0bf8050da5765cd9be75a83
25 DIST electrum-4.2.1.gh.tar.gz 5066728 BLAKE2B 66b1ef4ec21f74f2f5c25de97a31c2ec23f907526df2ac661fdcb563e1e857ca88f4f534f2373e809ba978c66b78af72260af27944ac7aa8a92e86531827fef6 SHA512 b32ee5f8779bdb9bcda6a163f3f0a4cd95e91efb37418734c9f08930221ad15e54868fca0d5d0fb1dd3b1fac91b8cdea6c6ec822d98ad6b3d6ee01c841972e88
26
27 diff --git a/net-misc/electrum/electrum-4.1.5.ebuild b/net-misc/electrum/electrum-4.1.5.ebuild
28 deleted file mode 100644
29 index 1efda47c7185..000000000000
30 --- a/net-misc/electrum/electrum-4.1.5.ebuild
31 +++ /dev/null
32 @@ -1,99 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI="7"
37 -
38 -PYTHON_COMPAT=( python3_{8..9} )
39 -PYTHON_REQ_USE="ncurses?"
40 -
41 -inherit desktop distutils-r1 xdg-utils
42 -
43 -DESCRIPTION="User friendly Bitcoin client"
44 -HOMEPAGE="https://electrum.org/"
45 -SRC_URI="
46 - https://github.com/spesmilo/electrum/archive/${PV}.tar.gz
47 - -> ${P}.gh.tar.gz"
48 -
49 -LICENSE="MIT"
50 -SLOT="0"
51 -KEYWORDS="amd64 x86"
52 -IUSE="cli ncurses qrcode +qt5"
53 -REQUIRED_USE="|| ( cli ncurses qt5 )"
54 -
55 -RDEPEND="${PYTHON_DEPS}
56 - dev-libs/libsecp256k1
57 - >=dev-python/aiohttp-socks-0.3[${PYTHON_USEDEP}]
58 - =dev-python/aiorpcX-0.19*[${PYTHON_USEDEP}]
59 - >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
60 - dev-python/bitstring[${PYTHON_USEDEP}]
61 - dev-python/cryptography[${PYTHON_USEDEP}]
62 - >=dev-python/dnspython-2[${PYTHON_USEDEP}]
63 - dev-python/pbkdf2[${PYTHON_USEDEP}]
64 - dev-python/PySocks[${PYTHON_USEDEP}]
65 - dev-python/qrcode[${PYTHON_USEDEP}]
66 - dev-python/requests[${PYTHON_USEDEP}]
67 - dev-python/setuptools[${PYTHON_USEDEP}]
68 - dev-python/six[${PYTHON_USEDEP}]
69 - >=dev-python/protobuf-python-3.12[${PYTHON_USEDEP}]
70 - qrcode? ( media-gfx/zbar[v4l] )
71 - qt5? (
72 - dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
73 - )
74 - ncurses? ( $(python_gen_impl_dep 'ncurses') )
75 -"
76 -BDEPEND="
77 - test? (
78 - dev-python/pyaes[${PYTHON_USEDEP}]
79 - dev-python/pycryptodome[${PYTHON_USEDEP}]
80 - )
81 -"
82 -
83 -distutils_enable_tests pytest
84 -
85 -src_prepare() {
86 - eapply "${FILESDIR}/3.1.2-no-user-root.patch"
87 - eapply "${FILESDIR}/3.3.2-desktop.patch"
88 -
89 - # unbind aiorpcX dep
90 - sed -e '/aiorpcx/s:,<0.19::' \
91 - -i contrib/requirements/requirements.txt || die
92 - sed -e '/aiorpcx/s:raise.*:pass:' \
93 - -i run_electrum || die
94 -
95 - # Prevent icon from being installed in the wrong location
96 - sed -i '/icons_dirname/d' setup.py || die
97 -
98 - # use backwards-compatible cryptodome API
99 - sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
100 -
101 - local bestgui
102 - if use qt5; then
103 - bestgui=qt
104 - elif use ncurses; then
105 - bestgui=text
106 - else
107 - bestgui=stdio
108 - fi
109 - sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN}/${PN} || die
110 -
111 - eapply_user
112 -
113 - xdg_environment_reset
114 - distutils-r1_src_prepare
115 -}
116 -
117 -src_install() {
118 - doicon -s 128 electrum/gui/icons/${PN}.png
119 - dodoc RELEASE-NOTES
120 - distutils-r1_src_install
121 -}
122 -
123 -pkg_postinst() {
124 - xdg_icon_cache_update
125 - xdg_desktop_database_update
126 -}
127 -
128 -pkg_postrm() {
129 - xdg_icon_cache_update
130 - xdg_desktop_database_update
131 -}
132
133 diff --git a/net-misc/electrum/electrum-4.2.0.ebuild b/net-misc/electrum/electrum-4.2.0.ebuild
134 deleted file mode 100644
135 index 02786de94c6c..000000000000
136 --- a/net-misc/electrum/electrum-4.2.0.ebuild
137 +++ /dev/null
138 @@ -1,93 +0,0 @@
139 -# Copyright 1999-2022 Gentoo Authors
140 -# Distributed under the terms of the GNU General Public License v2
141 -
142 -EAPI=8
143 -
144 -DISTUTILS_USE_PEP517=setuptools
145 -PYTHON_COMPAT=( python3_{8..9} )
146 -PYTHON_REQ_USE="ncurses?"
147 -
148 -inherit desktop distutils-r1 xdg-utils
149 -
150 -DESCRIPTION="User friendly Bitcoin client"
151 -HOMEPAGE="https://electrum.org/"
152 -SRC_URI="
153 - https://github.com/spesmilo/electrum/archive/${PV}.tar.gz
154 - -> ${P}.gh.tar.gz"
155 -
156 -LICENSE="MIT"
157 -SLOT="0"
158 -KEYWORDS="~amd64 ~x86"
159 -IUSE="cli ncurses qrcode +qt5"
160 -REQUIRED_USE="|| ( cli ncurses qt5 )"
161 -
162 -RDEPEND="${PYTHON_DEPS}
163 - dev-libs/libsecp256k1
164 - >=dev-python/aiohttp-socks-0.3[${PYTHON_USEDEP}]
165 - =dev-python/aiorpcX-0.22*[${PYTHON_USEDEP}]
166 - >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
167 - dev-python/bitstring[${PYTHON_USEDEP}]
168 - dev-python/cryptography[${PYTHON_USEDEP}]
169 - >=dev-python/dnspython-2[${PYTHON_USEDEP}]
170 - dev-python/pbkdf2[${PYTHON_USEDEP}]
171 - dev-python/PySocks[${PYTHON_USEDEP}]
172 - dev-python/qrcode[${PYTHON_USEDEP}]
173 - dev-python/requests[${PYTHON_USEDEP}]
174 - dev-python/setuptools[${PYTHON_USEDEP}]
175 - dev-python/six[${PYTHON_USEDEP}]
176 - >=dev-python/protobuf-python-3.12[${PYTHON_USEDEP}]
177 - qrcode? ( media-gfx/zbar[v4l] )
178 - qt5? (
179 - dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
180 - )
181 - ncurses? ( $(python_gen_impl_dep 'ncurses') )
182 -"
183 -BDEPEND="
184 - test? (
185 - dev-python/pyaes[${PYTHON_USEDEP}]
186 - dev-python/pycryptodome[${PYTHON_USEDEP}]
187 - )
188 -"
189 -
190 -distutils_enable_tests pytest
191 -
192 -src_prepare() {
193 - eapply "${FILESDIR}/3.1.2-no-user-root.patch"
194 -
195 - # Prevent icon from being installed in the wrong location
196 - sed -i '/icons_dirname/d' setup.py || die
197 -
198 - # use backwards-compatible cryptodome API
199 - sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
200 -
201 - local bestgui
202 - if use qt5; then
203 - bestgui=qt
204 - elif use ncurses; then
205 - bestgui=text
206 - else
207 - bestgui=stdio
208 - fi
209 - sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN}/${PN} || die
210 -
211 - eapply_user
212 -
213 - xdg_environment_reset
214 - distutils-r1_src_prepare
215 -}
216 -
217 -src_install() {
218 - doicon -s 128 electrum/gui/icons/${PN}.png
219 - dodoc RELEASE-NOTES
220 - distutils-r1_src_install
221 -}
222 -
223 -pkg_postinst() {
224 - xdg_icon_cache_update
225 - xdg_desktop_database_update
226 -}
227 -
228 -pkg_postrm() {
229 - xdg_icon_cache_update
230 - xdg_desktop_database_update
231 -}
232
233 diff --git a/net-misc/electrum/files/3.3.2-desktop.patch b/net-misc/electrum/files/3.3.2-desktop.patch
234 deleted file mode 100644
235 index e932623be246..000000000000
236 --- a/net-misc/electrum/files/3.3.2-desktop.patch
237 +++ /dev/null
238 @@ -1,21 +0,0 @@
239 -diff -Naur Electrum-3.3.2.orig/electrum.desktop Electrum-3.3.2/electrum.desktop
240 ---- Electrum-3.3.2.orig/electrum.desktop 2000-11-11 06:11:11.000000000 -0500
241 -+++ Electrum-3.3.2/electrum.desktop 2019-01-08 20:47:55.628978706 -0500
242 -@@ -3,7 +3,7 @@
243 -
244 - [Desktop Entry]
245 - Comment=Lightweight Bitcoin Client
246 --Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum %u"
247 -+Exec=electrum %u
248 - GenericName[en_US]=Bitcoin Wallet
249 - GenericName=Bitcoin Wallet
250 - Icon=electrum
251 -@@ -14,8 +14,3 @@
252 - Terminal=false
253 - Type=Application
254 - MimeType=x-scheme-handler/bitcoin;
255 --Actions=Testnet;
256 --
257 --[Desktop Action Testnet]
258 --Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum --testnet %u"
259 --Name=Testnet mode