summaryrefslogtreecommitdiff
path: root/app-text/libxmlpatch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/libxmlpatch
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/libxmlpatch')
-rw-r--r--app-text/libxmlpatch/Manifest6
-rw-r--r--app-text/libxmlpatch/files/libxmlpatch-0.3.3-gentoo.patch56
-rw-r--r--app-text/libxmlpatch/libxmlpatch-0.3.3.ebuild40
-rw-r--r--app-text/libxmlpatch/metadata.xml8
4 files changed, 110 insertions, 0 deletions
diff --git a/app-text/libxmlpatch/Manifest b/app-text/libxmlpatch/Manifest
new file mode 100644
index 000000000000..3cdebb75c136
--- /dev/null
+++ b/app-text/libxmlpatch/Manifest
@@ -0,0 +1,6 @@
+AUX libxmlpatch-0.3.3-gentoo.patch 2029 SHA256 a11868632dfa5e1f91766ebddb0ef0ab3e9454212d8a16dedb05c62d98ee98f6 SHA512 076f5ce303fa410ed48828bfd4c9544d4606511597bf39676a899fb577bc4670db83706ef05928d9e49a665089864d6fb2e22321c19217ed341265d57d2c4052 WHIRLPOOL 58585560c12478452b3461a8f0f870914bc77f25a6e5cdf4de08337a48aba063ea0e19a41333da37f530a7f3df52059f0921c44ad464725df3a1b2e8531a7337
+DIST libxmlpatch-0.3.3.tar.gz 405496 SHA256 7236eec7bc450580c99c2d465ce2573687bb0229aa469e961bcbb0ffcb029d55 SHA512 2eb305ddd6aa1778bc9c9e7b8cae5f82ee05c0ed0a47bbb651209c496fff68f4e527b7d6ad1808bc8bf1f72aaa0172a12ddb140622ce87e3cd150a0ec4d35571 WHIRLPOOL 4a65435573490a7d07279ee7d7c6701ba3942c7b2340523af91481d46a1dbd4131cf19ccdcb6be0506735fe260be93e772839808b6c455781d81b8f79ec65def
+EBUILD libxmlpatch-0.3.3.ebuild 772 SHA256 68e97786dfd96862a879e02dd79b4586401c0b3f61346c308277a5c29d5a5a46 SHA512 9087aa0c074e6c7b11b58bd02a6f8c19ba8d8c6730712a3157808de30b4064956caa862bdf31a7127b7772b6b7deef46597aa3d63cd197a0579bd9694a283f02 WHIRLPOOL 8e802e36934e387221fb61ecaab3538cb72ed9cd2b9bd11d9cbad73c6278fb76cf4bca72109e92499180f7ee1823e721f0c073e678dbcc352ff83a229b5f943e
+MISC ChangeLog 2575 SHA256 19bd93d3c30107e6efab6a7741dbf3113d413d3b87d67cbcaea1f5389aefd5fe SHA512 c2e4747ea4475051f61e22329e64e806345daefa629ed81997ec4650754b7701f638d7e366746aae5830a0211478c83c5466c61be16524fe6d6ff47823b2f376 WHIRLPOOL 48fa6b226116e503627752f2b847d069b6a9c3ecb744283e8f2328c091cca02e829bc43cda764eb72fc6f02a8fcfb8d6268ce508028886c00911b98599e2c6d2
+MISC ChangeLog-2015 1444 SHA256 245c758a82358c7e2ad49bbd960247688689a4c2825bfdac405ba87dc95fc5db SHA512 57bd4c363588813f498901b0631e8e1888016d03f19341dff631044eb069049c148a480951cf0e5930a685d4010779a546b39da202045542b94b1f3cff7b63e5 WHIRLPOOL 386e8debb84afc02fb7a3338301427d325eff82b270ba3d83985028742a0f80ee6de594e41e06da83972d9d14523cff6cae9ad4fe1efaef16066711e733b3e2a
+MISC metadata.xml 245 SHA256 dc8bb5c266f6f92e80973b0def2a91c2b7a9532cb70f52a49981492514757907 SHA512 f884111cb1a85bb4e909b8bc6a70ca00e8d69e066fc9ef79ddbf0b3fc277bc8a47ce13bc1b7bd03a4be9bc0a54704440552394f1d1a8c68d0bf9704b8f05769f WHIRLPOOL 6cb421f48de37f0c9087dd982ecf9881a7366ef65a5e8d430206e1c4602ba1edd5b8937bbbd7b403d60ac104f7f7c2ef1362ea2ad28a924532bbc709ef60e78a
diff --git a/app-text/libxmlpatch/files/libxmlpatch-0.3.3-gentoo.patch b/app-text/libxmlpatch/files/libxmlpatch-0.3.3-gentoo.patch
new file mode 100644
index 000000000000..a18104fb12b5
--- /dev/null
+++ b/app-text/libxmlpatch/files/libxmlpatch-0.3.3-gentoo.patch
@@ -0,0 +1,56 @@
+Index: libxmlpatch-0.3.3/tests/check_diff.c
+===================================================================
+--- libxmlpatch-0.3.3.orig/tests/check_diff.c
++++ libxmlpatch-0.3.3/tests/check_diff.c
+@@ -259,7 +259,13 @@ static struct {
+ static void
+ add_test (TCase *tc, int i)
+ {
+- _tcase_add_test (tc, arr_tests[i].fn, arr_tests[i].name, 0, 0, 1);
++ _tcase_add_test (tc, arr_tests[i].fn, arr_tests[i].name,
++#if CHECK_MAJOR_VERSION > 0 || \
++ (CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION > 9) || \
++ (CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION == 9 && CHECK_MICRO_VERSION >= 7)
++ 0,
++#endif
++ 0, 0, 1);
+ }
+
+ static void
+Index: libxmlpatch-0.3.3/configure.in
+===================================================================
+--- libxmlpatch-0.3.3.orig/configure.in
++++ libxmlpatch-0.3.3/configure.in
+@@ -74,7 +74,13 @@ fi
+
+ PKG_CHECK_MODULES(DEPS_XML, libxml-2.0)
+ PKG_CHECK_MODULES(DEPS_GLIB, glib-2.0)
+-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
++
++AC_ARG_WITH([check],
++ AS_HELP_STRING([--without-check], [Do not build tests based on check package @<:@default=auto@:>@]))
++AS_IF([test "x$with_check" != "xno"], [
++PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], , [with_check=no])
++])
++AM_CONDITIONAL([TESTS], [test "x$with_check" != "xno"])
+
+ AC_SUBST(DEPS_XML_CFLAGS)
+ AC_SUBST(DEPS_XML_LIBS)
+Index: libxmlpatch-0.3.3/tests/Makefile.am
+===================================================================
+--- libxmlpatch-0.3.3.orig/tests/Makefile.am
++++ libxmlpatch-0.3.3/tests/Makefile.am
+@@ -1,10 +1,11 @@
++if TESTS
+ TESTS = test-diff
++check_PROGRAMS = test-diff
++endif
+
+-test_PROGRAMS = test-diff
+ test_diff_SOURCES = check_diff.c
+ test_diff_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/diff @CHECK_CFLAGS@ $(DEPS_XML_CFLAGS) $(DEPS_GLIB_CFLAGS)
+ test_diff_LDADD = @CHECK_LIBS@ $(top_builddir)/src/libxmlpatch.la $(top_builddir)/diff/libxmldiff.la $(DEPS_XML_LIBS) $(DEPS_GLIB_LIBS)
+-testdir = $(libdir)/tests/xml_diff
+
+ bin_PROGRAMS = xml_patch xml_diff
+
diff --git a/app-text/libxmlpatch/libxmlpatch-0.3.3.ebuild b/app-text/libxmlpatch/libxmlpatch-0.3.3.ebuild
new file mode 100644
index 000000000000..f5697fc876de
--- /dev/null
+++ b/app-text/libxmlpatch/libxmlpatch-0.3.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils autotools
+
+DESCRIPTION="A set of tools to create and apply patch to XML files using XPath"
+HOMEPAGE="http://xmlpatch.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN/lib}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test static-libs"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/libxml2"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/check )
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with test check)
+}
+
+DOCS=( LEGAL_NOTICE README TODO ChangeLog )
+
+src_install() {
+ default
+
+ find "${D}" -name '*.la' -delete
+}
diff --git a/app-text/libxmlpatch/metadata.xml b/app-text/libxmlpatch/metadata.xml
new file mode 100644
index 000000000000..ddc9bcf76f3d
--- /dev/null
+++ b/app-text/libxmlpatch/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">xmlpatch</remote-id>
+ </upstream>
+</pkgmetadata>