From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DE15A138334 for ; Thu, 1 Aug 2019 18:21:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69F8EE0824; Thu, 1 Aug 2019 18:21:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 23A8DE0815 for ; Thu, 1 Aug 2019 18:21:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6BF18349203 for ; Thu, 1 Aug 2019 18:21:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFCF96DB for ; Thu, 1 Aug 2019 18:21:47 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1564683695.185e923a309d12f75b6a1ba136004975d37ee664.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/electrum/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/electrum/electrum-3.3.6-r3.ebuild X-VCS-Directories: net-misc/electrum/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 185e923a309d12f75b6a1ba136004975d37ee664 X-VCS-Branch: master Date: Thu, 1 Aug 2019 18:21:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fc1b74c1-de77-47e9-9120-bf443a8283bd X-Archives-Hash: 1d32d61431337defe26d21cad903eaa6 commit: 185e923a309d12f75b6a1ba136004975d37ee664 Author: Michał Górny gentoo org> AuthorDate: Thu Aug 1 17:12:43 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Aug 1 18:21:35 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=185e923a 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 gentoo.org> net-misc/electrum/electrum-3.3.6-r3.ebuild | 138 +++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) 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 00000000000..1cb1b8b2bba --- /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 +}