mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
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 <bacs@librecast.net> Part-of: https://codeberg.org/gentoo/gentoo/pulls/564 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
c130510657
commit
3a62d5e16f
@@ -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
|
||||
|
||||
58
net-libs/libnxml/libnxml-0.18.5.ebuild
Normal file
58
net-libs/libnxml/libnxml-0.18.5.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user