commit:     d43abe3aac4c773e15697b43c94048eb8b0c375a
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 13 15:59:10 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Nov 13 16:29:40 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=d43abe3a

kde-frameworks/kconfigwidgets: add man USE flag

Upstream-commit: 57c8e076a7cb12a20faf109e8ac6da7815489697

Package-Manager: portage-2.2.24

 kde-frameworks/kconfigwidgets/kconfigwidgets-9999.ebuild | 12 ++++++++++--
 kde-frameworks/kconfigwidgets/metadata.xml               |  3 +++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/kde-frameworks/kconfigwidgets/kconfigwidgets-9999.ebuild 
b/kde-frameworks/kconfigwidgets/kconfigwidgets-9999.ebuild
index f1f54e7..49074b2 100644
--- a/kde-frameworks/kconfigwidgets/kconfigwidgets-9999.ebuild
+++ b/kde-frameworks/kconfigwidgets/kconfigwidgets-9999.ebuild
@@ -10,7 +10,7 @@ inherit kde5
 DESCRIPTION="Framework providing an assortment of configuration-related 
widgets"
 LICENSE="LGPL-2+"
 KEYWORDS=""
-IUSE=""
+IUSE="+man"
 
 RDEPEND="
        $(add_frameworks_dep kauth)
@@ -26,5 +26,13 @@ RDEPEND="
        !<kde-frameworks/kdelibs4support-5.3.0:5
 "
 DEPEND="${RDEPEND}
-       $(add_frameworks_dep kdoctools)
+       man? ( $(add_frameworks_dep kdoctools) )
 "
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_find_package man KF5DocTools)
+       )
+
+       kde5_src_configure
+}

diff --git a/kde-frameworks/kconfigwidgets/metadata.xml 
b/kde-frameworks/kconfigwidgets/metadata.xml
index a23f444..1f21592 100644
--- a/kde-frameworks/kconfigwidgets/metadata.xml
+++ b/kde-frameworks/kconfigwidgets/metadata.xml
@@ -2,4 +2,7 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
        <herd>kde</herd>
+       <use>
+               <flag name="man">Build and install man pages</flag>
+       </use>
 </pkgmetadata>

Reply via email to