diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/nanoxml |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/nanoxml')
-rw-r--r-- | dev-java/nanoxml/Manifest | 7 | ||||
-rw-r--r-- | dev-java/nanoxml/files/nanoxml-2.2.3-enum.patch | 208 | ||||
-rw-r--r-- | dev-java/nanoxml/files/nanoxml-2.2.3-lite-enum.patch | 53 | ||||
-rw-r--r-- | dev-java/nanoxml/metadata.xml | 11 | ||||
-rw-r--r-- | dev-java/nanoxml/nanoxml-2.2.3-r3.ebuild | 47 |
5 files changed, 326 insertions, 0 deletions
diff --git a/dev-java/nanoxml/Manifest b/dev-java/nanoxml/Manifest new file mode 100644 index 000000000000..c1ebedb5c5b5 --- /dev/null +++ b/dev-java/nanoxml/Manifest @@ -0,0 +1,7 @@ +AUX nanoxml-2.2.3-enum.patch 9471 SHA256 43b10020a2058e4defa944157ec8c4d639d8b5d3bcdbc522d264a07f69dd3944 SHA512 9cb9f5d7482efb6f64f3c99a0b59e0820658b6eed8fbbb2e014ff08d8194942d51d64b6c1661d77774f8cb484f89b9f0bd096556c000df03ab9f0a5b21ed93f4 WHIRLPOOL 825c469ae868497da0d205c831949985b5c574093cf8dde317a887518cf31d4d9d28674f6b3cdb1205345c0e7067d5d0289b4948665ee32364639c97c1ab4f16 +AUX nanoxml-2.2.3-lite-enum.patch 2511 SHA256 8dd1e3f81d312046cb1748ba774c6985ad7e28864d76111ca06515317f999be4 SHA512 443c45e7c6995cf5cd957e379b56c8b8c6573bcbb3c6439ac9d9997107893b8400b669e9c32700ee2f2159e829be44579858c96f201d365ac6ea15238f0137ba WHIRLPOOL 0e51c0e86c47cb1b83aea967497ad0186d8206da2a6dde00b81e8735463cde626e92f4e72626857005878b983b014c52e95b2224da50bc9e4e6ee3e06417afca +DIST nanoxml-2.2.3.tar.gz 426111 SHA256 df3bd3663b766851caffba963853383cff813695dca3e827ce6e00a920d544fa SHA512 6800b86039cb555efc05644db65c516fb242d4d081ea612969d6cc52a12ffd7571e012a7afe7962cd61c28b0ebb3b9d94af76f20013f3b4dd7d2aacdc552c6fc WHIRLPOOL 3164e5c09b2e42058da1c2c3df55512dfc75245dca7857fb46085f1a6b0a8a4360397026825a6e0f3ce66fab9c55774ad65ee9d6daf072ee9f0bae42d6509882 +EBUILD nanoxml-2.2.3-r3.ebuild 923 SHA256 1d5a5075b68b18c6ee126552b6b4beb2aa0abc14d17f559284c2bc9895ce5793 SHA512 30ef7f0a4d5011e6b78d91b2b4c7a123499a6fff4c403d61f0ff330dc49ccbc5695af9ae4daa61b481d8a576de0670e85301db41d1e344ed3c333b078b4de0fd WHIRLPOOL 3346810ae5f8251504ab03162e10a785f6ce54324807ac8201d775d7a34b036b01d304d47f30118863b09d55fc30f786467491142ff403a255972b2941f80edc +MISC ChangeLog 3723 SHA256 c1c251896de0df20714e1af11c51d1ae4ca2327f545a6ab71489c9fdb3ea8524 SHA512 9fab2ea28007bb60acbfd5557bd8eb512743004b28fe12234a2dc812dbc79ca04d0d8f2c64abffefcf5f5b9bec19341b643e4378ddfea0df55e3e2ac51f124e8 WHIRLPOOL e672b19cbd103d901bc0a9665a737edc299318fe4598574d0180debfe04c33fdddf4123aaaea5bd76db6faf9f06366a4c115914f0dbd2db4615fbcf1e2b443c1 +MISC ChangeLog-2015 2279 SHA256 cfb4ab217bda4419ac559e22c63f327a7ea6f9cc2b6c210d8ea824e2c510cc37 SHA512 efeaec05b2ddc562b0803392a7b69c0a1d7ec6082867ab90a36947440d688fef54d9bb4ad9a3e55351ce5d58ee9200967a0a249cede2601de399e01aafaa340b WHIRLPOOL 58d66d62421e82b5af2d5b3b066051a0865d62340a5204b8921d896e17e4cd9708a68130302ee5ee1ce6179d404d9d68ba4ea89cf99ba9ebe9d9264abf7168a5 +MISC metadata.xml 313 SHA256 ae9c7f0a8ee34504d3f9a67a7f75e0789c37244003b35e5459860a589a13118e SHA512 e9b3806d0286175ade9158968346fd9dc2251dd4f4f7363bfdb147bf08b60f3088d07483971c55b2e1ccf656362d83443cea57a2a6b876a0f1c6107987ee7974 WHIRLPOOL 0332a2fcb37672fece7f4501d08be4fe34460f54fd71feb9c57fc6734bf2507032cc119f4ee37c2b9bed42f45201f03af6536b8a2fcc3ac56c86aca2fcb3e8ef diff --git a/dev-java/nanoxml/files/nanoxml-2.2.3-enum.patch b/dev-java/nanoxml/files/nanoxml-2.2.3-enum.patch new file mode 100644 index 000000000000..61226b46fe43 --- /dev/null +++ b/dev-java/nanoxml/files/nanoxml-2.2.3-enum.patch @@ -0,0 +1,208 @@ +--- Sources/Java/net/n3/nanoxml/XMLElement.java.orig 2016-03-04 09:21:07.908000000 +0000 ++++ Sources/Java/net/n3/nanoxml/XMLElement.java 2016-03-04 09:35:16.283000000 +0000 +@@ -484,9 +484,9 @@ + * @return the child element, or null if no such child was found. + */ + public IXMLElement getFirstChildNamed(String name) { +- Enumeration enum = this.children.elements(); +- while (enum.hasMoreElements()) { +- IXMLElement child = (IXMLElement) enum.nextElement(); ++ Enumeration myEnum = this.children.elements(); ++ while (myEnum.hasMoreElements()) { ++ IXMLElement child = (IXMLElement) myEnum.nextElement(); + String childName = child.getFullName(); + if ((childName != null) && childName.equals(name)) { + return child; +@@ -506,9 +506,9 @@ + */ + public IXMLElement getFirstChildNamed(String name, + String namespace) { +- Enumeration enum = this.children.elements(); +- while (enum.hasMoreElements()) { +- IXMLElement child = (IXMLElement) enum.nextElement(); ++ Enumeration myEnum = this.children.elements(); ++ while (myEnum.hasMoreElements()) { ++ IXMLElement child = (IXMLElement) myEnum.nextElement(); + String str = child.getName(); + boolean found = (str != null) && (str.equals(name)); + str = child.getNamespace(); +@@ -534,9 +534,9 @@ + */ + public Vector getChildrenNamed(String name) { + Vector result = new Vector(this.children.size()); +- Enumeration enum = this.children.elements(); +- while (enum.hasMoreElements()) { +- IXMLElement child = (IXMLElement) enum.nextElement(); ++ Enumeration myEnum = this.children.elements(); ++ while (myEnum.hasMoreElements()) { ++ IXMLElement child = (IXMLElement) myEnum.nextElement(); + String childName = child.getFullName(); + if ((childName != null) && childName.equals(name)) { + result.addElement(child); +@@ -557,9 +557,9 @@ + public Vector getChildrenNamed(String name, + String namespace) { + Vector result = new Vector(this.children.size()); +- Enumeration enum = this.children.elements(); +- while (enum.hasMoreElements()) { +- IXMLElement child = (IXMLElement) enum.nextElement(); ++ Enumeration myEnum = this.children.elements(); ++ while (myEnum.hasMoreElements()) { ++ IXMLElement child = (IXMLElement) myEnum.nextElement(); + String str = child.getName(); + boolean found = (str != null) && (str.equals(name)); + str = child.getNamespace(); +@@ -585,9 +585,9 @@ + * @return the attribute, or null if the attribute does not exist. + */ + private XMLAttribute findAttribute(String fullName) { +- Enumeration enum = this.attributes.elements(); +- while (enum.hasMoreElements()) { +- XMLAttribute attr = (XMLAttribute) enum.nextElement(); ++ Enumeration myEnum = this.attributes.elements(); ++ while (myEnum.hasMoreElements()) { ++ XMLAttribute attr = (XMLAttribute) myEnum.nextElement(); + if (attr.getFullName().equals(fullName)) { + return attr; + } +@@ -606,9 +606,9 @@ + */ + private XMLAttribute findAttribute(String name, + String namespace) { +- Enumeration enum = this.attributes.elements(); +- while (enum.hasMoreElements()) { +- XMLAttribute attr = (XMLAttribute) enum.nextElement(); ++ Enumeration myEnum = this.attributes.elements(); ++ while (myEnum.hasMoreElements()) { ++ XMLAttribute attr = (XMLAttribute) myEnum.nextElement(); + boolean found = attr.getName().equals(name); + if (namespace == null) { + found &= (attr.getNamespace() == null); +@@ -860,9 +860,9 @@ + */ + public Enumeration enumerateAttributeNames() { + Vector result = new Vector(); +- Enumeration enum = this.attributes.elements(); +- while (enum.hasMoreElements()) { +- XMLAttribute attr = (XMLAttribute) enum.nextElement(); ++ Enumeration myEnum = this.attributes.elements(); ++ while (myEnum.hasMoreElements()) { ++ XMLAttribute attr = (XMLAttribute) myEnum.nextElement(); + result.addElement(attr.getFullName()); + } + return result.elements(); +@@ -897,9 +897,9 @@ + */ + public Properties getAttributes() { + Properties result = new Properties(); +- Enumeration enum = this.attributes.elements(); +- while (enum.hasMoreElements()) { +- XMLAttribute attr = (XMLAttribute) enum.nextElement(); ++ Enumeration myEnum = this.attributes.elements(); ++ while (myEnum.hasMoreElements()) { ++ XMLAttribute attr = (XMLAttribute) myEnum.nextElement(); + result.put(attr.getFullName(), attr.getValue()); + } + return result; +@@ -915,9 +915,9 @@ + */ + public Properties getAttributesInNamespace(String namespace) { + Properties result = new Properties(); +- Enumeration enum = this.attributes.elements(); +- while (enum.hasMoreElements()) { +- XMLAttribute attr = (XMLAttribute) enum.nextElement(); ++ Enumeration myEnum = this.attributes.elements(); ++ while (myEnum.hasMoreElements()) { ++ XMLAttribute attr = (XMLAttribute) myEnum.nextElement(); + if (namespace == null) { + if (attr.getNamespace() == null) { + result.put(attr.getName(), attr.getValue()); +@@ -1007,9 +1007,9 @@ + if (this.attributes.size() != elt.getAttributeCount()) { + return false; + } +- Enumeration enum = this.attributes.elements(); +- while (enum.hasMoreElements()) { +- XMLAttribute attr = (XMLAttribute) enum.nextElement(); ++ Enumeration myEnum = this.attributes.elements(); ++ while (myEnum.hasMoreElements()) { ++ XMLAttribute attr = (XMLAttribute) myEnum.nextElement(); + if (! elt.hasAttribute(attr.getName(), attr.getNamespace())) { + return false; + } +--- Sources/Java/net/n3/nanoxml/NonValidator.java.orig 2016-03-04 09:36:05.247000000 +0000 ++++ Sources/Java/net/n3/nanoxml/NonValidator.java 2016-03-04 09:36:25.195000000 +0000 +@@ -587,10 +587,10 @@ + int lineNr) + { + Properties props = (Properties) this.currentElements.pop(); +- Enumeration enum = props.keys(); ++ Enumeration myEnum = props.keys(); + +- while (enum.hasMoreElements()) { +- String key = (String) enum.nextElement(); ++ while (myEnum.hasMoreElements()) { ++ String key = (String) myEnum.nextElement(); + extraAttributes.put(key, props.get(key)); + } + } +--- Sources/Java/net/n3/nanoxml/XMLWriter.java.orig 2016-03-04 09:36:53.616000000 +0000 ++++ Sources/Java/net/n3/nanoxml/XMLWriter.java 2016-03-04 09:38:11.868000000 +0000 +@@ -182,10 +182,10 @@ + } + } + +- Enumeration enum = xml.enumerateAttributeNames(); ++ Enumeration myEnum = xml.enumerateAttributeNames(); + +- while (enum.hasMoreElements()) { +- String key = (String) enum.nextElement(); ++ while (myEnum.hasMoreElements()) { ++ String key = (String) myEnum.nextElement(); + int index = key.indexOf(':'); + + if (index >= 0) { +@@ -203,10 +203,10 @@ + } + } + +- enum = xml.enumerateAttributeNames(); ++ myEnum = xml.enumerateAttributeNames(); + +- while (enum.hasMoreElements()) { +- String key = (String) enum.nextElement(); ++ while (myEnum.hasMoreElements()) { ++ String key = (String) myEnum.nextElement(); + String value = xml.getAttribute(key, null); + this.writer.print(" " + key + "=\""); + this.writeEncoded(value); +@@ -229,10 +229,10 @@ + writer.println(); + } + +- enum = xml.enumerateChildren(); ++ myEnum = xml.enumerateChildren(); + +- while (enum.hasMoreElements()) { +- IXMLElement child = (IXMLElement) enum.nextElement(); ++ while (myEnum.hasMoreElements()) { ++ IXMLElement child = (IXMLElement) myEnum.nextElement(); + this.write(child, prettyPrint, indent + 4, + collapseEmptyElements); + } +--- Sources/Java/net/n3/nanoxml/StdXMLParser.java.orig 2016-03-04 09:38:44.521000000 +0000 ++++ Sources/Java/net/n3/nanoxml/StdXMLParser.java 2016-03-04 09:39:08.028000000 +0000 +@@ -492,10 +492,10 @@ + extraAttributes, + this.reader.getSystemID(), + this.reader.getLineNr()); +- Enumeration enum = extraAttributes.keys(); ++ Enumeration myEnum = extraAttributes.keys(); + +- while (enum.hasMoreElements()) { +- String key = (String) enum.nextElement(); ++ while (myEnum.hasMoreElements()) { ++ String key = (String) myEnum.nextElement(); + String value = extraAttributes.getProperty(key); + attrNames.addElement(key); + attrValues.addElement(value); diff --git a/dev-java/nanoxml/files/nanoxml-2.2.3-lite-enum.patch b/dev-java/nanoxml/files/nanoxml-2.2.3-lite-enum.patch new file mode 100644 index 000000000000..f91d14c38d6f --- /dev/null +++ b/dev-java/nanoxml/files/nanoxml-2.2.3-lite-enum.patch @@ -0,0 +1,53 @@ +--- Sources/Lite/nanoxml/XMLElement.java.orig 2016-03-04 09:16:52.339000000 +0000 ++++ Sources/Lite/nanoxml/XMLElement.java 2016-03-04 09:19:03.213000000 +0000 +@@ -63,8 +63,8 @@ + * The following example shows how to list the attributes of an element: + * <UL><CODE> + * XMLElement element = ...;<BR> +- * Enumeration enum = element.getAttributeNames();<BR> +- * while (enum.hasMoreElements()) {<BR> ++ * Enumeration myEnum = element.getAttributeNames();<BR> ++ * while (myEnum.hasMoreElements()) {<BR> + * String key = (String) enum.nextElement();<BR> + * String value = element.getStringAttribute(key);<BR> + * System.out.println(key + " = " + value);<BR> +@@ -478,9 +478,9 @@ + this.children = new Vector(); + this.entities = entities; + this.lineNr = 0; +- Enumeration enum = this.entities.keys(); +- while (enum.hasMoreElements()) { +- Object key = enum.nextElement(); ++ Enumeration myEnum = this.entities.keys(); ++ while (myEnum.hasMoreElements()) { ++ Object key = myEnum.nextElement(); + Object value = this.entities.get(key); + if (value instanceof String) { + value = ((String) value).toCharArray(); +@@ -2168,10 +2168,10 @@ + writer.write('<'); + writer.write(this.name); + if (! this.attributes.isEmpty()) { +- Enumeration enum = this.attributes.keys(); +- while (enum.hasMoreElements()) { ++ Enumeration myEnum = this.attributes.keys(); ++ while (myEnum.hasMoreElements()) { + writer.write(' '); +- String key = (String) enum.nextElement(); ++ String key = (String) myEnum.nextElement(); + String value = (String) this.attributes.get(key); + writer.write(key); + writer.write('='); writer.write('"'); +@@ -2189,9 +2189,9 @@ + writer.write('/'); writer.write('>'); + } else { + writer.write('>'); +- Enumeration enum = this.enumerateChildren(); +- while (enum.hasMoreElements()) { +- XMLElement child = (XMLElement) enum.nextElement(); ++ Enumeration myEnum = this.enumerateChildren(); ++ while (myEnum.hasMoreElements()) { ++ XMLElement child = (XMLElement) myEnum.nextElement(); + child.write(writer); + } + writer.write('<'); writer.write('/'); diff --git a/dev-java/nanoxml/metadata.xml b/dev-java/nanoxml/metadata.xml new file mode 100644 index 000000000000..4c006a5b2b06 --- /dev/null +++ b/dev-java/nanoxml/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">nanoxml</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/nanoxml/nanoxml-2.2.3-r3.ebuild b/dev-java/nanoxml/nanoxml-2.2.3-r3.ebuild new file mode 100644 index 000000000000..d0fe385ae93b --- /dev/null +++ b/dev-java/nanoxml/nanoxml-2.2.3-r3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +MY_P="NanoXML-${PV}" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="NanoXML is a small non-validating parser for Java" +HOMEPAGE="http://nanoxml.sourceforge.net/" +SRC_URI="http://pkgs.fedoraproject.org/repo/pkgs/nanoxml/${MY_P}.tar.gz/357c7136417ea996cf714278ea84f2df/${MY_P}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +CDEPEND="dev-java/sax:0" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6" + +RDEPEND=" + ${CDEPEND} + source? ( app-arch/zip ) + >=virtual/jre-1.6" + +S="${WORKDIR}/${MY_P}" + +JAVA_GENTOO_CLASSPATH="sax" + +JAVA_SRC_DIR="Sources" + +PATCHES=( + "${FILESDIR}"/"${P}-lite-enum.patch" + "${FILESDIR}"/"${P}-enum.patch" +) + +java_prepare() { + java-pkg_clean + rm -rf Test || die + epatch "${PATCHES[@]}" +} |