diff options
author | Holger Hoffstätte <holger@applied-asynchrony.com> | 2024-09-27 17:42:37 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-10-05 08:22:05 +0100 |
commit | 690de938f65c99ed989b56877bd2c983bf6adec1 (patch) | |
tree | a5db1610a5e0b6ed191550bda997542f8b716ce4 /net-analyzer/wireshark/wireshark-9999.ebuild | |
parent | dev-libs/xmlsec: add 1.3.5 (diff) | |
download | gentoo-690de938f65c99ed989b56877bd2c983bf6adec1.tar.gz gentoo-690de938f65c99ed989b56877bd2c983bf6adec1.tar.bz2 gentoo-690de938f65c99ed989b56877bd2c983bf6adec1.zip |
net-analyzer/wireshark: add 4.4.0, fix handling of release notes
Closes: https://bugs.gentoo.org/939195
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/wireshark/wireshark-9999.ebuild')
-rw-r--r-- | net-analyzer/wireshark/wireshark-9999.ebuild | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/net-analyzer/wireshark/wireshark-9999.ebuild b/net-analyzer/wireshark/wireshark-9999.ebuild index 1a49b2ff63b7..ec60ad18b9d9 100644 --- a/net-analyzer/wireshark/wireshark-9999.ebuild +++ b/net-analyzer/wireshark/wireshark-9999.ebuild @@ -3,8 +3,7 @@ EAPI=8 -LUA_COMPAT=( lua5-{1..2} ) -# TODO: check cmake/modules/UseAsn2Wrs.cmake for 3.12 +LUA_COMPAT=( lua5-{3..4} ) PYTHON_COMPAT=( python3_{10..13} ) inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg cmake @@ -284,8 +283,23 @@ 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 + # by default create a link for our specific version + local relversion="wireshark-${PV}.html" + + # for 9999 we link to the release notes index page + if [[ ${PV} == *9999* ]] ; then + relversion="" + fi + + sed -e "s/#VERSION#/${relversion}/g" < "${FILESDIR}/release-notes.html" > ${relnotes} || die + fi + # FAQ is not required as is installed from help/faq.txt - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* + dodoc AUTHORS ChangeLog README* doc/randpkt.txt doc/README* ${relnotes} # install headers insinto /usr/include/wireshark |