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: Sun, 07 Aug 2022 08:11:08
Message-Id: 1659859861.7ed0df11b14cdfa8ec8068c8ab102b01896991a2.mgorny@gentoo
1 commit: 7ed0df11b14cdfa8ec8068c8ab102b01896991a2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 7 08:06:53 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 7 08:11:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ed0df11
7
8 net-misc/electrum: Bump to 4.3.0
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.3.0.ebuild | 95 +++++++++++++++++++++++++++++++++
14 2 files changed, 96 insertions(+)
15
16 diff --git a/net-misc/electrum/Manifest b/net-misc/electrum/Manifest
17 index df17044d014a..b6885a6a7c22 100644
18 --- a/net-misc/electrum/Manifest
19 +++ b/net-misc/electrum/Manifest
20 @@ -1 +1,2 @@
21 DIST electrum-4.2.2.gh.tar.gz 5071636 BLAKE2B a13ae03e513736e5f24ded46a9b6ce13312a7d9243082f1d5b1948e7519f40f1fab238ec73550f72607ff2463a54a31f47c6ab8e511efddfcec362d5e427c6c1 SHA512 ae39ca0b548f3e4c7454096a7a05f9400a738e3b1c217ae9d41bf6156f7d642d3f1911f97829bfadbf6fdb6873538f38525363d256b363dac41d378c6b41002d
22 +DIST electrum-4.3.0.gh.tar.gz 5436120 BLAKE2B 180fcbd7749888707e9e57a9117b1df98f248584d68a9edcea996a73a0fdbc78f0955f778af50afae1a7a02b0d12b4aefe58b8a63f59a2b220ecddb20126966f SHA512 305ff483de498c93b118422fdff0f67ba9522275d45a5f8b14040697647b58b8113e312fd6b14bf15d3cbba3907d978657dd99d8c02e199d8c936afa2b9a6407
23
24 diff --git a/net-misc/electrum/electrum-4.3.0.ebuild b/net-misc/electrum/electrum-4.3.0.ebuild
25 new file mode 100644
26 index 000000000000..125465b08385
27 --- /dev/null
28 +++ b/net-misc/electrum/electrum-4.3.0.ebuild
29 @@ -0,0 +1,95 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +PYTHON_REQ_USE="ncurses?"
38 +
39 +inherit desktop distutils-r1 xdg-utils
40 +
41 +DESCRIPTION="User friendly Bitcoin client"
42 +HOMEPAGE="
43 + https://electrum.org/
44 + https://github.com/spesmilo/electrum/
45 +"
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 + # use backwards-compatible cryptodome API
90 + sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
91 +
92 + # make qdarkstyle dep optional
93 + sed -i -e '/qdarkstyle/d' contrib/requirements/requirements.txt || die
94 +
95 + local bestgui
96 + if use qt5; then
97 + bestgui=qt
98 + elif use ncurses; then
99 + bestgui=text
100 + else
101 + bestgui=stdio
102 + fi
103 + sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN}/${PN} || die
104 +
105 + eapply_user
106 +
107 + xdg_environment_reset
108 + distutils-r1_src_prepare
109 +}
110 +
111 +src_install() {
112 + dodoc RELEASE-NOTES
113 + distutils-r1_src_install
114 +}
115 +
116 +pkg_postinst() {
117 + xdg_icon_cache_update
118 + xdg_desktop_database_update
119 +}
120 +
121 +pkg_postrm() {
122 + xdg_icon_cache_update
123 + xdg_desktop_database_update
124 +}