commit:     fc7b23131c7832c4fa5100080ab584f083043c94
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 16 12:37:12 2016 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Sat Apr 16 12:49:41 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc7b2313

app-admin/packagekit-qt: Add Qt5 support

Package-Manager: portage-2.2.28

 app-admin/packagekit-qt/packagekit-qt-0.9.5.ebuild | 23 ++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/app-admin/packagekit-qt/packagekit-qt-0.9.5.ebuild 
b/app-admin/packagekit-qt/packagekit-qt-0.9.5.ebuild
index cd7321f..9fb2df8 100644
--- a/app-admin/packagekit-qt/packagekit-qt-0.9.5.ebuild
+++ b/app-admin/packagekit-qt/packagekit-qt-0.9.5.ebuild
@@ -16,13 +16,20 @@ 
SRC_URI="http://www.freedesktop.org/software/PackageKit/releases/${MY_P}.tar.xz";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86"
-IUSE=""
+IUSE="qt5"
 
 RDEPEND="
        >=app-admin/packagekit-base-0.9
-       dev-qt/qtcore:4
-       dev-qt/qtdbus:4
-       dev-qt/qtsql:4
+       !qt5? (
+               dev-qt/qtcore:4
+               dev-qt/qtdbus:4
+               dev-qt/qtsql:4
+       )
+       qt5? (
+               dev-qt/qtcore:5
+               dev-qt/qtdbus:5
+               dev-qt/qtsql:5
+       )
 "
 DEPEND="${RDEPEND}
        dev-libs/libxslt
@@ -30,3 +37,11 @@ DEPEND="${RDEPEND}
 "
 
 S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+       local mycmakeargs=(
+               -DUSE_QT5=$(usex qt5)
+       )
+
+       cmake-utils_src_configure
+}

Reply via email to