net-misc/electrum: Fix build with USE=-qt5
authorMichał Górny <mgorny@gentoo.org>
Wed, 31 Jul 2019 12:23:59 +0000 (14:23 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 31 Jul 2019 12:23:59 +0000 (14:23 +0200)
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@gentoo.org>
net-misc/electrum/electrum-3.3.6-r2.ebuild

index d9b89c1d8736b7f471e178f9dcfa97821f2a99de..a58e68be7304ecdb0bf3a995c182dcb444791745 100644 (file)
@@ -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