summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2016-04-16 14:37:12 +0200
committerJohannes Huber <johu@gentoo.org>2016-04-16 14:49:41 +0200
commitfc7b23131c7832c4fa5100080ab584f083043c94 (patch)
tree1ac85699ebe5dfadf38d9d43586d1d72d1c8724c /app-admin/packagekit-qt
parentapp-admin/packagekit-qt: EAPI 6 (diff)
downloadgentoo-fc7b23131c7832c4fa5100080ab584f083043c94.tar.gz
gentoo-fc7b23131c7832c4fa5100080ab584f083043c94.tar.bz2
gentoo-fc7b23131c7832c4fa5100080ab584f083043c94.zip
app-admin/packagekit-qt: Add Qt5 support
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-admin/packagekit-qt')
-rw-r--r--app-admin/packagekit-qt/packagekit-qt-0.9.5.ebuild23
1 files 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 cd7321f67e55..9fb2df82aef3 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
+}