net-misc/electron-cash: fix for qt5 disabled
authorZac Medico <zmedico@gentoo.org>
Sat, 6 Jan 2018 12:04:28 +0000 (04:04 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 6 Jan 2018 12:07:01 +0000 (04:07 -0800)
Closes: https://bugs.gentoo.org/642344
Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-misc/electron-cash/electron-cash-3.0.ebuild

index 74a0b17301d558fadeb97f0d7ba0f10588aec179..742fcd67f942dd98e40e0c019983ea051d2086c3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -68,7 +68,11 @@ src_prepare() {
        # Prevent icon from being installed in the wrong location
        sed -i '/icons/d' setup.py || die
 
-       pyrcc5 icons.qrc -o gui/qt/icons_rc.py || die
+       if use qt5; then
+               pyrcc5 icons.qrc -o gui/qt/icons_rc.py || die
+       else
+               sed "s|'electroncash_gui.qt',||" -i setup.py || die
+       fi
 
        local wordlist=
        for wordlist in  \