diff options
| author | Petr Vaněk <arkamar@gentoo.org> | 2025-07-26 09:06:22 +0200 |
|---|---|---|
| committer | Petr Vaněk <arkamar@gentoo.org> | 2025-07-26 09:12:35 +0200 |
| commit | 330558500a2af678ee0f015242946df0a17c485d (patch) | |
| tree | 11eac18ff9e667d82f61478368346d243f454ab2 /app-text/html-xml-utils/html-xml-utils-8.7-r1.ebuild | |
| parent | 4ea7ed5ab50d5e6c669c136833a2f308b03fbd38 (diff) | |
| download | gentoo-330558500a2af678ee0f015242946df0a17c485d.tar.gz gentoo-330558500a2af678ee0f015242946df0a17c485d.tar.bz2 gentoo-330558500a2af678ee0f015242946df0a17c485d.zip | |
app-text/html-xml-utils: fix c23 compilation issue
The previous declaration issue produced with a modern C compilers is
fixed with the patch taken from openSUSE.
Link: https://build.opensuse.org/projects/openSUSE:Factory/packages/html-xml-utils/files/fix-dtd-declaration.patch?rev=ea956870c438d781dcc28522afb4abf9
Closes: https://bugs.gentoo.org/944756
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'app-text/html-xml-utils/html-xml-utils-8.7-r1.ebuild')
| -rw-r--r-- | app-text/html-xml-utils/html-xml-utils-8.7-r1.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app-text/html-xml-utils/html-xml-utils-8.7-r1.ebuild b/app-text/html-xml-utils/html-xml-utils-8.7-r1.ebuild new file mode 100644 index 000000000000..b082aec1b5b9 --- /dev/null +++ b/app-text/html-xml-utils/html-xml-utils-8.7-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A number of simple utilities for manipulating HTML and XML files" +HOMEPAGE="https://www.w3.org/Tools/HTML-XML-utils/" +SRC_URI="https://www.w3.org/Tools/HTML-XML-utils/${P}.tar.gz" + +LICENSE="W3C" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-linux ~ppc-macos" + +RDEPEND=" + net-dns/libidn2:= + net-misc/curl +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-fix-dtd-declaration.patch" +) + +src_prepare() { + default + sed -e "/doc_DATA = COPYING/d" -i Makefile.in || die +} + +src_test() { + # Lots of tests lack a shebang and use bashisms + # (seems to be better wrt bashisms as of 8.6, but still no shebang. recheck?) + # (as of 8.7 4 tests fail with app-shells/dash) + emake check SHELL="${BROOT}"/bin/bash +} |
