net-irc/kvirc: Install API documentation with USE="doc".
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Thu, 15 Aug 2019 19:15:07 +0000 (19:15 +0000)
committerMike Gilbert <floppym@gentoo.org>
Fri, 16 Aug 2019 17:02:29 +0000 (13:02 -0400)
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild
net-irc/kvirc/kvirc-9999.ebuild

index 2fb31df8c0fcf3890569ca7187dac01606fea5dc..9b9efe89389c97a906000e4ee896464e1cec37d3 100644 (file)
@@ -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
index 5c27987537056e71727f75b81ccc5e93aedd131a..3e4e206a18d64566f2befc8ac382025e534bf233 100644 (file)
@@ -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