summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/xmlstarlet')
-rw-r--r--app-text/xmlstarlet/Manifest3
-rw-r--r--app-text/xmlstarlet/files/xmlstarlet-1.0.6-setmode.patch50
-rw-r--r--app-text/xmlstarlet/metadata.xml10
-rw-r--r--app-text/xmlstarlet/xmlstarlet-1.4.2.ebuild40
-rw-r--r--app-text/xmlstarlet/xmlstarlet-1.5.0.ebuild40
-rw-r--r--app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild40
6 files changed, 183 insertions, 0 deletions
diff --git a/app-text/xmlstarlet/Manifest b/app-text/xmlstarlet/Manifest
new file mode 100644
index 000000000000..a2789a1cb41f
--- /dev/null
+++ b/app-text/xmlstarlet/Manifest
@@ -0,0 +1,3 @@
+DIST xmlstarlet-1.4.2.tar.gz 407336 SHA256 e3d7dc273aa2e2516d3ae3fb6fcc0aba446f1a63ef944d52e01023b76cab9e5d SHA512 4e29825b503212d3dd436b892bdedd371af65dabbcdc1b0ff09dfe440fd3031c5c8c3a9b69903bd196c62ff944d9f91fe556354df6b90b990fbf6ad72be4ad33 WHIRLPOOL 05fe647cf14eebcd8c33bde5d7cfb116dcbdc2478b83fc88364cb720aceba9d871c49a7a04b3420ce4162b75c31f376fbffd6f42877d07a43aa3e4f0d51344cd
+DIST xmlstarlet-1.5.0.tar.gz 414036 SHA256 47b4ed042ea2909257f2a386001af49fceb303f84da7214779ccf99fffc6bbba SHA512 7f2626ae724d943c4809d9772c39dc36c7050fa105aa607d368d74491582551798750e15ff00bde6d8bf1b459543d68375e670d7c9c9eff43a117c1410226ec3 WHIRLPOOL ebd417e224a111a1c29df54a5b06cbe36ecff4947d7dffcd32fd879b8084e19d83131e23e035a2861830b0b7e4f0db333eed679891238faf06c7d02cafb95149
+DIST xmlstarlet-1.6.1.tar.gz 420923 SHA256 15d838c4f3375332fd95554619179b69e4ec91418a3a5296e7c631b7ed19e7ca SHA512 4228df812caec7059d7a76986c4d9a4262bd861cc53dca05f341ae6c062be05f1c39fc637918ab00f60f40587c6c556e3c9bfaf8a18b149e3c321a92214dbe8b WHIRLPOOL fdcb803de630d98e5dd81b8ea3656d170a7142fa8dba9c43a1102cd44840c381fd8a2ac968707c894db697af590df33bbf0fa24ee37f6a0c7f847c989a55df5d
diff --git a/app-text/xmlstarlet/files/xmlstarlet-1.0.6-setmode.patch b/app-text/xmlstarlet/files/xmlstarlet-1.0.6-setmode.patch
new file mode 100644
index 000000000000..034b732dbd29
--- /dev/null
+++ b/app-text/xmlstarlet/files/xmlstarlet-1.0.6-setmode.patch
@@ -0,0 +1,50 @@
+http://sourceforge.net/tracker/?func=detail&aid=3211822&group_id=66612&atid=515106
+http://xmlstar.git.sourceforge.net/git/gitweb.cgi?p=xmlstar/xmlstar;a=patch;h=5f2445dac0e2a255d89240ec919ecd753045cce5;hp=d0f9902aedc75cef168aa1a34593bc5b74e9669c
+
+
+From 5f2445dac0e2a255d89240ec919ecd753045cce5 Mon Sep 17 00:00:00 2001
+From: Noam Postavsky <npostavs@users.sourceforge.net>
+Date: Mon, 14 Mar 2011 18:13:37 -0400
+Subject: [PATCH 1/1] check that O_BINARY is declared before #include'ing io.h
+
+---
+ configure.ac | 3 ++-
+ src/xml_C14N.c | 6 +++---
+ 2 files changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index b9eb53d..5b2d3bc 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -109,7 +109,8 @@ AS_IF([test "x$STATIC_LIBS" != xno],
+
+ AC_CHECK_FUNCS_ONCE([lstat stat])
+
+-AC_CHECK_DECL([O_BINARY], [], [], [[
++AC_CHECK_DECL([O_BINARY], [AC_DEFINE([HAVE_DECL_O_BINARY],1,[have O_BINARY])],
++[AC_DEFINE([HAVE_DECL_O_BINARY],0,[don't have O_BINARY])], [[
+ #include <io.h>
+ #include <fcntl.h>
+ ]])
+diff --git a/src/xml_C14N.c b/src/xml_C14N.c
+index 3ef1a7c..115e2ce 100644
+--- a/src/xml_C14N.c
++++ b/src/xml_C14N.c
+@@ -20,11 +20,11 @@
+ #include <stdlib.h>
+ #endif
+
+-#if !HAVE_SETMODE
+-# define setmode(fd, mode)
+-#else
++#if HAVE_SETMODE && HAVE_DECL_O_BINARY
+ # include <io.h>
+ # include <fcntl.h>
++#else
++# define setmode(fd, mode)
+ #endif
+
+ #include <libxml/xmlmemory.h>
+--
+1.7.0.1
+
diff --git a/app-text/xmlstarlet/metadata.xml b/app-text/xmlstarlet/metadata.xml
new file mode 100644
index 000000000000..1c8bb75cf93a
--- /dev/null
+++ b/app-text/xmlstarlet/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>sping@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xmlstar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/xmlstarlet/xmlstarlet-1.4.2.ebuild b/app-text/xmlstarlet/xmlstarlet-1.4.2.ebuild
new file mode 100644
index 000000000000..06e6731711cf
--- /dev/null
+++ b/app-text/xmlstarlet/xmlstarlet-1.4.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="A set of tools to transform, query, validate, and edit XML documents"
+HOMEPAGE="http://xmlstar.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xmlstar/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=dev-libs/libxml2-2.6.27
+ >=dev-libs/libxslt-1.1.9
+ dev-libs/libgcrypt:0
+ virtual/libiconv"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed"
+
+src_configure() {
+ # NOTE: Fully built documentation is already shipped with the tarball:
+ # - doc/xmlstarlet-ug.{pdf,ps,html}
+ # - doc/xmlstarlet.txt
+ # - doc/xmlstarlet.1
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --disable-build-docs \
+ --disable-static-libs \
+ --disable-silent-rules
+}
+
+src_install() {
+ default
+
+ dosym xml /usr/bin/xmlstarlet
+}
diff --git a/app-text/xmlstarlet/xmlstarlet-1.5.0.ebuild b/app-text/xmlstarlet/xmlstarlet-1.5.0.ebuild
new file mode 100644
index 000000000000..06e6731711cf
--- /dev/null
+++ b/app-text/xmlstarlet/xmlstarlet-1.5.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="A set of tools to transform, query, validate, and edit XML documents"
+HOMEPAGE="http://xmlstar.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xmlstar/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=dev-libs/libxml2-2.6.27
+ >=dev-libs/libxslt-1.1.9
+ dev-libs/libgcrypt:0
+ virtual/libiconv"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed"
+
+src_configure() {
+ # NOTE: Fully built documentation is already shipped with the tarball:
+ # - doc/xmlstarlet-ug.{pdf,ps,html}
+ # - doc/xmlstarlet.txt
+ # - doc/xmlstarlet.1
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --disable-build-docs \
+ --disable-static-libs \
+ --disable-silent-rules
+}
+
+src_install() {
+ default
+
+ dosym xml /usr/bin/xmlstarlet
+}
diff --git a/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild b/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild
new file mode 100644
index 000000000000..fc508262feac
--- /dev/null
+++ b/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="A set of tools to transform, query, validate, and edit XML documents"
+HOMEPAGE="http://xmlstar.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xmlstar/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=dev-libs/libxml2-2.6.27
+ >=dev-libs/libxslt-1.1.9
+ dev-libs/libgcrypt:0
+ virtual/libiconv"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed"
+
+src_configure() {
+ # NOTE: Fully built documentation is already shipped with the tarball:
+ # - doc/xmlstarlet-ug.{pdf,ps,html}
+ # - doc/xmlstarlet.txt
+ # - doc/xmlstarlet.1
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --disable-build-docs \
+ --disable-static-libs \
+ --disable-silent-rules
+}
+
+src_install() {
+ default
+
+ dosym xml /usr/bin/xmlstarlet
+}