commit:     ed887081dbb413ddcaaa87e0341183a80392683a
Author:     Karol Herbst <git <AT> karolherbst <DOT> de>
AuthorDate: Wed Dec 17 14:42:07 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Dec 26 16:23:27 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=ed887081

[net-im/ktp-common-internals] add USE flags for optional deps

---
 .../ktp-common-internals-9999.ebuild                     | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/net-im/ktp-common-internals/ktp-common-internals-9999.ebuild 
b/net-im/ktp-common-internals/ktp-common-internals-9999.ebuild
index bc7d1c8..a0e1576 100644
--- a/net-im/ktp-common-internals/ktp-common-internals-9999.ebuild
+++ b/net-im/ktp-common-internals/ktp-common-internals-9999.ebuild
@@ -17,7 +17,7 @@ fi
 
 LICENSE="LGPL-2.1"
 SLOT="5"
-IUSE="otr"
+IUSE="doc otr"
 
 # todo: libkpeople, kdepimlibs
 DEPEND="
@@ -48,6 +48,9 @@ DEPEND="
        net-libs/accounts-qt
        >=net-libs/telepathy-qt-0.9.5[qt5]
        net-libs/telepathy-logger-qt:5
+       doc? (
+               app-doc/doxygen
+       )
        otr? (
                dev-libs/libgcrypt:0=
                >=net-libs/libotr-4.0.0
@@ -59,9 +62,20 @@ RDEPEND="${DEPEND}
 
 src_configure() {
        local mycmakeargs=(
+               $(cmake-utils_use_find_package doc Doxygen)
                $(cmake-utils_use_find_package otr Libgcrypt)
                $(cmake-utils_use_find_package otr LibOTR)
        )
 
        kde5_src_configure
 }
+
+src_compile() {
+       kde5_src_compile
+       use doc && kde5_src_compile apidox
+}
+
+src_install() {
+       kde5_src_install
+       use doc && dodoc "${BUILD_DIR}"/KTp/docs/html/*
+}

Reply via email to