mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
net-misc/electrum: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
DIST Electrum-4.8.2.tar.gz 12024855 BLAKE2B 09255bc07b318d89dc6a783230ce7d28e5d853e4a02a2a89fd5ace7f96d56b51e2d3ceec33ad712552f5dc7e7e4d029581cf93a3035176ab2055dcab63668f7d SHA512 4694d01723aedcc7e7cf6a2d58c43b6277a4ae46e56322778c9c349fedd10df5d5c4a015ddf3ea7c32ddad1075bf0845548d03d258a519c77fe1b252af63646e
|
||||
DIST Electrum-4.8.2.tar.gz.asc 3560 BLAKE2B 7512d75d1e92981f770cb06b978642876b74f9ce2e7d9a7df64c8c84d5b0faef86e857915d756abca91e91a302848fc847aebdf4b40fea6027bece7a090da529 SHA512 2e30f6c7ac4a1d3fbabdbe3ffb2f004c457d57cc87c808bebec83aa844f6637d4855d0081266a7d694cc01047c177980c9052d33a0396c385e3fb995bd2a8a55
|
||||
DIST Electrum-4.8.3.tar.gz 12163793 BLAKE2B 2f3d1f4c0560893db28138c1d915c7e11d7db49bdccd67482bf1d4d83b48412917567d5b5b74f8048755ec96f63fdf54ce6127b22ee4393df8621b9adfc49f62 SHA512 f84c083ce23be6852226804d9f79cc30213fe14388110b8c3758162c7724314511ad1f1ac724cda5abd7b16afece454f595c0001ae503d5f7a33c5db26f1e491
|
||||
DIST Electrum-4.8.3.tar.gz.asc 3560 BLAKE2B f9b83e4595578a6b3f608e2cdd688828c1b4581b355f44d07668f7ee42416b29a533f7b3c22141531febb3566bf7f7641a91ba6644f6fc577711e3dae6d81365 SHA512 2e66db1149ff657c0cbc6ee630162f535b2398c1a7438147fb0a0404f24f1bfc666ee5e6d98ae65ec45ae311b101d689b67e893d0502b82fdcef61191221dbdf
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_REQ_USE="ncurses?"
|
||||
|
||||
inherit distutils-r1 eapi9-ver verify-sig xdg-utils
|
||||
|
||||
MY_P=${P^}
|
||||
DESCRIPTION="User friendly Bitcoin client"
|
||||
HOMEPAGE="
|
||||
https://electrum.org/
|
||||
https://github.com/spesmilo/electrum/
|
||||
"
|
||||
SRC_URI="
|
||||
https://download.electrum.org/${PV}/${MY_P}.tar.gz
|
||||
verify-sig? (
|
||||
https://download.electrum.org/${PV}/${MY_P}.tar.gz.asc
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="cli ncurses qrcode +qt6"
|
||||
REQUIRED_USE="|| ( cli ncurses qt6 )"
|
||||
|
||||
# setuptools (distutils) & pyperclip vendored
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-python/aiohttp-3.11.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/aiohttp-socks-0.8.4[${PYTHON_USEDEP}]
|
||||
=dev-python/aiorpcx-0.25*[${PYTHON_USEDEP}]
|
||||
>=dev-python/attrs-20.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
>=dev-python/dnspython-2[${PYTHON_USEDEP}]
|
||||
>=dev-python/electrum-ecc-0.0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/electrum-aionostr-0.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||
dev-python/pbkdf2[${PYTHON_USEDEP}]
|
||||
dev-python/pyperclip[${PYTHON_USEDEP}]
|
||||
dev-python/qrcode[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
qrcode? ( media-gfx/zbar[v4l] )
|
||||
qt6? (
|
||||
dev-python/pyqt6[gui,multimedia,printsupport,qml,quick,widgets,${PYTHON_USEDEP}]
|
||||
)
|
||||
ncurses? ( $(python_gen_impl_dep 'ncurses') )
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pyaes[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
)
|
||||
verify-sig? (
|
||||
sec-keys/openpgp-keys-electrum
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
EPYTEST_RERUNS=5
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/electrum.asc
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# remove bundled dependencies
|
||||
rm -r electrum/_vendor packages || die
|
||||
find -name '*.py' -exec \
|
||||
sed -i -e 's:\(electrum\)\?[.]_vendor[.]::' {} + || die
|
||||
|
||||
# use backwards-compatible cryptodome API
|
||||
sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
|
||||
|
||||
# make qdarkstyle dep optional
|
||||
sed -i -e '/qdarkstyle/d' contrib/requirements/requirements.txt || die
|
||||
|
||||
# remove upper bounds from deps
|
||||
sed -i -e 's:,<[0-9.]*::' contrib/requirements/requirements.txt || die
|
||||
|
||||
local bestgui
|
||||
if use qt6; then
|
||||
bestgui=qt
|
||||
elif use ncurses; then
|
||||
bestgui=text
|
||||
else
|
||||
bestgui=stdio
|
||||
fi
|
||||
sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN}/${PN} || die
|
||||
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc RELEASE-NOTES
|
||||
distutils-r1_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
|
||||
ver_replacing -ge 4.3.4 && return
|
||||
|
||||
ewarn "If you are new to BitCoin, please be aware that:"
|
||||
ewarn "1. Cryptocurrencies are volatile. BTC has been subject to rapid"
|
||||
ewarn " changes of value in the past."
|
||||
ewarn "2. Cryptocurrency ownership is determined solely by the access to"
|
||||
ewarn " the private key. If the key is lost or stolen, BTC are unrevocably"
|
||||
ewarn " lost."
|
||||
ewarn "3. Proof-of-work based cryptocurrencies have negative environmental"
|
||||
ewarn " impact. BTC mining is consuming huge amounts of electricity."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
Reference in New Issue
Block a user