net-misc/dhcpcd-ui: Explicitly set QTDIR for qt4.
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 23 Mar 2016 12:14:11 +0000 (13:14 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 23 Mar 2016 12:14:31 +0000 (13:14 +0100)
This covers the very rare case a user still has qt3 installed which sets
QTDIR to "/usr/qt/3" via environment. This breaks the build when
"qt4" USE flag is enabled.

Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-misc/dhcpcd-ui/dhcpcd-ui-0.7.5.ebuild

index 39f3430770fe62fbbf6bd70b8c9db80292a85306..5f4c71ea697ae33717ca5f008d85e9465a2598a0 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit eutils systemd
+inherit eutils qmake-utils systemd
 
 DESCRIPTION="Desktop notification and configuration for dhcpcd"
 HOMEPAGE="http://roy.marples.name/projects/dhcpcd-ui/"
@@ -33,8 +33,11 @@ DEPEND="${DEPEND}
 
 RDEPEND=">=net-misc/dhcpcd-6.4.4"
 
-src_prepare() {
-       epatch_user
+pkg_setup() {
+       if use qt4 ; then
+               # This is required in case a user still has qt3 installed
+               export QTDIR="$(qt4_get_bindir)"
+       fi
 }
 
 src_configure() {