dev-libs/xqilla - 2.3.4 (guru)

Search

Install

Install this version:

emerge -a =dev-libs/xqilla-2.3.4

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

autounmask =dev-libs/xqilla-2.3.4

Or alternatively:

emerge --autounmask-write -a =dev-libs/xqilla-2.3.4

Package Information

Description:
An XQuery and XPath 2 library and command line utility written in C++
Homepage:
https://sourceforge.net/projects/xqilla/
License:
Apache-2.0

Ebuild Details

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

EAPI=8

inherit flag-o-matic

DESCRIPTION="An XQuery and XPath 2 library and command line utility written in C++"
HOMEPAGE="https://sourceforge.net/projects/xqilla/"
SRC_URI="https://downloads.sourceforge.net/${PN}/XQilla-${PV}.tar.gz"

S="${WORKDIR}/XQilla-${PV}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="static-libs tidy"

DEPEND="
	>=dev-libs/xerces-c-3.2.1
	net-libs/libnsl:=
	tidy? ( app-text/htmltidy:= )
"
RDEPEND="${DEPEND}"

PATCHES=( "${FILESDIR}"/lib_to_lib64.patch )

src_prepare() {
	append-cxxflags -std=c++14
	default
	sed  -i 's/buffio.h/tidybuffio.h/g' src/functions/FunctionParseHTML.cpp || die
}
src_configure() {
	econf $(use_enable static-libs static) \
	--with-tidy=$(usex tidy /usr no) \
	--with-xerces=/usr
}

src_compile() {
	emake "LDFLAGS=${LDFLAGS} -lxerces-c -lnsl -lpthread $(usex tidy -ltidy '')"
}

src_install() {
	emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
	if ! use static-libs; then
		find "${ED}" -type f -iname '*.la' -delete || die
	fi
	einstalldocs
	dodoc LICENSE
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	>=dev-libs/xerces-c-3.2.1
	net-libs/libnsl:=
	tidy? ( app-text/htmltidy:= )

RDEPEND

	>=dev-libs/xerces-c-3.2.1
	net-libs/libnsl:=
	tidy? ( app-text/htmltidy:= )

Manifest for 2.3.4

Type File Size Source URLs
DIST XQilla-2.3.4.tar.gz 15439591 bytes https://downloads.sourceforge.net/xqilla/XQilla-2.3.4.tar.gz