Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/kvirc/
Date: Fri, 16 Aug 2019 17:03:15
Message-Id: 1565974949.33d72cab6898eaeb782fe60eb1e1b8f794a655a5.floppym@gentoo
1 commit: 33d72cab6898eaeb782fe60eb1e1b8f794a655a5
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Thu Aug 15 19:15:07 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 16 17:02:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33d72cab
7
8 net-irc/kvirc: Install API documentation with USE="doc".
9
10 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild | 20 ++++++++++++++++++++
14 net-irc/kvirc/kvirc-9999.ebuild | 20 ++++++++++++++++++++
15 2 files changed, 40 insertions(+)
16
17 diff --git a/net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild b/net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild
18 index 2fb31df8c0f..9b9efe89389 100644
19 --- a/net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild
20 +++ b/net-irc/kvirc/kvirc-5.2_pre20190628041642.ebuild
21 @@ -2,6 +2,7 @@
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI="7"
25 +CMAKE_MAKEFILE_GENERATOR="emake"
26 PYTHON_COMPAT=(python2_7)
27
28 inherit cmake-utils flag-o-matic python-single-r1 xdg-utils
29 @@ -139,6 +140,25 @@ src_configure() {
30 cmake-utils_src_configure
31 }
32
33 +src_compile() {
34 + cmake-utils_src_compile
35 +
36 + if use doc; then
37 + cmake-utils_src_compile devdocs
38 + fi
39 +}
40 +
41 +src_install() {
42 + cmake-utils_src_install
43 +
44 + if use doc; then
45 + (
46 + docinto html
47 + dodoc -r "${BUILD_DIR}/doc/api/html/"*
48 + )
49 + fi
50 +}
51 +
52 pkg_postinst() {
53 xdg_desktop_database_update
54 xdg_icon_cache_update
55
56 diff --git a/net-irc/kvirc/kvirc-9999.ebuild b/net-irc/kvirc/kvirc-9999.ebuild
57 index 5c279875370..3e4e206a18d 100644
58 --- a/net-irc/kvirc/kvirc-9999.ebuild
59 +++ b/net-irc/kvirc/kvirc-9999.ebuild
60 @@ -2,6 +2,7 @@
61 # Distributed under the terms of the GNU General Public License v2
62
63 EAPI="7"
64 +CMAKE_MAKEFILE_GENERATOR="emake"
65 PYTHON_COMPAT=(python2_7)
66
67 inherit cmake-utils flag-o-matic python-single-r1 xdg-utils
68 @@ -139,6 +140,25 @@ src_configure() {
69 cmake-utils_src_configure
70 }
71
72 +src_compile() {
73 + cmake-utils_src_compile
74 +
75 + if use doc; then
76 + cmake-utils_src_compile devdocs
77 + fi
78 +}
79 +
80 +src_install() {
81 + cmake-utils_src_install
82 +
83 + if use doc; then
84 + (
85 + docinto html
86 + dodoc -r "${BUILD_DIR}/doc/api/html/"*
87 + )
88 + fi
89 +}
90 +
91 pkg_postinst() {
92 xdg_desktop_database_update
93 xdg_icon_cache_update