1 |
commit: 2ee2fcd4364fe822f000239b32a5d1490600581f |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 5 10:18:50 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 5 15:17:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ee2fcd4 |
7 |
|
8 |
kde-frameworks/kglobalaccel: Add back IUSE X |
9 |
|
10 |
Upstream commit 7d6ef389defbcf8fc25762ce772315221a721790 |
11 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=426199 |
12 |
|
13 |
Bug: https://bugs.gentoo.org/540120 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
...5.96.0.ebuild => kglobalaccel-5.96.0-r1.ebuild} | 29 ++++++++++++++-------- |
17 |
kde-frameworks/kglobalaccel/metadata.xml | 3 +++ |
18 |
2 files changed, 22 insertions(+), 10 deletions(-) |
19 |
|
20 |
diff --git a/kde-frameworks/kglobalaccel/kglobalaccel-5.96.0.ebuild b/kde-frameworks/kglobalaccel/kglobalaccel-5.96.0-r1.ebuild |
21 |
similarity index 62% |
22 |
rename from kde-frameworks/kglobalaccel/kglobalaccel-5.96.0.ebuild |
23 |
rename to kde-frameworks/kglobalaccel/kglobalaccel-5.96.0-r1.ebuild |
24 |
index 7d152d089bbb..b325e1626d1f 100644 |
25 |
--- a/kde-frameworks/kglobalaccel/kglobalaccel-5.96.0.ebuild |
26 |
+++ b/kde-frameworks/kglobalaccel/kglobalaccel-5.96.0-r1.ebuild |
27 |
@@ -12,23 +12,25 @@ DESCRIPTION="Framework to handle global shortcuts" |
28 |
|
29 |
LICENSE="LGPL-2+" |
30 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" |
31 |
-IUSE="nls" |
32 |
+IUSE="nls X" |
33 |
|
34 |
-# requires installed instance |
35 |
-RESTRICT="test" |
36 |
+REQUIRED_USE="test? ( X )" |
37 |
+RESTRICT="test" # requires installed instance |
38 |
|
39 |
RDEPEND=" |
40 |
>=dev-qt/qtdbus-${QTMIN}:5 |
41 |
>=dev-qt/qtgui-${QTMIN}:5 |
42 |
>=dev-qt/qtwidgets-${QTMIN}:5 |
43 |
>=dev-qt/qtx11extras-${QTMIN}:5 |
44 |
- =kde-frameworks/kconfig-${PVCUT}*:5 |
45 |
- =kde-frameworks/kcoreaddons-${PVCUT}*:5 |
46 |
- =kde-frameworks/kcrash-${PVCUT}*:5 |
47 |
- =kde-frameworks/kdbusaddons-${PVCUT}*:5 |
48 |
- =kde-frameworks/kwindowsystem-${PVCUT}*:5[X] |
49 |
- x11-libs/libxcb |
50 |
- x11-libs/xcb-util-keysyms |
51 |
+ X? ( |
52 |
+ =kde-frameworks/kconfig-${PVCUT}*:5 |
53 |
+ =kde-frameworks/kcoreaddons-${PVCUT}*:5 |
54 |
+ =kde-frameworks/kcrash-${PVCUT}*:5 |
55 |
+ =kde-frameworks/kdbusaddons-${PVCUT}*:5 |
56 |
+ =kde-frameworks/kwindowsystem-${PVCUT}*:5[X] |
57 |
+ x11-libs/libxcb |
58 |
+ x11-libs/xcb-util-keysyms |
59 |
+ ) |
60 |
" |
61 |
DEPEND="${RDEPEND} |
62 |
test? ( |
63 |
@@ -39,6 +41,13 @@ DEPEND="${RDEPEND} |
64 |
" |
65 |
BDEPEND="nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )" |
66 |
|
67 |
+src_configure() { |
68 |
+ local mycmakeargs=( |
69 |
+ -DBUILD_RUNTIME=$(usex X) |
70 |
+ ) |
71 |
+ ecm_src_configure |
72 |
+} |
73 |
+ |
74 |
src_test() { |
75 |
XDG_CURRENT_DESKTOP="KDE" ecm_src_test # bug 789342 |
76 |
} |
77 |
|
78 |
diff --git a/kde-frameworks/kglobalaccel/metadata.xml b/kde-frameworks/kglobalaccel/metadata.xml |
79 |
index 506ecf605bc4..39e72e4520b0 100644 |
80 |
--- a/kde-frameworks/kglobalaccel/metadata.xml |
81 |
+++ b/kde-frameworks/kglobalaccel/metadata.xml |
82 |
@@ -13,4 +13,7 @@ |
83 |
Must only be used by packages that are known to use private parts of the Frameworks API. |
84 |
</subslots> |
85 |
</slots> |
86 |
+ <use> |
87 |
+ <flag name="X">Build the kglobalacceld runtime needed for X</flag> |
88 |
+ </use> |
89 |
</pkgmetadata> |