commit: a87e1b8de178023d2f57114f327e88cd89c3751e Author: Karol Herbst <git <AT> karolherbst <DOT> de> AuthorDate: Tue Dec 9 10:11:20 2014 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Tue Dec 9 16:34:47 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=a87e1b8d
[kde-misc/kaccounts-integration] make kdepim optional --- .../kaccounts-integration/kaccounts-integration-9999.ebuild | 13 +++++++++++-- kde-misc/kaccounts-integration/metadata.xml | 3 +++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/kde-misc/kaccounts-integration/kaccounts-integration-9999.ebuild b/kde-misc/kaccounts-integration/kaccounts-integration-9999.ebuild index 4901f1a..47179b9 100644 --- a/kde-misc/kaccounts-integration/kaccounts-integration-9999.ebuild +++ b/kde-misc/kaccounts-integration/kaccounts-integration-9999.ebuild @@ -11,7 +11,7 @@ HOMEPAGE="https://community.kde.org/KTp" LICENSE="LGPL-2.1" SLOT="5" -IUSE="test" +IUSE="kdepim test" DEPEND=" $(add_frameworks_dep kconfig) @@ -23,7 +23,9 @@ DEPEND=" $(add_frameworks_dep kio) $(add_frameworks_dep kwallet) $(add_frameworks_dep kwidgetsaddons) - $(add_kdebase_dep kdepimlibs) + kdepim? ( + $(add_kdebase_dep kdepimlibs) + ) net-libs/accounts-qt net-libs/signond dev-qt/qtcore:5 @@ -39,3 +41,10 @@ src_prepare() { sed -i -e 's/add_subdirectory(tests)//' CMakeLists.txt || die "couldn't disable tests" fi } + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package kdepim KF5Akonadi) + ) + cmake-utils_src_configure +} diff --git a/kde-misc/kaccounts-integration/metadata.xml b/kde-misc/kaccounts-integration/metadata.xml index a23f444..ab25241 100644 --- a/kde-misc/kaccounts-integration/metadata.xml +++ b/kde-misc/kaccounts-integration/metadata.xml @@ -2,4 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>kde</herd> + <use> + <flag name="kdepim">KDE PIM integration via kde-base/kdepimlibs</flag> + </use> </pkgmetadata>