diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-08-01 19:12:43 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-08-01 20:21:35 +0200 |
commit | 185e923a309d12f75b6a1ba136004975d37ee664 (patch) | |
tree | 8209a32a8946558de802d1d02f919e2013881185 /net-misc/electrum | |
parent | net-misc/networkmanager: kconfig NF_NAT options renamed in v5.0 (diff) | |
download | gentoo-185e923a309d12f75b6a1ba136004975d37ee664.tar.gz gentoo-185e923a309d12f75b6a1ba136004975d37ee664.tar.bz2 gentoo-185e923a309d12f75b6a1ba136004975d37ee664.zip |
net-misc/electrum: Remove invalid L10N usage
L10N is not supposed to be used to drop gettext localizations. Word
lists are small enough not to be worth the added complexity.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-misc/electrum')
-rw-r--r-- | net-misc/electrum/electrum-3.3.6-r3.ebuild | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/net-misc/electrum/electrum-3.3.6-r3.ebuild b/net-misc/electrum/electrum-3.3.6-r3.ebuild new file mode 100644 index 000000000000..1cb1b8b2bbaa --- /dev/null +++ b/net-misc/electrum/electrum-3.3.6-r3.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_REQ_USE="ncurses?" + +inherit desktop distutils-r1 xdg-utils + +MY_P="Electrum-${PV}" +DESCRIPTION="User friendly Bitcoin client" +HOMEPAGE="https://electrum.org/" +SRC_URI="https://download.electrum.org/${PV}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="audio_modem cli coldcard cosign digitalbitbox email greenaddress_it ncurses qrcode +qt5 safe_t sync revealer trustedcoin_com vkb" + +REQUIRED_USE=" + || ( cli ncurses qt5 ) + audio_modem? ( qt5 ) + cosign? ( qt5 ) + digitalbitbox? ( qt5 ) + email? ( qt5 ) + greenaddress_it? ( qt5 ) + qrcode? ( qt5 ) + sync? ( qt5 ) + trustedcoin_com? ( qt5 ) + vkb? ( qt5 ) +" + +RDEPEND="${PYTHON_DEPS} + dev-python/aiohttp-socks[${PYTHON_USEDEP}] + ~dev-python/aiorpcX-0.17.0[${PYTHON_USEDEP}] + dev-python/dnspython[${PYTHON_USEDEP}] + dev-python/ecdsa[${PYTHON_USEDEP}] + dev-python/jsonrpclib[${PYTHON_USEDEP}] + dev-python/pbkdf2[${PYTHON_USEDEP}] + dev-python/pyaes[${PYTHON_USEDEP}] + dev-python/PySocks[${PYTHON_USEDEP}] + dev-python/qrcode[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] + qrcode? ( media-gfx/zbar[v4l] ) + qt5? ( + dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] + ) + ncurses? ( dev-lang/python ) +" + +S="${WORKDIR}/${MY_P}" + +DOCS="RELEASE-NOTES" + +src_prepare() { + eapply "${FILESDIR}/3.1.2-no-user-root.patch" + eapply "${FILESDIR}/3.2.3-pip-optional-pkgs.patch" + eapply "${FILESDIR}/3.3.2-desktop.patch" + + # Prevent icon from being installed in the wrong location + sed -i '/icons_dirname/d' setup.py || die + + # Remove unrequested GUI implementations: + local gui setup_py_gui + for gui in \ + $(usex cli '' stdio) \ + kivy \ + $(usex qt5 '' qt ) \ + $(usex ncurses '' text ) \ + ; do + rm ${PN}/gui/"${gui}"* -r || die + done + + # And install requested ones... + for gui in \ + $(usex !qt5 qt '') \ + ; do + sed -i -e "/electrum\.gui\.${gui}/d" setup.py || die + done + + local bestgui + if use qt5; 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 + + local plugin + # trezor requires python trezorlib module + # keepkey requires trezor + for plugin in \ + $(usex audio_modem '' audio_modem ) \ + $(usex coldcard '' coldcard ) \ + $(usex cosign '' cosigner_pool ) \ + $(usex digitalbitbox '' digitalbitbox ) \ + $(usex email '' email_requests ) \ + $(usex greenaddress_it '' greenaddress_instant ) \ + hw_wallet \ + ledger \ + keepkey \ + $(usex safe_t '' safe_t ) \ + $(usex sync '' labels ) \ + $(usex revealer '' revealer ) \ + trezor \ + $(usex trustedcoin_com '' trustedcoin ) \ + $(usex vkb '' virtualkeyboard ) \ + ; do + rm -r ${PN}/plugins/"${plugin}"* || die + sed -i "/${plugin}/d" setup.py || die + done + + eapply_user + + xdg_environment_reset + distutils-r1_src_prepare +} + +src_install() { + doicon -s 128 electrum/gui/icons/${PN}.png + distutils-r1_src_install +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +} |