aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2014-12-25 22:10:16 +0800
committerBen de Groot <yngwin@gentoo.org>2014-12-25 22:10:16 +0800
commita67c5ba0c1bfb9bfc0932143ceb97326f32936a3 (patch)
tree8a9fb49ef3af226e8edf21e2da3bc3254677226a /x11-misc
parent[dev-qt/qtsql:4] Sync. (diff)
downloadqt-a67c5ba0c1bfb9bfc0932143ceb97326f32936a3.tar.gz
qt-a67c5ba0c1bfb9bfc0932143ceb97326f32936a3.tar.bz2
qt-a67c5ba0c1bfb9bfc0932143ceb97326f32936a3.zip
x11-misc/compton-conf: add qt5 support to live ebuild
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/compton-conf/compton-conf-9999.ebuild28
1 files changed, 21 insertions, 7 deletions
diff --git a/x11-misc/compton-conf/compton-conf-9999.ebuild b/x11-misc/compton-conf/compton-conf-9999.ebuild
index 0f4665fb..73d0220a 100644
--- a/x11-misc/compton-conf/compton-conf-9999.ebuild
+++ b/x11-misc/compton-conf/compton-conf-9999.ebuild
@@ -19,11 +19,25 @@ fi
LICENSE="LGPL-2.1+"
SLOT="0"
-IUSE=""
+IUSE="qt4 +qt5"
+REQUIRED_USE="^^ ( qt4 qt5 )"
-DEPEND="dev-qt/qtcore:4
- dev-qt/qtdbus:4
- dev-qt/qtgui:4
- x11-libs/libX11
- x11-misc/compton"
-RDEPEND="${DEPEND}"
+RDEPEND="x11-libs/libX11
+ x11-misc/compton
+ qt4? ( dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4 )
+ qt5? ( dev-qt/linguist-tools:5
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtwidgets:5 )"
+DEPEND="${RDEPEND}
+ dev-libs/libconfig
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ $( cmake-utils_use_use qt5 QT5 )
+ )
+ cmake-utils_src_configure
+}