From 3a62d5e16fb9005cec61e1826452d5eca0ae4d3a Mon Sep 17 00:00:00 2001 From: Brett A C Sheffield Date: Wed, 8 Apr 2026 20:55:10 +0200 Subject: [PATCH] net-libs/libnxml: add 0.18.5 Disabled "easy" test, as this requires network access. The test hasn't changed, but under 0.18.3 tests were compiled but not actually executed. The other two tests now run and pass. Signed-off-by: Brett A C Sheffield Part-of: https://codeberg.org/gentoo/gentoo/pulls/564 Signed-off-by: Sam James --- net-libs/libnxml/Manifest | 1 + net-libs/libnxml/libnxml-0.18.5.ebuild | 58 ++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 net-libs/libnxml/libnxml-0.18.5.ebuild diff --git a/net-libs/libnxml/Manifest b/net-libs/libnxml/Manifest index 3957d8ddab7ba..8476c4d83a960 100644 --- a/net-libs/libnxml/Manifest +++ b/net-libs/libnxml/Manifest @@ -1 +1,2 @@ DIST libnxml-0.18.3.tar.gz 361977 BLAKE2B babe5773f102889d52d0d63511984201e220205925b703221559cf73c8e380b78b3788ff48bdc2da382746bb95acf4c9a70c69d689c4fd7db3be4bd65f44000d SHA512 fc420a4b773eca68608ac1d509930a0528c3a41b53fc7cc340c09fd53f92a88afb4091e810d97d59e73a8beeaaeed52dd3c880273ef512a5305800b3ef46717a +DIST libnxml-0.18.5.tar.gz 37357 BLAKE2B cc8a7fe54b19c5cfdda3f1fcb87cce201afc0cdc0389da31f2cb920ea01a8d14aadaf1b64d8faacb5559d5483571524a988e33947b05ab66ebae9be3283e19fa SHA512 438f6560ecc33105a88a09d30f052cd29ae40880b50fb05cb86dda689069e51250a246329cab75972f85ab97c06d7d7a3bdc385d9ffe9bd05614fe29fe8d326e diff --git a/net-libs/libnxml/libnxml-0.18.5.ebuild b/net-libs/libnxml/libnxml-0.18.5.ebuild new file mode 100644 index 0000000000000..8aa9540e50e0e --- /dev/null +++ b/net-libs/libnxml/libnxml-0.18.5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=9 + +inherit autotools + +DESCRIPTION="A C-library for parsing and writing XML 1.0/1.1 files or streams" +HOMEPAGE="https://www.autistici.org/bakunin/libnxml/doc/" +SRC_URI="https://github.com/bakulf/libnxml/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc examples" + +RDEPEND="net-misc/curl" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-text/doxygen )" + +src_prepare() { + default + eautoreconf + + # Fix lib dir in installed pkgconfig file + sed -i -e "s:\${exec_prefix}/lib:\${exec_prefix}/$(get_libdir):" nxml.pc.in \ + || die "Failed to correct pkgconfig file" +} + +src_configure() { + econf --disable-static + sed -i -e 's/easy$(EXEEXT)//' test/Makefile || die # disable network test +} + +src_compile() { + default + + if use doc; then + ebegin "Creating documentation" + doxygen doxy.conf || die "generating docs failed" + # clean out doxygen gunk + rm doc/html/*.{md5,map} || die + HTML_DOCS=( doc/html/. ) + eend 0 + fi +} + +src_install() { + default + + if use examples; then + docinto test + dodoc test/*.c + fi + + # no static archives + find "${D}" -name '*.la' -delete || die +}