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/
Date: Thu, 29 Apr 2021 11:59:49
Message-Id: 1619697571.44260a339bd6eafd90b6ba64707aa39e2fe8e887.mgorny@gentoo
1 commit: 44260a339bd6eafd90b6ba64707aa39e2fe8e887
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 29 11:59:31 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 29 11:59:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44260a33
7
8 net-misc/electrum: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-misc/electrum/electrum-4.0.9-r1.ebuild | 93 ------------------------------
13 1 file changed, 93 deletions(-)
14
15 diff --git a/net-misc/electrum/electrum-4.0.9-r1.ebuild b/net-misc/electrum/electrum-4.0.9-r1.ebuild
16 deleted file mode 100644
17 index 7e148205d9f..00000000000
18 --- a/net-misc/electrum/electrum-4.0.9-r1.ebuild
19 +++ /dev/null
20 @@ -1,93 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI="7"
25 -
26 -PYTHON_COMPAT=( python3_{7..8} )
27 -PYTHON_REQ_USE="ncurses?"
28 -
29 -inherit desktop distutils-r1 xdg-utils
30 -
31 -DESCRIPTION="User friendly Bitcoin client"
32 -HOMEPAGE="https://electrum.org/"
33 -SRC_URI="
34 - https://github.com/spesmilo/electrum/archive/${PV}.tar.gz
35 - -> ${P}.gh.tar.gz"
36 -
37 -LICENSE="MIT"
38 -SLOT="0"
39 -KEYWORDS="amd64 x86"
40 -IUSE="cli ncurses qrcode +qt5"
41 -REQUIRED_USE="|| ( cli ncurses qt5 )"
42 -
43 -RDEPEND="${PYTHON_DEPS}
44 - dev-libs/libsecp256k1
45 - >=dev-python/aiohttp-socks-0.3[${PYTHON_USEDEP}]
46 - =dev-python/aiorpcX-0.18*[${PYTHON_USEDEP}]
47 - >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
48 - dev-python/bitstring[${PYTHON_USEDEP}]
49 - dev-python/cryptography[${PYTHON_USEDEP}]
50 - >=dev-python/dnspython-2[${PYTHON_USEDEP}]
51 - dev-python/pbkdf2[${PYTHON_USEDEP}]
52 - dev-python/PySocks[${PYTHON_USEDEP}]
53 - dev-python/qrcode[${PYTHON_USEDEP}]
54 - dev-python/requests[${PYTHON_USEDEP}]
55 - dev-python/setuptools[${PYTHON_USEDEP}]
56 - dev-python/six[${PYTHON_USEDEP}]
57 - >=dev-python/protobuf-python-3.12[${PYTHON_USEDEP}]
58 - qrcode? ( media-gfx/zbar[v4l] )
59 - qt5? (
60 - dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
61 - )
62 - ncurses? ( $(python_gen_impl_dep 'ncurses') )
63 -"
64 -BDEPEND="
65 - test? (
66 - dev-python/pyaes[${PYTHON_USEDEP}]
67 - dev-python/pycryptodome[${PYTHON_USEDEP}]
68 - )
69 -"
70 -
71 -distutils_enable_tests pytest
72 -
73 -src_prepare() {
74 - eapply "${FILESDIR}/3.1.2-no-user-root.patch"
75 - eapply "${FILESDIR}/3.3.2-desktop.patch"
76 -
77 - # Prevent icon from being installed in the wrong location
78 - sed -i '/icons_dirname/d' setup.py || die
79 -
80 - # use backwards-compatible cryptodome API
81 - sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
82 -
83 - local bestgui
84 - if use qt5; then
85 - bestgui=qt
86 - elif use ncurses; then
87 - bestgui=text
88 - else
89 - bestgui=stdio
90 - fi
91 - sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN}/${PN} || die
92 -
93 - eapply_user
94 -
95 - xdg_environment_reset
96 - distutils-r1_src_prepare
97 -}
98 -
99 -src_install() {
100 - doicon -s 128 electrum/gui/icons/${PN}.png
101 - dodoc RELEASE-NOTES
102 - distutils-r1_src_install
103 -}
104 -
105 -pkg_postinst() {
106 - xdg_icon_cache_update
107 - xdg_desktop_database_update
108 -}
109 -
110 -pkg_postrm() {
111 - xdg_icon_cache_update
112 - xdg_desktop_database_update
113 -}