commit:     156b823069228e48099bb2894b18ea1ec944e0c6
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Sat Oct  5 20:33:51 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  6 10:49:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=156b8230

net-analyzer/wireshark: fix build with USE=doc

As it turns out the build works the way it does, not the way I
thought it did. Now it works for either -doc/+doc.

Closes: https://bugs.gentoo.org/940910
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/38888
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/wireshark/wireshark-4.4.0.ebuild | 10 ++++++----
 net-analyzer/wireshark/wireshark-9999.ebuild  | 10 ++++++----
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/net-analyzer/wireshark/wireshark-4.4.0.ebuild 
b/net-analyzer/wireshark/wireshark-4.4.0.ebuild
index f82761643441..10ae13f0a233 100644
--- a/net-analyzer/wireshark/wireshark-4.4.0.ebuild
+++ b/net-analyzer/wireshark/wireshark-4.4.0.ebuild
@@ -266,10 +266,10 @@ src_install() {
        # 
https://gitlab.com/wireshark/wireshark/-/commit/fe7bfdf6caac9204ab5f34eeba7b0f4a0314d3cd
        cmake_src_install install-headers
 
-       # prepare Relase Notes redirector if necessary (bug #939195)
-       local relnotes="doc/release-notes.html"
-
        if ! use doc; then
+               # prepare Relase Notes redirector (bug #939195)
+               local relnotes="doc/release-notes.html"
+
                # by default create a link for our specific version
                local relversion="wireshark-${PV}.html"
 
@@ -278,11 +278,13 @@ src_install() {
                        relversion=""
                fi
 
+               # patch version into redirector & install it
                sed -e "s/#VERSION#/${relversion}/g" < 
"${FILESDIR}/release-notes.html" > ${relnotes} || die
+               dodoc ${relnotes}
        fi
 
        # FAQ is not required as is installed from help/faq.txt
-       dodoc AUTHORS ChangeLog README* doc/randpkt.txt doc/README* ${relnotes}
+       dodoc AUTHORS ChangeLog README* doc/randpkt.txt doc/README*
 
        # install headers
        insinto /usr/include/wireshark

diff --git a/net-analyzer/wireshark/wireshark-9999.ebuild 
b/net-analyzer/wireshark/wireshark-9999.ebuild
index 8e531a1680b6..5c5d9c7af028 100644
--- a/net-analyzer/wireshark/wireshark-9999.ebuild
+++ b/net-analyzer/wireshark/wireshark-9999.ebuild
@@ -264,10 +264,10 @@ src_install() {
        # 
https://gitlab.com/wireshark/wireshark/-/commit/fe7bfdf6caac9204ab5f34eeba7b0f4a0314d3cd
        cmake_src_install install-headers
 
-       # prepare Relase Notes redirector if necessary (bug #939195)
-       local relnotes="doc/release-notes.html"
-
        if ! use doc; then
+               # prepare Relase Notes redirector (bug #939195)
+               local relnotes="doc/release-notes.html"
+
                # by default create a link for our specific version
                local relversion="wireshark-${PV}.html"
 
@@ -276,11 +276,13 @@ src_install() {
                        relversion=""
                fi
 
+               # patch version into redirector & install it
                sed -e "s/#VERSION#/${relversion}/g" < 
"${FILESDIR}/release-notes.html" > ${relnotes} || die
+               dodoc ${relnotes}
        fi
 
        # FAQ is not required as is installed from help/faq.txt
-       dodoc AUTHORS ChangeLog README* doc/randpkt.txt doc/README* ${relnotes}
+       dodoc AUTHORS ChangeLog README* doc/randpkt.txt doc/README*
 
        # install headers
        insinto /usr/include/wireshark

Reply via email to