Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/electrum/
Date: Wed, 31 Jul 2019 12:24:44
Message-Id: 1564575839.53734642b19d6726b092258d395365a336437f90.mgorny@gentoo
1 commit: 53734642b19d6726b092258d395365a336437f90
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 31 12:23:59 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 31 12:23:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53734642
7
8 net-misc/electrum: Fix build with USE=-qt5
9
10 Apply a minimal change needed to get the package building correctly
11 with USE=-qt5.
12
13 Closes: https://bugs.gentoo.org/688768
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 net-misc/electrum/electrum-3.3.6-r2.ebuild | 6 ++----
17 1 file changed, 2 insertions(+), 4 deletions(-)
18
19 diff --git a/net-misc/electrum/electrum-3.3.6-r2.ebuild b/net-misc/electrum/electrum-3.3.6-r2.ebuild
20 index d9b89c1d873..a58e68be730 100644
21 --- a/net-misc/electrum/electrum-3.3.6-r2.ebuild
22 +++ b/net-misc/electrum/electrum-3.3.6-r2.ebuild
23 @@ -110,13 +110,11 @@ src_prepare() {
24
25 # And install requested ones...
26 for gui in \
27 - $(usex qt5 qt '') \
28 + $(usex !qt5 qt '') \
29 ; do
30 - setup_py_gui="${setup_py_gui}'electrum_gui.${gui}',"
31 + sed -i -e "/electrum\.gui\.${gui}/d" setup.py || die
32 done
33
34 - sed -i "s/'electrum_gui\\.qt',/${setup_py_gui}/" setup.py || die
35 -
36 local bestgui
37 if use qt5; then
38 bestgui=qt