dev-java/xmldb: EAPI 6 bump.
authorPatrice Clement <monsieurp@gentoo.org>
Fri, 17 Mar 2017 21:53:28 +0000 (22:53 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 17 Mar 2017 22:58:16 +0000 (23:58 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-java/xmldb/files/xmldb-20011111-enum.patch [new file with mode: 0644]
dev-java/xmldb/files/xmldb-20011111-unreachable.patch
dev-java/xmldb/xmldb-20011111-r2.ebuild [new file with mode: 0644]

diff --git a/dev-java/xmldb/files/xmldb-20011111-enum.patch b/dev-java/xmldb/files/xmldb-20011111-enum.patch
new file mode 100644 (file)
index 0000000..33a4b22
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/org/xmldb/api/sdk/modules/SetContentHandler.java 2017-03-17 21:49:05.540172602 +0000
++++ b/org/xmldb/api/sdk/modules/SetContentHandler.java 2017-03-17 21:49:22.860172942 +0000
+@@ -168,9 +168,9 @@
+          }
+       }
+
+-      Enumeration enum = namespaces.keys();
+-      while ( enum.hasMoreElements() ) {
+-         String key = (String) enum.nextElement();
++      Enumeration myEnum = namespaces.keys();
++      while ( myEnum.hasMoreElements() ) {
++         String key = (String) myEnum.nextElement();
+          newContent.append(" xmlns");
+          if (key.length() > 0) {
+             newContent.append(":");
index 3e081e6e2d474c6632a38419f59466b93bac6427..a0476158c550a881e5ca7f7d4e13ea2ff0f256f2 100644 (file)
@@ -1,6 +1,5 @@
-diff -ru xmldb/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java xmldb-patched/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java
---- xmldb/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java   2002-01-30 04:46:43.000000000 -0500
-+++ xmldb/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java   2005-06-26 21:37:59.000000000 -0400
+--- a/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java       2002-01-30 04:46:43.000000000 -0500
++++ b/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java       2005-06-26 21:37:59.000000000 -0400
 @@ -133,7 +133,7 @@
           }
        }
diff --git a/dev-java/xmldb/xmldb-20011111-r2.ebuild b/dev-java/xmldb/xmldb-20011111-r2.ebuild
new file mode 100644 (file)
index 0000000..0e7e984
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+MY_PN="${PN}-api"
+MY_PV="11112001"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="XML:DB Java library"
+HOMEPAGE="https://sourceforge.net/projects/xmldb-org/"
+SRC_URI="mirror://sourceforge/xmldb-org/${MY_P}.tar.gz"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+
+CDEPEND="
+       dev-java/xalan:0
+       dev-java/xerces:2"
+
+DEPEND="
+       ${CDEPEND}
+       >=virtual/jdk-1.6"
+
+RDEPEND="
+       ${CDEPEND}
+       >=virtual/jre-1.6"
+
+S="${WORKDIR}/${PN}"
+
+JAVA_GENTOO_CLASSPATH="
+       xalan
+       xerces-2
+"
+
+PATCHES=(
+       "${FILESDIR}/${P}-enum.patch"
+       "${FILESDIR}/${P}-unreachable.patch"
+)
+
+src_prepare() {
+       default
+       java-pkg_clean
+       # Must hard-depend on dev-java/junit otherwise.
+       rm -rv org/xmldb/api/tests || die
+}