aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-frameworks/kglobalaccel')
-rw-r--r--kde-frameworks/kglobalaccel/kglobalaccel-9999.ebuild29
-rw-r--r--kde-frameworks/kglobalaccel/metadata.xml3
2 files changed, 22 insertions, 10 deletions
diff --git a/kde-frameworks/kglobalaccel/kglobalaccel-9999.ebuild b/kde-frameworks/kglobalaccel/kglobalaccel-9999.ebuild
index 16073e30e4..a109e7f1cc 100644
--- a/kde-frameworks/kglobalaccel/kglobalaccel-9999.ebuild
+++ b/kde-frameworks/kglobalaccel/kglobalaccel-9999.ebuild
@@ -12,23 +12,25 @@ DESCRIPTION="Framework to handle global shortcuts"
LICENSE="LGPL-2+"
KEYWORDS=""
-IUSE="nls"
+IUSE="nls X"
-# requires installed instance
-RESTRICT="test"
+REQUIRED_USE="test? ( X )"
+RESTRICT="test" # requires installed instance
RDEPEND="
>=dev-qt/qtdbus-${QTMIN}:5
>=dev-qt/qtgui-${QTMIN}:5
>=dev-qt/qtwidgets-${QTMIN}:5
>=dev-qt/qtx11extras-${QTMIN}:5
- =kde-frameworks/kconfig-${PVCUT}*:5
- =kde-frameworks/kcoreaddons-${PVCUT}*:5
- =kde-frameworks/kcrash-${PVCUT}*:5
- =kde-frameworks/kdbusaddons-${PVCUT}*:5
- =kde-frameworks/kwindowsystem-${PVCUT}*:5[X]
- x11-libs/libxcb
- x11-libs/xcb-util-keysyms
+ X? (
+ =kde-frameworks/kconfig-${PVCUT}*:5
+ =kde-frameworks/kcoreaddons-${PVCUT}*:5
+ =kde-frameworks/kcrash-${PVCUT}*:5
+ =kde-frameworks/kdbusaddons-${PVCUT}*:5
+ =kde-frameworks/kwindowsystem-${PVCUT}*:5[X]
+ x11-libs/libxcb
+ x11-libs/xcb-util-keysyms
+ )
"
DEPEND="${RDEPEND}
test? (
@@ -39,6 +41,13 @@ DEPEND="${RDEPEND}
"
BDEPEND="nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )"
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_RUNTIME=$(usex X)
+ )
+ ecm_src_configure
+}
+
src_test() {
XDG_CURRENT_DESKTOP="KDE" ecm_src_test # bug 789342
}
diff --git a/kde-frameworks/kglobalaccel/metadata.xml b/kde-frameworks/kglobalaccel/metadata.xml
index 506ecf605b..39e72e4520 100644
--- a/kde-frameworks/kglobalaccel/metadata.xml
+++ b/kde-frameworks/kglobalaccel/metadata.xml
@@ -13,4 +13,7 @@
Must only be used by packages that are known to use private parts of the Frameworks API.
</subslots>
</slots>
+ <use>
+ <flag name="X">Build the kglobalacceld runtime needed for X</flag>
+ </use>
</pkgmetadata>