dev-java/xmldb: EAPI 6 bump.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
Patrice Clement
2017-03-17 22:53:28 +01:00
parent 6c6f8e4971
commit b503c7fe5a
3 changed files with 68 additions and 3 deletions

View File

@@ -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(":");

View 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 @@
}
}

View File

@@ -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
}