commit:     8885652accd863eb209ea3e4a0e4b7e92b7f02fc
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 10 08:33:37 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sun Jul 10 08:39:37 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8885652a

net-misc/putty: build and install html docs

Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 .../putty/{putty-0.77.ebuild => putty-0.77-r1.ebuild}    | 16 ++++++++++------
 net-misc/putty/putty-9999.ebuild                         | 16 ++++++++++------
 2 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/net-misc/putty/putty-0.77.ebuild 
b/net-misc/putty/putty-0.77-r1.ebuild
similarity index 89%
rename from net-misc/putty/putty-0.77.ebuild
rename to net-misc/putty/putty-0.77-r1.ebuild
index cec778a9b089..be3a4064accf 100644
--- a/net-misc/putty/putty-0.77.ebuild
+++ b/net-misc/putty/putty-0.77-r1.ebuild
@@ -17,7 +17,7 @@ fi
 LICENSE="MIT"
 
 SLOT="0"
-IUSE="debug +gtk gtk2 ipv6 gssapi"
+IUSE="debug doc +gtk gtk2 ipv6 gssapi"
 
 RDEPEND="
        !net-misc/pssh
@@ -37,8 +37,8 @@ DEPEND="
 BDEPEND="
        dev-lang/perl
        virtual/pkgconfig
+       doc? ( app-doc/halibut )
 "
-#[[ ${PV} == *9999 ]] && BDEPEND+=" doc? ( app-doc/halibut )"
 
 REQUIRED_USE="
        gtk2? ( gtk )
@@ -60,15 +60,19 @@ src_configure() {
        cmake_src_configure
 }
 
+src_compile() {
+       cmake_src_compile all doc
+}
+
 src_install() {
        cmake_src_install
 
        doman "${BUILD_DIR}"/doc/*.1
 
-       #if use doc ; then
-       #       docinto html
-       #       dodoc "${BUILD_DIR}"/doc/html/*.html
-       #fi
+       if use doc ; then
+               docinto html
+               dodoc "${BUILD_DIR}"/doc/html/*.html
+       fi
 
        if use gtk ; then
                local i

diff --git a/net-misc/putty/putty-9999.ebuild b/net-misc/putty/putty-9999.ebuild
index cec778a9b089..be3a4064accf 100644
--- a/net-misc/putty/putty-9999.ebuild
+++ b/net-misc/putty/putty-9999.ebuild
@@ -17,7 +17,7 @@ fi
 LICENSE="MIT"
 
 SLOT="0"
-IUSE="debug +gtk gtk2 ipv6 gssapi"
+IUSE="debug doc +gtk gtk2 ipv6 gssapi"
 
 RDEPEND="
        !net-misc/pssh
@@ -37,8 +37,8 @@ DEPEND="
 BDEPEND="
        dev-lang/perl
        virtual/pkgconfig
+       doc? ( app-doc/halibut )
 "
-#[[ ${PV} == *9999 ]] && BDEPEND+=" doc? ( app-doc/halibut )"
 
 REQUIRED_USE="
        gtk2? ( gtk )
@@ -60,15 +60,19 @@ src_configure() {
        cmake_src_configure
 }
 
+src_compile() {
+       cmake_src_compile all doc
+}
+
 src_install() {
        cmake_src_install
 
        doman "${BUILD_DIR}"/doc/*.1
 
-       #if use doc ; then
-       #       docinto html
-       #       dodoc "${BUILD_DIR}"/doc/html/*.html
-       #fi
+       if use doc ; then
+               docinto html
+               dodoc "${BUILD_DIR}"/doc/html/*.html
+       fi
 
        if use gtk ; then
                local i

Reply via email to