mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
dev-libs/xqilla: respect user LDFLAGS
Closes: https://bugs.gentoo.org/780945 Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ 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}
|
||||
S="${WORKDIR}/XQilla-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
@@ -31,3 +31,16 @@ src_configure() {
|
||||
--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
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2024 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="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 tidy? ( app-text/htmltidy )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/lib_to_lib64.patch
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user