summaryrefslogtreecommitdiff
path: root/dev-java/ecs
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 /dev-java/ecs
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/ecs')
-rw-r--r--dev-java/ecs/Manifest6
-rw-r--r--dev-java/ecs/ecs-1.4.2-r2.ebuild42
-rw-r--r--dev-java/ecs/files/ecs-1.4.2-java7-enum.patch217
-rw-r--r--dev-java/ecs/metadata.xml8
4 files changed, 273 insertions, 0 deletions
diff --git a/dev-java/ecs/Manifest b/dev-java/ecs/Manifest
new file mode 100644
index 000000000000..243f8d73e7d0
--- /dev/null
+++ b/dev-java/ecs/Manifest
@@ -0,0 +1,6 @@
+AUX ecs-1.4.2-java7-enum.patch 9655 SHA256 bb093c90012241c81644acbf2a310c08571cc67d7248037aae59610a1a354a2a SHA512 9be8efb4762dd88ab9b3a05466ec9085b22e6d4f2c10ba11a57a9411b73edb1c3b6a0f9ba940159a8857087b310b49978885469ce9a7e5f8d964770772c5f4f5 WHIRLPOOL 84caf10f718494974cd780bba10a59c598790db05e4a8a6e743aa4370e65a1bc3237645112bc1b6cd26a07cab2f658ffbcf6ba77cbde713920478ade9a0f5f3b
+DIST ecs-1.4.2-src.tar.gz 3435157 SHA256 8e98da4dd0ed5498bdfac1ec7a4bfa429348d1c8733ed189e67923d98adb2a31 SHA512 b7004f9364a24dd9ec8f963f69279471cc2e39fdc81d1c97dc4881cf65ee16f5f4342129b7bdda12994b69edff23944cb12f5d4b4ec140bf962e3a4f9f4e1bb4 WHIRLPOOL 202a8f9f4b81d0714f59b2817a317b85a95e5233efb4832fb787d988126b5d2b8fca46eeb7828f71fef9efea953de80d81c769e1dfa77dbd5b052dc78b750c38
+EBUILD ecs-1.4.2-r2.ebuild 805 SHA256 9556b9fedad32e26e7849f9d5128d7491f71dcec1c92e23d4bd23fb5a88e0637 SHA512 cd354f4f0b96bb37f6a22b074774bd63e1094484640774dc388dd5fe0fecba685075a4cdd42e9c4e5bfb51e60cc4ea370e63a8265688f1d3446d94d578dfd935 WHIRLPOOL 7cb009b1e85bae8cc352cb87128bfff85ef9645abf0b09afcc12c9fe587bb15c401b443a74adaa41b4126d9d897f2b4c5bda633fad2efecd98335cbb895b1c08
+MISC ChangeLog 2952 SHA256 a25f5f873dc9f3c7322fbdff988af4fd0c4bbb508b8f6fc53531a1907f211eb9 SHA512 2e2e60f1d16c7b38705687d8483935acd09edd69ab347e028fd9c2107b6b561eb4a93c909fe8fe5aa7842501b165ce2c8d3e94733fbfd8106704bbefbb5097e1 WHIRLPOOL 7cf372e1a50e64207bb9ecb1694a23ef775abcad4afdc800d8fcb7b1a765e0870f6c193a779716364ac68505813d5df816806b32ca91dc14ddb3b5173395c6f5
+MISC ChangeLog-2015 2887 SHA256 4db3f6d774c7e917a0d520aad7c9004d499333157617aca0ce11312a0565c014 SHA512 5f0febe478463512927408e8d347e8decc593ed5f7344dd5b6b66eb39a519f58db3e7095ab4fc696a002c37cd1410cff9b447dbe6e065b7d942e0926c60cb552 WHIRLPOOL 705388d57730b884fa7affe6dc1614f6fc1092c3323156526df6d8e00c031ca0eda4e40b399ace218be8a48cca5ab096f8b363b2ed5cdf2ae8b5b1757788c29b
+MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac
diff --git a/dev-java/ecs/ecs-1.4.2-r2.ebuild b/dev-java/ecs/ecs-1.4.2-r2.ebuild
new file mode 100644
index 000000000000..baa18cc2e5cb
--- /dev/null
+++ b/dev-java/ecs/ecs-1.4.2-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Java library to generate markup language text such as HTML and XML"
+HOMEPAGE="http://jakarta.apache.org/ecs"
+SRC_URI="mirror://apache/jakarta/${PN}/source/${P}-src.tar.gz"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+CDEPEND="
+ dev-java/xerces:2
+ dev-java/jakarta-regexp:1.3"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ source? ( app-arch/zip )
+ >=virtual/jdk-1.6"
+
+S="${WORKDIR}/${P}-src"
+
+JAVA_ENCODING="ISO8859-1"
+JAVA_SRC_DIR="src/java"
+
+JAVA_GENTOO_CLASSPATH="xerces-2,jakarta-regexp-1.3"
+
+java_prepare() {
+ java-pkg_clean
+ epatch "${FILESDIR}"/${P}-java7-enum.patch
+}
diff --git a/dev-java/ecs/files/ecs-1.4.2-java7-enum.patch b/dev-java/ecs/files/ecs-1.4.2-java7-enum.patch
new file mode 100644
index 000000000000..08632aef8b9b
--- /dev/null
+++ b/dev-java/ecs/files/ecs-1.4.2-java7-enum.patch
@@ -0,0 +1,217 @@
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/ConcreteElement.java b/ecs-1.4.2-src/src/java/org/apache/ecs/ConcreteElement.java
+index 1138b28..85e7c42 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/ConcreteElement.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/ConcreteElement.java
+@@ -319,11 +319,11 @@ public class ConcreteElement extends ElementAttributes implements Cloneable
+ if(ce.getTagText() != null)
+ out.write(ce.getTagText().getBytes(encoding));
+
+- Enumeration enum = ce.registryList.elements();
++ Enumeration enumx = ce.registryList.elements();
+
+- while(enum.hasMoreElements())
++ while(enumx.hasMoreElements())
+ {
+- Object obj = ce.registry.get((String)enum.nextElement());
++ Object obj = ce.registry.get((String)enumx.nextElement());
+ if(obj instanceof GenericElement)
+ {
+ Element e = (Element)obj;
+@@ -435,10 +435,10 @@ public class ConcreteElement extends ElementAttributes implements Cloneable
+ if(getTagText() != null)
+ out.write(getTagText());
+
+- Enumeration enum = registryList.elements();
+- while(enum.hasMoreElements())
++ Enumeration enumx = registryList.elements();
++ while(enumx.hasMoreElements())
+ {
+- Object obj = registry.get((String)enum.nextElement());
++ Object obj = registry.get((String)enumx.nextElement());
+ if(obj instanceof GenericElement)
+ {
+ Element e = (Element)obj;
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/ElementAttributes.java b/ecs-1.4.2-src/src/java/org/apache/ecs/ElementAttributes.java
+index 76eeac0..990e92e 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/ElementAttributes.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/ElementAttributes.java
+@@ -342,12 +342,12 @@ public abstract class ElementAttributes extends GenericElement implements Attrib
+ }
+ out.append(getElementType());
+
+- Enumeration enum = getElementHashEntry().keys();
++ Enumeration enumx = getElementHashEntry().keys();
+ String value = null; // avoid creating a new string object on each pass through the loop
+
+- while (enum.hasMoreElements())
++ while (enumx.hasMoreElements())
+ {
+- String attr = (String) enum.nextElement();
++ String attr = (String) enumx.nextElement();
+ if(getAttributeFilterState())
+ {
+ value = getAttributeFilter().process(getElementHashEntry().get(attr).toString());
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/filter/RegexpFilter.java b/ecs-1.4.2-src/src/java/org/apache/ecs/filter/RegexpFilter.java
+index dcd0db0..effcc0d 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/filter/RegexpFilter.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/filter/RegexpFilter.java
+@@ -118,10 +118,10 @@ public class RegexpFilter extends Hashtable implements Filter {
+ }
+
+ String substituteIn = to_process;
+- Enumeration enum = keys();
++ Enumeration enumx = keys();
+
+- while (enum.hasMoreElements()) {
+- RE r = (RE)enum.nextElement();
++ while (enumx.hasMoreElements()) {
++ RE r = (RE)enumx.nextElement();
+ String substitution = (String)get(r);
+ substituteIn = r.subst(substituteIn, substitution);
+ }
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/html/A.java b/ecs-1.4.2-src/src/java/org/apache/ecs/html/A.java
+index 2a30d8d..ac87ae9 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/html/A.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/html/A.java
+@@ -462,13 +462,13 @@ public class A extends MultiPartElement implements Printable, FocusEvents, Mouse
+ */
+ public boolean getNeedLineBreak()
+ {
+- java.util.Enumeration enum = elements();
++ java.util.Enumeration enumx = elements();
+ int i=0;
+ int j=0;
+- while(enum.hasMoreElements())
++ while(enumx.hasMoreElements())
+ {
+ j++;
+- Object obj = enum.nextElement();
++ Object obj = enumx.nextElement();
+ if( obj instanceof IMG )
+ i++;
+ }
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/html/Select.java b/ecs-1.4.2-src/src/java/org/apache/ecs/html/Select.java
+index f8f71c2..a9c1f4a 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/html/Select.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/html/Select.java
+@@ -219,10 +219,10 @@ public class Select extends MultiPartElement implements
+
+ public Select selectOption(int option)
+ {
+- Enumeration enum = keys();
+- for(int x = 0; enum.hasMoreElements(); x++)
++ Enumeration enumx = keys();
++ for(int x = 0; enumx.hasMoreElements(); x++)
+ {
+- ConcreteElement element = (ConcreteElement)getElement((String)enum.nextElement());
++ ConcreteElement element = (ConcreteElement)getElement((String)enumx.nextElement());
+ if(x == option)
+ {
+ ((Option)element).setSelected(true);
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/html/TD.java b/ecs-1.4.2-src/src/java/org/apache/ecs/html/TD.java
+index 188d5f0..6737648 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/html/TD.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/html/TD.java
+@@ -468,13 +468,13 @@ public class TD extends MultiPartElement implements Printable, MouseEvents, KeyE
+ */
+ public boolean getNeedLineBreak()
+ {
+- java.util.Enumeration enum = elements();
++ java.util.Enumeration enumx = elements();
+ int i=0;
+ int j=0;
+- while(enum.hasMoreElements())
++ while(enumx.hasMoreElements())
+ {
+ j++;
+- Object obj = enum.nextElement();
++ Object obj = enumx.nextElement();
+ if( obj instanceof IMG || obj instanceof A )
+ i++;
+ }
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/vxml/TestBed2.java b/ecs-1.4.2-src/src/java/org/apache/ecs/vxml/TestBed2.java
+index 42d57a7..cd842db 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/vxml/TestBed2.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/vxml/TestBed2.java
+@@ -158,12 +158,12 @@ public class TestBed2
+
+ Menu menu3 = new Menu("true");
+ Prompt prompt2 = new Prompt("Welcome Home");
+- Enumerate enum = new Enumerate();
+- enum.addElement("For ");
+- enum.addElement(new Value("_prompt"));
+- enum.addElement(", press ");
+- enum.addElement(new Value("_dtmf"));
+- prompt2.addElement(enum);
++ Enumerate enumx = new Enumerate();
++ enumx.addElement("For ");
++ enumx.addElement(new Value("_prompt"));
++ enumx.addElement(", press ");
++ enumx.addElement(new Value("_dtmf"));
++ prompt2.addElement(enumx);
+ menu3.addElement(prompt2);
+ Choice choice1 = new Choice("http://www.sports.example/vxml/start.vxml");
+ Choice choice2 = new Choice("http://www.weather.example/intro.vxml");
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/xhtml/a.java b/ecs-1.4.2-src/src/java/org/apache/ecs/xhtml/a.java
+index 26add7f..1d0425a 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/xhtml/a.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/xhtml/a.java
+@@ -472,13 +472,13 @@ public class a extends MultiPartElement implements Printable, FocusEvents, Mouse
+ */
+ public boolean getNeedLineBreak()
+ {
+- java.util.Enumeration enum = elements();
++ java.util.Enumeration enumx = elements();
+ int i=0;
+ int j=0;
+- while(enum.hasMoreElements())
++ while(enumx.hasMoreElements())
+ {
+ j++;
+- Object obj = enum.nextElement();
++ Object obj = enumx.nextElement();
+ if( obj instanceof img )
+ i++;
+ }
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/xhtml/td.java b/ecs-1.4.2-src/src/java/org/apache/ecs/xhtml/td.java
+index 8d96259..6bd4b45 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/xhtml/td.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/xhtml/td.java
+@@ -466,13 +466,13 @@ public class td extends MultiPartElement implements Printable, MouseEvents, KeyE
+ */
+ public boolean getNeedLineBreak()
+ {
+- java.util.Enumeration enum = elements();
++ java.util.Enumeration enumx = elements();
+ int i=0;
+ int j=0;
+- while(enum.hasMoreElements())
++ while(enumx.hasMoreElements())
+ {
+ j++;
+- Object obj = enum.nextElement();
++ Object obj = enumx.nextElement();
+ if( obj instanceof img || obj instanceof a )
+ i++;
+ }
+diff --git a/ecs-1.4.2-src/src/java/org/apache/ecs/xml/XML.java b/ecs-1.4.2-src/src/java/org/apache/ecs/xml/XML.java
+index 1a03349..f6de10c 100644
+--- a/ecs-1.4.2-src/src/java/org/apache/ecs/xml/XML.java
++++ b/ecs-1.4.2-src/src/java/org/apache/ecs/xml/XML.java
+@@ -193,13 +193,13 @@ public class XML extends MultiPartElement implements Printable
+ public boolean getNeedLineBreak() {
+ boolean linebreak = true;
+
+- java.util.Enumeration enum = elements();
++ java.util.Enumeration enumx = elements();
+
+ // if this tag has one child, and it's a String, then don't
+ // do any linebreaks to preserve whitespace
+
+- while (enum.hasMoreElements()) {
+- Object obj = enum.nextElement();
++ while (enumx.hasMoreElements()) {
++ Object obj = enumx.nextElement();
+ if (obj instanceof StringElement) {
+ linebreak = false;
+ break;
diff --git a/dev-java/ecs/metadata.xml b/dev-java/ecs/metadata.xml
new file mode 100644
index 000000000000..2444066aa02b
--- /dev/null
+++ b/dev-java/ecs/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 type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+</pkgmetadata>