aboutsummaryrefslogtreecommitdiff
blob: 19d055d931b969414cb7db2843c250b4ae622168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

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

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

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

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

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

src_prepare() {
	eapply -p1 "${FILESDIR}/lib_to_lib64.patch"
	eapply_user
	sed  -i 's/buffio.h/tidybuffio.h/g' src/functions/FunctionParseHTML.cpp || die "sed failed"
}
src_configure() {
	econf $(use_enable static-libs static) \
	--with-tidy=$(usex tidy /usr no) \
	--with-xerces=/usr
}