commit:     53734642b19d6726b092258d395365a336437f90
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 31 12:23:59 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 31 12:23:59 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53734642

net-misc/electrum: Fix build with USE=-qt5

Apply a minimal change needed to get the package building correctly
with USE=-qt5.

Closes: https://bugs.gentoo.org/688768
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 net-misc/electrum/electrum-3.3.6-r2.ebuild | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/net-misc/electrum/electrum-3.3.6-r2.ebuild 
b/net-misc/electrum/electrum-3.3.6-r2.ebuild
index d9b89c1d873..a58e68be730 100644
--- a/net-misc/electrum/electrum-3.3.6-r2.ebuild
+++ b/net-misc/electrum/electrum-3.3.6-r2.ebuild
@@ -110,13 +110,11 @@ src_prepare() {
 
        # And install requested ones...
        for gui in  \
-               $(usex qt5      qt   '')  \
+               $(usex !qt5     qt   '')  \
        ; do
-               setup_py_gui="${setup_py_gui}'electrum_gui.${gui}',"
+               sed -i -e "/electrum\.gui\.${gui}/d" setup.py || die
        done
 
-       sed -i "s/'electrum_gui\\.qt',/${setup_py_gui}/" setup.py || die
-
        local bestgui
        if use qt5; then
                bestgui=qt

Reply via email to