From b9ef3192bb1a6bdbb78d08027a19bd824f0c8906 Mon Sep 17 00:00:00 2001 From: Michele Santullo Date: Tue, 5 May 2020 19:27:51 +0200 Subject: [PATCH] dev-libs/xqilla: adding package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Michele Santullo --- dev-libs/xqilla/Manifest | 1 + dev-libs/xqilla/files/lib_to_lib64.patch | 13 +++++++++++ dev-libs/xqilla/metadata.xml | 15 ++++++++++++ dev-libs/xqilla/xqilla-2.3.4.ebuild | 29 ++++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 dev-libs/xqilla/Manifest create mode 100644 dev-libs/xqilla/files/lib_to_lib64.patch create mode 100644 dev-libs/xqilla/metadata.xml create mode 100644 dev-libs/xqilla/xqilla-2.3.4.ebuild diff --git a/dev-libs/xqilla/Manifest b/dev-libs/xqilla/Manifest new file mode 100644 index 0000000000..3cdfbb2636 --- /dev/null +++ b/dev-libs/xqilla/Manifest @@ -0,0 +1 @@ +DIST XQilla-2.3.4.tar.gz 15439591 BLAKE2B 5ebb719823019552dd81f9bba7325e41626afaeca577f19c4b3ace04daf68fd4cfae2feb3bccffaad5fcb21bbce7acb32359613ea93ee33e97171dcdb1b5b53e SHA512 f744ff883675887494780d24ecdc94afa394d3795d1544b1c598016b3f936c340ad7cd84529ac12962e3c5ce2f1be928a0cd4f9b9eb70e6645a38b0728cb1994 diff --git a/dev-libs/xqilla/files/lib_to_lib64.patch b/dev-libs/xqilla/files/lib_to_lib64.patch new file mode 100644 index 0000000000..433ec9ddc1 --- /dev/null +++ b/dev-libs/xqilla/files/lib_to_lib64.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index 60b02f0..64e967b 100755 +--- a/configure ++++ b/configure +@@ -4155,7 +4155,7 @@ $as_echo "$with_tidy" >&6; } + if test "$with_tidy" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the HTML Tidy library is present" >&5 + $as_echo_n "checking if the HTML Tidy library is present... " >&6; } +- if test `ls $with_tidy/lib/libtidy.* 2>/dev/null | wc -l` -gt 0 ; then ++ if test `ls $with_tidy/lib64/libtidy.* 2>/dev/null | wc -l` -gt 0 ; then + if test `ls $with_tidy/include/tidy/tidy.h 2>/dev/null | wc -l` -gt 0 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } diff --git a/dev-libs/xqilla/metadata.xml b/dev-libs/xqilla/metadata.xml new file mode 100644 index 0000000000..cbb7f5ec80 --- /dev/null +++ b/dev-libs/xqilla/metadata.xml @@ -0,0 +1,15 @@ + + + + + m.santullo@posteo.net + Michele Santullo + + + https://sourceforge.net/p/xqilla/bugs/ + xqilla + + + Add Tidy-HTML5 support + + diff --git a/dev-libs/xqilla/xqilla-2.3.4.ebuild b/dev-libs/xqilla/xqilla-2.3.4.ebuild new file mode 100644 index 0000000000..8892c7f8c3 --- /dev/null +++ b/dev-libs/xqilla/xqilla-2.3.4.ebuild @@ -0,0 +1,29 @@ +# Copyright 2020 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="http://xqilla.sourceforge.net/HomePage" +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/tidy-html5 )" +RDEPEND="${DEPEND}" +BDEPEND="" + +PATCHES=( + "${FILESDIR}"/lib_to_lib64.patch +) + +S="${WORKDIR}"/XQilla-${PV} + +src_configure() { + econf $(use_enable static-libs static) \ + --with-tidy=$(usex tidy /usr no) \ + --with-xerces=/usr +}