diff options
-rw-r--r-- | app-admin/packagekit-qt/packagekit-qt-0.9.5.ebuild | 23 |
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 +} |