commit:     33d72cab6898eaeb782fe60eb1e1b8f794a655a5
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Thu Aug 15 19:15:07 2019 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Aug 16 17:02:29 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33d72cab

net-irc/kvirc: Install API documentation with USE="doc".

Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild | 20 ++++++++++++++++++++
 net-irc/kvirc/kvirc-9999.ebuild                  | 20 ++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild 
b/net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild
index 2fb31df8c0f..9b9efe89389 100644
--- a/net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild
+++ b/net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild
@@ -2,6 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
+CMAKE_MAKEFILE_GENERATOR="emake"
 PYTHON_COMPAT=(python2_7)
 
 inherit cmake-utils flag-o-matic python-single-r1 xdg-utils
@@ -139,6 +140,25 @@ src_configure() {
        cmake-utils_src_configure
 }
 
+src_compile() {
+       cmake-utils_src_compile
+
+       if use doc; then
+               cmake-utils_src_compile devdocs
+       fi
+}
+
+src_install() {
+       cmake-utils_src_install
+
+       if use doc; then
+               (
+                       docinto html
+                       dodoc -r "${BUILD_DIR}/doc/api/html/"*
+               )
+       fi
+}
+
 pkg_postinst() {
        xdg_desktop_database_update
        xdg_icon_cache_update

diff --git a/net-irc/kvirc/kvirc-9999.ebuild b/net-irc/kvirc/kvirc-9999.ebuild
index 5c279875370..3e4e206a18d 100644
--- a/net-irc/kvirc/kvirc-9999.ebuild
+++ b/net-irc/kvirc/kvirc-9999.ebuild
@@ -2,6 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
+CMAKE_MAKEFILE_GENERATOR="emake"
 PYTHON_COMPAT=(python2_7)
 
 inherit cmake-utils flag-o-matic python-single-r1 xdg-utils
@@ -139,6 +140,25 @@ src_configure() {
        cmake-utils_src_configure
 }
 
+src_compile() {
+       cmake-utils_src_compile
+
+       if use doc; then
+               cmake-utils_src_compile devdocs
+       fi
+}
+
+src_install() {
+       cmake-utils_src_install
+
+       if use doc; then
+               (
+                       docinto html
+                       dodoc -r "${BUILD_DIR}/doc/api/html/"*
+               )
+       fi
+}
+
 pkg_postinst() {
        xdg_desktop_database_update
        xdg_icon_cache_update

Reply via email to