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