net-misc/electrum-ltc: fix for qt5 disabled
authorZac Medico <zmedico@gentoo.org>
Sat, 6 Jan 2018 12:16:30 +0000 (04:16 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 6 Jan 2018 12:16:30 +0000 (04:16 -0800)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-misc/electrum-ltc/electrum-ltc-3.0_pre20171218.ebuild

index 5ddcdc8524ef1068441c6bc52330a2a45434364c..9fe4e95536d4ee6b261cab464a29817de746f0a8 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"
@@ -72,7 +72,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|'electrum_ltc_gui.qt',||" -i setup.py || die
+       fi
 
        local wordlist=
        for wordlist in  \