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/, net-misc/electrum/files/
Date: Thu, 22 Sep 2022 09:48:17
Message-Id: 1663839852.2feab18f3a63137901820164ebc318f922403686.mgorny@gentoo
1 commit: 2feab18f3a63137901820164ebc318f922403686
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 09:44:12 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 09:44:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2feab18f
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.2.2.ebuild | 99 ------------------------
14 net-misc/electrum/electrum-4.3.0.ebuild | 95 -----------------------
15 net-misc/electrum/files/3.1.2-no-user-root.patch | 17 ----
16 4 files changed, 213 deletions(-)
17
18 diff --git a/net-misc/electrum/Manifest b/net-misc/electrum/Manifest
19 index b6a7d360af49..56775674b3f3 100644
20 --- a/net-misc/electrum/Manifest
21 +++ b/net-misc/electrum/Manifest
22 @@ -1,3 +1 @@
23 -DIST electrum-4.2.2.gh.tar.gz 5071636 BLAKE2B a13ae03e513736e5f24ded46a9b6ce13312a7d9243082f1d5b1948e7519f40f1fab238ec73550f72607ff2463a54a31f47c6ab8e511efddfcec362d5e427c6c1 SHA512 ae39ca0b548f3e4c7454096a7a05f9400a738e3b1c217ae9d41bf6156f7d642d3f1911f97829bfadbf6fdb6873538f38525363d256b363dac41d378c6b41002d
24 -DIST electrum-4.3.0.gh.tar.gz 5436120 BLAKE2B 180fcbd7749888707e9e57a9117b1df98f248584d68a9edcea996a73a0fdbc78f0955f778af50afae1a7a02b0d12b4aefe58b8a63f59a2b220ecddb20126966f SHA512 305ff483de498c93b118422fdff0f67ba9522275d45a5f8b14040697647b58b8113e312fd6b14bf15d3cbba3907d978657dd99d8c02e199d8c936afa2b9a6407
25 DIST electrum-4.3.1.gh.tar.gz 5444509 BLAKE2B 68d63b730396c229bcb09262740a7d3ef322fce7fd16265d352e3eb2039e123d043307036d906b1688cc43d33620cf1b8f7aaa03ac9f5d68e5f9a2b84e6d44a7 SHA512 038b7c643ed11fe14e368be91bc09e5f043d4ae86cdf0ad0d80861ffa47aececcc4b0bec5a8596a8d78590b859bf302ed99d2d57bab1a2a053677fc7fa190e06
26
27 diff --git a/net-misc/electrum/electrum-4.2.2.ebuild b/net-misc/electrum/electrum-4.2.2.ebuild
28 deleted file mode 100644
29 index 3741fcfc777b..000000000000
30 --- a/net-misc/electrum/electrum-4.2.2.ebuild
31 +++ /dev/null
32 @@ -1,99 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=8
37 -
38 -DISTUTILS_USE_PEP517=setuptools
39 -PYTHON_COMPAT=( python3_{8..10} )
40 -PYTHON_REQ_USE="ncurses?"
41 -
42 -inherit desktop distutils-r1 xdg-utils
43 -
44 -DESCRIPTION="User friendly Bitcoin client"
45 -HOMEPAGE="https://electrum.org/"
46 -SRC_URI="
47 - https://github.com/spesmilo/electrum/archive/${PV}.tar.gz
48 - -> ${P}.gh.tar.gz
49 -"
50 -
51 -LICENSE="MIT"
52 -SLOT="0"
53 -KEYWORDS="amd64 x86"
54 -IUSE="cli ncurses qrcode +qt5"
55 -REQUIRED_USE="|| ( cli ncurses qt5 )"
56 -
57 -RDEPEND="
58 - ${PYTHON_DEPS}
59 - dev-libs/libsecp256k1
60 - >=dev-python/aiohttp-socks-0.3[${PYTHON_USEDEP}]
61 - =dev-python/aiorpcX-0.22*[${PYTHON_USEDEP}]
62 - >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
63 - dev-python/bitstring[${PYTHON_USEDEP}]
64 - dev-python/cryptography[${PYTHON_USEDEP}]
65 - >=dev-python/dnspython-2[${PYTHON_USEDEP}]
66 - dev-python/pbkdf2[${PYTHON_USEDEP}]
67 - dev-python/PySocks[${PYTHON_USEDEP}]
68 - dev-python/qrcode[${PYTHON_USEDEP}]
69 - dev-python/requests[${PYTHON_USEDEP}]
70 - dev-python/setuptools[${PYTHON_USEDEP}]
71 - dev-python/six[${PYTHON_USEDEP}]
72 - >=dev-python/protobuf-python-3.12[${PYTHON_USEDEP}]
73 - qrcode? ( media-gfx/zbar[v4l] )
74 - qt5? (
75 - dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
76 - )
77 - ncurses? ( $(python_gen_impl_dep 'ncurses') )
78 -"
79 -BDEPEND="
80 - test? (
81 - dev-python/pyaes[${PYTHON_USEDEP}]
82 - dev-python/pycryptodome[${PYTHON_USEDEP}]
83 - )
84 -"
85 -
86 -distutils_enable_tests pytest
87 -
88 -src_prepare() {
89 - eapply "${FILESDIR}/3.1.2-no-user-root.patch"
90 -
91 - # Prevent data files from being installed in the wrong location
92 - sed -i -e '/icons_dirname/d' -e '/applications/d' setup.py || die
93 -
94 - # use backwards-compatible cryptodome API
95 - sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
96 -
97 - # make qdarkstyle dep optional
98 - sed -i -e '/qdarkstyle/d' contrib/requirements/requirements.txt || die
99 -
100 - local bestgui
101 - if use qt5; then
102 - bestgui=qt
103 - elif use ncurses; then
104 - bestgui=text
105 - else
106 - bestgui=stdio
107 - fi
108 - sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN}/${PN} || die
109 -
110 - eapply_user
111 -
112 - xdg_environment_reset
113 - distutils-r1_src_prepare
114 -}
115 -
116 -src_install() {
117 - doicon -s 128 electrum/gui/icons/${PN}.png
118 - domenu electrum.desktop
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.3.0.ebuild b/net-misc/electrum/electrum-4.3.0.ebuild
134 deleted file mode 100644
135 index 125465b08385..000000000000
136 --- a/net-misc/electrum/electrum-4.3.0.ebuild
137 +++ /dev/null
138 @@ -1,95 +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..10} )
146 -PYTHON_REQ_USE="ncurses?"
147 -
148 -inherit desktop distutils-r1 xdg-utils
149 -
150 -DESCRIPTION="User friendly Bitcoin client"
151 -HOMEPAGE="
152 - https://electrum.org/
153 - https://github.com/spesmilo/electrum/
154 -"
155 -SRC_URI="
156 - https://github.com/spesmilo/electrum/archive/${PV}.tar.gz
157 - -> ${P}.gh.tar.gz
158 -"
159 -
160 -LICENSE="MIT"
161 -SLOT="0"
162 -KEYWORDS="~amd64 ~x86"
163 -IUSE="cli ncurses qrcode +qt5"
164 -REQUIRED_USE="|| ( cli ncurses qt5 )"
165 -
166 -RDEPEND="
167 - ${PYTHON_DEPS}
168 - dev-libs/libsecp256k1
169 - >=dev-python/aiohttp-socks-0.3[${PYTHON_USEDEP}]
170 - =dev-python/aiorpcX-0.22*[${PYTHON_USEDEP}]
171 - >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
172 - dev-python/bitstring[${PYTHON_USEDEP}]
173 - dev-python/cryptography[${PYTHON_USEDEP}]
174 - >=dev-python/dnspython-2[${PYTHON_USEDEP}]
175 - dev-python/pbkdf2[${PYTHON_USEDEP}]
176 - dev-python/PySocks[${PYTHON_USEDEP}]
177 - dev-python/qrcode[${PYTHON_USEDEP}]
178 - dev-python/requests[${PYTHON_USEDEP}]
179 - dev-python/setuptools[${PYTHON_USEDEP}]
180 - dev-python/six[${PYTHON_USEDEP}]
181 - >=dev-python/protobuf-python-3.12[${PYTHON_USEDEP}]
182 - qrcode? ( media-gfx/zbar[v4l] )
183 - qt5? (
184 - dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
185 - )
186 - ncurses? ( $(python_gen_impl_dep 'ncurses') )
187 -"
188 -BDEPEND="
189 - test? (
190 - dev-python/pyaes[${PYTHON_USEDEP}]
191 - dev-python/pycryptodome[${PYTHON_USEDEP}]
192 - )
193 -"
194 -
195 -distutils_enable_tests pytest
196 -
197 -src_prepare() {
198 - # use backwards-compatible cryptodome API
199 - sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
200 -
201 - # make qdarkstyle dep optional
202 - sed -i -e '/qdarkstyle/d' contrib/requirements/requirements.txt || die
203 -
204 - local bestgui
205 - if use qt5; then
206 - bestgui=qt
207 - elif use ncurses; then
208 - bestgui=text
209 - else
210 - bestgui=stdio
211 - fi
212 - sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN}/${PN} || die
213 -
214 - eapply_user
215 -
216 - xdg_environment_reset
217 - distutils-r1_src_prepare
218 -}
219 -
220 -src_install() {
221 - dodoc RELEASE-NOTES
222 - distutils-r1_src_install
223 -}
224 -
225 -pkg_postinst() {
226 - xdg_icon_cache_update
227 - xdg_desktop_database_update
228 -}
229 -
230 -pkg_postrm() {
231 - xdg_icon_cache_update
232 - xdg_desktop_database_update
233 -}
234
235 diff --git a/net-misc/electrum/files/3.1.2-no-user-root.patch b/net-misc/electrum/files/3.1.2-no-user-root.patch
236 deleted file mode 100644
237 index 0d4781717714..000000000000
238 --- a/net-misc/electrum/files/3.1.2-no-user-root.patch
239 +++ /dev/null
240 @@ -1,17 +0,0 @@
241 -diff -Naur Electrum-3.1.2.orig/setup.py Electrum-3.1.2/setup.py
242 ---- Electrum-3.1.2.orig/setup.py 2018-03-28 04:51:11.000000000 -0400
243 -+++ Electrum-3.1.2/setup.py 2018-03-31 15:05:45.540757981 -0400
244 -@@ -28,13 +28,6 @@
245 - opts, _ = parser.parse_known_args(sys.argv[1:])
246 - usr_share = os.path.join(sys.prefix, "share")
247 - icons_dirname = 'pixmaps'
248 -- if not os.access(opts.root_path + usr_share, os.W_OK) and \
249 -- not os.access(opts.root_path, os.W_OK):
250 -- icons_dirname = 'icons'
251 -- if 'XDG_DATA_HOME' in os.environ.keys():
252 -- usr_share = os.environ['XDG_DATA_HOME']
253 -- else:
254 -- usr_share = os.path.expanduser('~/.local/share')
255 - data_files += [
256 - (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
257 - (os.path.join(usr_share, icons_dirname), ['icons/electrum.png'])