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