net-libs/libnxml - 0.18.5 (gentoo)

Search

Install

Install this version:

emerge -a =net-libs/libnxml-0.18.5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-libs/libnxml-0.18.5

Or alternatively:

emerge --autounmask-write -a =net-libs/libnxml-0.18.5

Package Information

Description:
A C-library for parsing and writing XML 1.0/1.1 files or streams
Homepage:
https://www.autistici.org/bakunin/libnxml/doc/
License:
LGPL-2.1+

Ebuild Details

Version EAPI Keywords Slot
0.18.5 9 ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86 0
View Raw Ebuild
# 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[dot] )"

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
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-libs/libnxml | euse -E <flag> -p net-libs/libnxml | euse -D <flag> -p net-libs/libnxml

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

net-misc/curl

RDEPEND

net-misc/curl

BDEPEND

doc? ( app-text/doxygen[dot] )

Manifest for 0.18.5

Type File Size Source URLs
DIST libnxml-0.18.5.tar.gz 37357 bytes https://github.com/bakulf/libnxml/archive/refs/tags/0.18.5.tar.gz