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: Fri, 02 Apr 2021 23:42:53
Message-Id: 1617406957.8fb718aeb3a298d4e5dcc475bed75e7d22145c17.mgorny@gentoo
1 commit: 8fb718aeb3a298d4e5dcc475bed75e7d22145c17
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 2 23:11:38 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 2 23:42:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fb718ae
7
8 net-misc/electrum: Bump to 4.1.1
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.1.ebuild | 97 +++++++++++++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/net-misc/electrum/Manifest b/net-misc/electrum/Manifest
17 index 4c90e54bf0b..348e4fea935 100644
18 --- a/net-misc/electrum/Manifest
19 +++ b/net-misc/electrum/Manifest
20 @@ -1,2 +1,3 @@
21 DIST electrum-4.0.9.gh.tar.gz 4435268 BLAKE2B e1dfe319f7b4beffd039164c97d247f5d267d9d99313480bf06f9b748d095b33859cd8ea5dd5a135b38a1a206858e08ce500af8982ef7a6e3b3f7ff0233b9637 SHA512 a9a04163c8d76006ca18e1c50f38cabd7c3d7d75b16c8504627b9eb49bf9dca91800e18a585e7afd0b98fafeeeb821b967bea29928a46d10f65f0abc3fb90887
22 DIST electrum-4.1.0.gh.tar.gz 4539032 BLAKE2B 72ef52a000799e496e6ccca152dc8bec827aef23d4e3290fd2e86ace0f96e9267f68b56c390b873658dc8f6e6998080bd0283494ee74603c360dfe250b64c282 SHA512 7dd94bfc23f78e915f42f1043f6b7e9d0d6d5de7303418da8d2f3bd53ece794c74c3cd0dd9d77b370a6c6f049261273b170ddcb67f6c3dc7189869b200e8d437
23 +DIST electrum-4.1.1.gh.tar.gz 4539619 BLAKE2B abcb0713b8b82fb7b13b432146ee63746690cf3a80d3951de41a13435eba7217010c92653d5263ea155072e5bb911e38f6c3d6a83f72bda9fb07a26f705e2621 SHA512 f3066171bc8cef1402356f01254acdce3e4f4d6fb99a1feb52d76f3a7c21f5b082148b7b598b19ae8a4817b221b8d80f27f9ab67d3d09e465856d51f8b28f0e4
24
25 diff --git a/net-misc/electrum/electrum-4.1.1.ebuild b/net-misc/electrum/electrum-4.1.1.ebuild
26 new file mode 100644
27 index 00000000000..434ffec4d5b
28 --- /dev/null
29 +++ b/net-misc/electrum/electrum-4.1.1.ebuild
30 @@ -0,0 +1,97 @@
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 )
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 +
91 + # Prevent icon from being installed in the wrong location
92 + sed -i '/icons_dirname/d' setup.py || die
93 +
94 + # use backwards-compatible cryptodome API
95 + sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
96 +
97 + local bestgui
98 + if use qt5; then
99 + bestgui=qt
100 + elif use ncurses; then
101 + bestgui=text
102 + else
103 + bestgui=stdio
104 + fi
105 + sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN}/${PN} || die
106 +
107 + eapply_user
108 +
109 + xdg_environment_reset
110 + distutils-r1_src_prepare
111 +}
112 +
113 +src_install() {
114 + doicon -s 128 electrum/gui/icons/${PN}.png
115 + dodoc RELEASE-NOTES
116 + distutils-r1_src_install
117 +}
118 +
119 +pkg_postinst() {
120 + xdg_icon_cache_update
121 + xdg_desktop_database_update
122 +}
123 +
124 +pkg_postrm() {
125 + xdg_icon_cache_update
126 + xdg_desktop_database_update
127 +}