commit:     bd348c2ca05bc5201e5fc40e5b358ab04e522e31
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  6 20:41:52 2022 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Wed Apr  6 20:43:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd348c2c

x11-misc/spnavcfg: Make 1.0 compile without qtchooser installed

Closes: https://bugs.gentoo.org/836948
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
Package-Manager: Portage-3.0.30, Repoman-3.0.3

 x11-misc/spnavcfg/spnavcfg-1.0.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/x11-misc/spnavcfg/spnavcfg-1.0.ebuild 
b/x11-misc/spnavcfg/spnavcfg-1.0.ebuild
index f2b2fbed5906..d49c3125f96a 100644
--- a/x11-misc/spnavcfg/spnavcfg-1.0.ebuild
+++ b/x11-misc/spnavcfg/spnavcfg-1.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit toolchain-funcs
+inherit toolchain-funcs qmake-utils
 
 DESCRIPTION="GTK-based GUI to configure a space navigator device"
 HOMEPAGE="http://spacenav.sourceforge.net/";
@@ -29,5 +29,11 @@ src_configure() {
 }
 
 src_compile() {
-       emake CC="$(tc-getCC)"
+       local args=(
+               CC="$(tc-getCC)"
+               MOC="$(qt5_get_bindir)/moc"
+               RCC="$(qt5_get_bindir)/rcc"
+               UIC="$(qt5_get_bindir)/uic"
+       )
+       emake "${args[@]}"
 }

Reply via email to