1 |
commit: 5c0a6074108528a6abcb41319a0f8ed699376464 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 2 20:26:22 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 2 20:26:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=5c0a6074 |
7 |
|
8 |
kde-apps/pimcommon: Add USE share |
9 |
|
10 |
Moved from kde-apps/libksieve. |
11 |
|
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
14 |
|
15 |
kde-apps/pimcommon/metadata.xml | 1 + |
16 |
kde-apps/pimcommon/pimcommon-9999.ebuild | 13 +++++++++++-- |
17 |
2 files changed, 12 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/kde-apps/pimcommon/metadata.xml b/kde-apps/pimcommon/metadata.xml |
20 |
index a50ada50ef..7ade8e3d0b 100644 |
21 |
--- a/kde-apps/pimcommon/metadata.xml |
22 |
+++ b/kde-apps/pimcommon/metadata.xml |
23 |
@@ -7,5 +7,6 @@ |
24 |
</maintainer> |
25 |
<use> |
26 |
<flag name="designer">Build plugins for <pkg>dev-qt/designer</pkg></flag> |
27 |
+ <flag name="share">Enable support for a share menu using <pkg>kde-frameworks/purpose</pkg></flag> |
28 |
</use> |
29 |
</pkgmetadata> |
30 |
|
31 |
diff --git a/kde-apps/pimcommon/pimcommon-9999.ebuild b/kde-apps/pimcommon/pimcommon-9999.ebuild |
32 |
index 624220f012..41e9e197e6 100644 |
33 |
--- a/kde-apps/pimcommon/pimcommon-9999.ebuild |
34 |
+++ b/kde-apps/pimcommon/pimcommon-9999.ebuild |
35 |
@@ -1,4 +1,4 @@ |
36 |
-# Copyright 1999-2018 Gentoo Foundation |
37 |
+# Copyright 1999-2018 Gentoo Authors |
38 |
# Distributed under the terms of the GNU General Public License v2 |
39 |
|
40 |
EAPI=6 |
41 |
@@ -11,7 +11,7 @@ inherit kde5 |
42 |
DESCRIPTION="Common PIM libraries" |
43 |
LICENSE="GPL-2+ LGPL-2.1+" |
44 |
KEYWORDS="" |
45 |
-IUSE="" |
46 |
+IUSE="share" |
47 |
|
48 |
COMMON_DEPEND=" |
49 |
$(add_frameworks_dep karchive) |
50 |
@@ -42,6 +42,7 @@ COMMON_DEPEND=" |
51 |
$(add_qt_dep qtwidgets) |
52 |
$(add_qt_dep qtxml) |
53 |
dev-libs/grantlee:5 |
54 |
+ share? ( $(add_frameworks_dep purpose) ) |
55 |
" |
56 |
DEPEND="${COMMON_DEPEND} |
57 |
$(add_frameworks_dep kiconthemes) |
58 |
@@ -53,6 +54,14 @@ RDEPEND="${COMMON_DEPEND} |
59 |
!kde-apps/kdepim-l10n |
60 |
" |
61 |
|
62 |
+src_configure() { |
63 |
+ local mycmakeargs=( |
64 |
+ $(cmake-utils_use_find_package share KF5Purpose) |
65 |
+ ) |
66 |
+ |
67 |
+ kde5_src_configure |
68 |
+} |
69 |
+ |
70 |
src_test() { |
71 |
# bugs 641730, 661330 |
72 |
local myctestargs=( |