summaryrefslogtreecommitdiff
path: root/dev-libs/xqilla
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/xqilla')
-rw-r--r--dev-libs/xqilla/Manifest4
-rw-r--r--dev-libs/xqilla/files/2.2.4-respect-ldflags-no-rpath.patch13
-rw-r--r--dev-libs/xqilla/metadata.xml17
-rw-r--r--dev-libs/xqilla/xqilla-2.3.3.ebuild71
4 files changed, 105 insertions, 0 deletions
diff --git a/dev-libs/xqilla/Manifest b/dev-libs/xqilla/Manifest
new file mode 100644
index 000000000000..b66a7cd6eca2
--- /dev/null
+++ b/dev-libs/xqilla/Manifest
@@ -0,0 +1,4 @@
+AUX 2.2.4-respect-ldflags-no-rpath.patch 561 BLAKE2B 120d733034c7bc75c0256aee0ef4b9e6fa8586a617c3cefe28486b20b107a13027c724a1ec8fde8c789978add1d1504f42ebe173c8de9993ea9c09f47633da8f SHA512 0637f0cae147c2cc90c29c392ee15d4a417efb759c35344e8fff53af670fbee22c273c27a9268eafad20b5042def7741bb4d9e6f3a8adc275cc72b9f2ec46961
+DIST XQilla-2.3.3.tar.gz 16170903 BLAKE2B fb88f507e77a248009a4eabb74e923849e55e4d3e716e95e0c25fc115aa9f72994b0e6dd1332529531bc59c34773e6a58ab1cd4459f19109da2dc8a348261ea2 SHA512 5a27416eaf1d7120c42dbd5c737e112954d4e3782de5ff4c77e29f1bcd1a5712cdc5a76f707d9c3323526a361e46df98d8ee1ca87c760d389d85598a8265054f
+EBUILD xqilla-2.3.3.ebuild 1535 BLAKE2B a3f7685f91206905fadfe5e7de1e2fd786331fca57a14aad699fe0f5016b3c660c3f7e1856da1c9634dc482ad8d084d3ea52cd40b1ec074eb719313911f31e21 SHA512 c177c423ad858135e1ccdd3d038b2f9adf9a7b713daa3a0eddba00534f4e9f28b7c0a32167ac8bd6f48c241bde7328a2d70db43fbfdc7bfde531703301b41b86
+MISC metadata.xml 524 BLAKE2B fc26b7b18e80c6d0baba1a686bb58fa496e35f24a1eadb742cc36e7d7250eb08bf059d731d87daccebc22bc6d28cc21be04f02c458c1639a4849ff1ee44ad56a SHA512 44524db6364ea57d9bcb7e7296bb441e8c526975f229c815fbb44fdfde5163a9713aaf825b1e9e48d7d1e37e6a8478834a1b67de2c8dfe2d86e83f5d026b211d
diff --git a/dev-libs/xqilla/files/2.2.4-respect-ldflags-no-rpath.patch b/dev-libs/xqilla/files/2.2.4-respect-ldflags-no-rpath.patch
new file mode 100644
index 000000000000..5188617c2585
--- /dev/null
+++ b/dev-libs/xqilla/files/2.2.4-respect-ldflags-no-rpath.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.am b/Makefile.am
+index 1c08992..ffeb840 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = foreign dist-zip
+ SUBDIRS = include
+
+ INCLUDES = -I$(top_srcdir)/include/ $(xerces_include) -I$(top_srcdir)/src/lexer/ $(faxpp_include) $(tidy_include)
+-LDFLAGS = -L$(xerces_lib) -R$(xerces_lib) $(faxpp_lib) $(tidy_lib) -lxerces-c $(faxpp_library) $(tidy_library)
++LDFLAGS += -L$(xerces_lib) $(faxpp_lib) $(tidy_lib) -lxerces-c $(faxpp_library) $(tidy_library)
+ LDADD = libxqilla.la
+ ACLOCAL_AMFLAGS = -I autotools/m4
+
diff --git a/dev-libs/xqilla/metadata.xml b/dev-libs/xqilla/metadata.xml
new file mode 100644
index 000000000000..369eb4264df2
--- /dev/null
+++ b/dev-libs/xqilla/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cpp@gentoo.org</email>
+ <name>Gentoo C++ Project</name>
+ </maintainer>
+ <use>
+ <flag name="faxpp">Use <pkg>dev-libs/faxpp</pkg> instead of Xerces-C for
+ certain tasks</flag>
+ <flag name="htmltidy">Use <pkg>app-text/htmltidy</pkg> when parsing
+ HTML</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">xqilla</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/xqilla/xqilla-2.3.3.ebuild b/dev-libs/xqilla/xqilla-2.3.3.ebuild
new file mode 100644
index 000000000000..9bb6b940e423
--- /dev/null
+++ b/dev-libs/xqilla/xqilla-2.3.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_P="XQilla-${PV}"
+
+DESCRIPTION="An XQuery and XPath 2 library and command line utility written in C++"
+HOMEPAGE="http://xqilla.sourceforge.net/HomePage"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+LICENSE="Apache-2.0 BSD"
+SLOT="0/3"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc examples faxpp htmltidy static-libs"
+
+# XQilla bundles two libraries:
+# - mapm, heavily patched
+# - yajl, moderately patched
+# There's currently no way to unbundle those
+
+RDEPEND=">=dev-libs/xerces-c-3.1.1
+ faxpp? ( dev-libs/faxpp )
+ htmltidy? ( app-text/htmltidy )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+PATCHES=(
+ "${FILESDIR}/2.2.4-respect-ldflags-no-rpath.patch"
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-xerces="${EPREFIX}"/usr \
+ $(use_enable debug) \
+ $(use_with htmltidy tidy /usr) \
+ $(use_with faxpp faxpp /usr) \
+ $(use_enable static-libs static)
+}
+
+src_compile() {
+ default
+ use doc && emake docs devdocs
+}
+
+src_install () {
+ use doc && HTML_DOCS=( docs/{dev-api,dom3-api,simple-api} )
+ default
+
+ if ! use static-libs; then
+ find "${D}" -name '*.la' -delete || die
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc -r "${S}"/src/samples/.
+ fi
+
+ # remove unnecessary files previously filtered by dohtml
+ find "${ED%/}/usr/share/doc/${PF}" \
+ \( -name '*.map' -o -name '*.md5' \) -delete || die
+}