dev-libs/libstudxml - 9999 (nest)

Search

Install

Install this version:

emerge -a =dev-libs/libstudxml-9999

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

autounmask =dev-libs/libstudxml-9999

Or alternatively:

emerge --autounmask-write -a =dev-libs/libstudxml-9999

Package Information

Description:
Streaming XML pull parser and streaming XML serializer
Homepage:
https://codesynthesis.com/projects/libstudxml/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit edo git-r3 multiprocessing toolchain-funcs

DESCRIPTION="Streaming XML pull parser and streaming XML serializer"
HOMEPAGE="https://codesynthesis.com/projects/libstudxml/"
EGIT_REPO_URI="https://github.com/codesynthesis-com/${PN}.git"

LICENSE="MIT"
SLOT="0"
IUSE="expat static-libs test"
RESTRICT="!test? ( test )"

DEPEND="expat? ( dev-libs/expat )"
RDEPEND="${DEPEND}"
BDEPEND="dev-build/build2
	virtual/pkgconfig"

src_configure() {
	local myconfigargs=(
		config.bin.ar="$(tc-getAR)"
		config.bin.lib="$(usex static-libs both shared)"
		config.bin.ranlib="$(tc-getRANLIB)"
		config.cxx="$(tc-getCXX)"
		config.cxx.coptions="${CXXFLAGS}"
		config.cxx.loptions="${LDFLAGS}"
		config.libstudxml.external_expat="$(usex expat true false)"
	)

	MAKE=b MAKEOPTS="-j $(makeopts_jobs) -V" \
		emake "${myconfigargs[@]}" configure
}

src_compile() {
	MAKE=b MAKEOPTS="-j $(makeopts_jobs) -V" emake update-for-install
	use test && MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" emake update-for-test
}

src_test() {
	MAKE=b MAKEOPTS="-j $(makeopts_jobs) -V" emake test
}

src_install() {
	local myconfigargs=(
		config.install.chroot="${ED}"
		config.install.doc="${EPREFIX}"/usr/share/doc/"${PF}"
		config.install.filter="manifest@false LICENSE@false EXPAT-LICENSE@false GENX-LICENSE@false"
		config.install.lib="${EPREFIX}"/usr/"$(get_libdir)"
		config.install.root="${EPREFIX}"/usr
	)

	MAKE=b MAKEOPTS="-j $(makeopts_jobs) -V" \
		emake "${myconfigargs[@]}" install

	edo mkdir -p "${ED}"/usr/share/doc/"${PF}"/html
	edo mv -f "${ED}"/usr/share/doc/"${PF}"/{*.{xhtml,css},html}
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

edo

Dependencies

DEPEND

expat? ( dev-libs/expat )

RDEPEND

expat? ( dev-libs/expat )

BDEPEND

dev-build/build2
	virtual/pkgconfig