diff options
author | Johann Schmitz <ercpe@gentoo.org> | 2014-06-21 06:58:30 +0000 |
---|---|---|
committer | Johann Schmitz <ercpe@gentoo.org> | 2014-06-21 06:58:30 +0000 |
commit | 97f59ab3e2e065ec961e1f554c4f25bec732a168 (patch) | |
tree | fbf229d440f5fa76c80104a03523514c6a5a47c4 /dev-java/ldapsdk | |
parent | Fix gettext version mismatches (bug #514082). (diff) | |
download | gentoo-2-97f59ab3e2e065ec961e1f554c4f25bec732a168.tar.gz gentoo-2-97f59ab3e2e065ec961e1f554c4f25bec732a168.tar.bz2 gentoo-2-97f59ab3e2e065ec961e1f554c4f25bec732a168.zip |
EAPI bump; fixed bug #513580 (renamed variables named "enum"), some QA
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 77C501ED)
Diffstat (limited to 'dev-java/ldapsdk')
-rw-r--r-- | dev-java/ldapsdk/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/ldapsdk/files/4.1.7-fix-jdk-1.7-enum.patch | 151 | ||||
-rw-r--r-- | dev-java/ldapsdk/ldapsdk-4.1.7-r4.ebuild | 56 |
3 files changed, 214 insertions, 1 deletions
diff --git a/dev-java/ldapsdk/ChangeLog b/dev-java/ldapsdk/ChangeLog index 9b2f46cf702d..92bf8e42eef7 100644 --- a/dev-java/ldapsdk/ChangeLog +++ b/dev-java/ldapsdk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/ldapsdk # Copyright 2000-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ldapsdk/ChangeLog,v 1.16 2014/06/17 10:57:39 mrueg Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ldapsdk/ChangeLog,v 1.17 2014/06/21 06:58:30 ercpe Exp $ + +*ldapsdk-4.1.7-r4 (21 Jun 2014) + + 21 Jun 2014; Johann Schmitz <ercpe@gentoo.org> + +files/4.1.7-fix-jdk-1.7-enum.patch, +ldapsdk-4.1.7-r4.ebuild: + EAPI bump; fixed bug #513580 (renamed variables named "enum"), some QA 17 Jun 2014; Manuel Rüger <mrueg@gentoo.org> -ldapsdk-4.1.7-r2.ebuild: NM: Cleanup superseeded ebuilds. diff --git a/dev-java/ldapsdk/files/4.1.7-fix-jdk-1.7-enum.patch b/dev-java/ldapsdk/files/4.1.7-fix-jdk-1.7-enum.patch new file mode 100644 index 000000000000..13cdf30f843b --- /dev/null +++ b/dev-java/ldapsdk/files/4.1.7-fix-jdk-1.7-enum.patch @@ -0,0 +1,151 @@ +diff --git a/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/controls/LDAPEntryChangeControl.java b/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/controls/LDAPEntryChangeControl.java +index a0ba7e8..42834c1 100644 +--- a/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/controls/LDAPEntryChangeControl.java ++++ b/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/controls/LDAPEntryChangeControl.java +@@ -107,9 +107,9 @@ public class LDAPEntryChangeControl extends LDAPControl { + BERSequence s = (BERSequence)BERElement.getElement(decoder, inStream, + numRead); + +- BEREnumerated enum = (BEREnumerated)s.elementAt(0); ++ BEREnumerated enumx = (BEREnumerated)s.elementAt(0); + +- _changeTypes = enum.getValue(); ++ _changeTypes = enumx.getValue(); + + if (s.size() > 1) { + if (s.elementAt(1) instanceof BEROctetString) { +diff --git a/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/controls/LDAPPersistSearchControl.java b/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/controls/LDAPPersistSearchControl.java +index c73bb68..5539f11 100644 +--- a/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/controls/LDAPPersistSearchControl.java ++++ b/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/controls/LDAPPersistSearchControl.java +@@ -263,9 +263,9 @@ public class LDAPPersistSearchControl extends LDAPControl { + BERSequence s = (BERSequence)BERElement.getElement(decoder, inStream, + numRead); + +- BEREnumerated enum = (BEREnumerated)s.elementAt(0); ++ BEREnumerated enumx = (BEREnumerated)s.elementAt(0); + +- con.setChangeType(enum.getValue()); ++ con.setChangeType(enumx.getValue()); + + if (s.size() > 1) { + if (s.elementAt(1) instanceof BEROctetString) { +diff --git a/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/util/RDN.java b/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/util/RDN.java +index e126d47..b5f6809 100644 +--- a/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/util/RDN.java ++++ b/mozilla/directory/java-sdk/ietfldap/org/ietf/ldap/util/RDN.java +@@ -402,12 +402,12 @@ public final class RDN implements java.io.Serializable { + * @see org.ietf.ldap.util.RDN#getAttributeSyntax + */ + public static String[] getAttributesForSyntax( String oid ) { +- Enumeration enum = m_attributehash.keys(); ++ Enumeration enumx = m_attributehash.keys(); + Vector key_v = new Vector(); + String tmp_str = null; + +- while ( enum.hasMoreElements() ) { +- tmp_str = (String)enum.nextElement(); ++ while ( enumx.hasMoreElements() ) { ++ tmp_str = (String)enumx.nextElement(); + if ( oid.equals( (String)m_attributehash.get( tmp_str ) ) ) { + key_v.addElement( tmp_str ); + } +diff --git a/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/LDAPConnection.java b/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/LDAPConnection.java +index a4d9e88..85cc7af 100644 +--- a/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/LDAPConnection.java ++++ b/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/LDAPConnection.java +@@ -4519,9 +4519,9 @@ public class LDAPConnection + LDAPControl[] controls = null; + + synchronized(m_responseControlTable) { +- Enumeration enum = m_responseControlTable.keys(); +- while (enum.hasMoreElements()) { +- Object client = enum.nextElement(); ++ Enumeration enumx = m_responseControlTable.keys(); ++ while (enumx.hasMoreElements()) { ++ Object client = enumx.nextElement(); + ResponseControls rspCtrls = (ResponseControls)m_responseControlTable.get(client); + + if (msgID == rspCtrls.msgID) { +diff --git a/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/controls/LDAPEntryChangeControl.java b/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/controls/LDAPEntryChangeControl.java +index 8e486c5..9256aa0 100644 +--- a/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/controls/LDAPEntryChangeControl.java ++++ b/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/controls/LDAPEntryChangeControl.java +@@ -107,9 +107,9 @@ public class LDAPEntryChangeControl extends LDAPControl { + BERSequence s = (BERSequence)BERElement.getElement(decoder, inStream, + numRead); + +- BEREnumerated enum = (BEREnumerated)s.elementAt(0); ++ BEREnumerated enumx = (BEREnumerated)s.elementAt(0); + +- m_changeTypes = enum.getValue(); ++ m_changeTypes = enumx.getValue(); + + if (s.size() > 1) { + if (s.elementAt(1) instanceof BEROctetString) { +diff --git a/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/controls/LDAPPersistSearchControl.java b/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/controls/LDAPPersistSearchControl.java +index 9bab06a..a5836e8 100644 +--- a/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/controls/LDAPPersistSearchControl.java ++++ b/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/controls/LDAPPersistSearchControl.java +@@ -263,9 +263,9 @@ public class LDAPPersistSearchControl extends LDAPControl { + BERSequence s = (BERSequence)BERElement.getElement(decoder, inStream, + numRead); + +- BEREnumerated enum = (BEREnumerated)s.elementAt(0); ++ BEREnumerated enumx = (BEREnumerated)s.elementAt(0); + +- con.setChangeType(enum.getValue()); ++ con.setChangeType(enumx.getValue()); + + if (s.size() > 1) { + if (s.elementAt(1) instanceof BEROctetString) { +diff --git a/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/util/RDN.java b/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/util/RDN.java +index 57bce3a..392d7ea 100644 +--- a/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/util/RDN.java ++++ b/mozilla/directory/java-sdk/ldapjdk/netscape/ldap/util/RDN.java +@@ -402,12 +402,12 @@ public final class RDN implements java.io.Serializable { + * @see netscape.ldap.util.RDN#getAttributeSyntax + */ + public static String[] getAttributesForSyntax( String oid ) { +- Enumeration enum = m_attributehash.keys(); ++ Enumeration enumx = m_attributehash.keys(); + Vector key_v = new Vector(); + String tmp_str = null; + +- while ( enum.hasMoreElements() ) { +- tmp_str = (String)enum.nextElement(); ++ while ( enumx.hasMoreElements() ) { ++ tmp_str = (String)enumx.nextElement(); + if ( oid.equals( (String)m_attributehash.get( tmp_str ) ) ) { + key_v.addElement( tmp_str ); + } +diff --git a/mozilla/directory/java-sdk/ldapsp/com/netscape/jndi/ldap/AttributesImpl.java b/mozilla/directory/java-sdk/ldapsp/com/netscape/jndi/ldap/AttributesImpl.java +index 4bcb46d..7b22371 100644 +--- a/mozilla/directory/java-sdk/ldapsp/com/netscape/jndi/ldap/AttributesImpl.java ++++ b/mozilla/directory/java-sdk/ldapsp/com/netscape/jndi/ldap/AttributesImpl.java +@@ -151,8 +151,8 @@ class AttributesImpl implements Attributes { + */ + static LDAPAttributeSet jndiAttrsToLdapAttrSet(Attributes jndiAttrs) throws NamingException{ + LDAPAttributeSet attrs = new LDAPAttributeSet(); +- for (Enumeration enum = jndiAttrs.getAll(); enum.hasMoreElements();) { +- attrs.add(jndiAttrToLdapAttr((Attribute) enum.nextElement())); ++ for (Enumeration enumx = jndiAttrs.getAll(); enumx.hasMoreElements();) { ++ attrs.add(jndiAttrToLdapAttr((Attribute) enumx.nextElement())); + } + return attrs; + } +diff --git a/mozilla/directory/java-sdk/ldapsp/com/netscape/jndi/ldap/ObjectMapper.java b/mozilla/directory/java-sdk/ldapsp/com/netscape/jndi/ldap/ObjectMapper.java +index 2595b8a..d9bd103 100644 +--- a/mozilla/directory/java-sdk/ldapsp/com/netscape/jndi/ldap/ObjectMapper.java ++++ b/mozilla/directory/java-sdk/ldapsp/com/netscape/jndi/ldap/ObjectMapper.java +@@ -465,8 +465,8 @@ public class ObjectMapper { + */ + static Attributes encodeDirCtxObj(DirContext obj, Attributes attrs) throws NamingException{ + Attributes ctxAttrs = obj.getAttributes(""); +- for (NamingEnumeration enum = ctxAttrs.getAll(); enum.hasMore();) { +- attrs.put((Attribute)enum.next()); ++ for (NamingEnumeration enumx = ctxAttrs.getAll(); enumx.hasMore();) { ++ attrs.put((Attribute)enumx.next()); + } + return attrs; + } diff --git a/dev-java/ldapsdk/ldapsdk-4.1.7-r4.ebuild b/dev-java/ldapsdk/ldapsdk-4.1.7-r4.ebuild new file mode 100644 index 000000000000..455166336a2a --- /dev/null +++ b/dev-java/ldapsdk/ldapsdk-4.1.7-r4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ldapsdk/ldapsdk-4.1.7-r4.ebuild,v 1.1 2014/06/21 06:58:30 ercpe Exp $ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Netscape Directory SDK for Java" +HOMEPAGE="http://www.mozilla.org/directory/javasdk.html" +SRC_URI="http://www.mozilla.org/directory/${PN}_java_20020819.tar.gz" + +LICENSE="MPL-1.1" +SLOT="4.1" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND=">=virtual/jre-1.4 + dev-java/jss:3.4 + dev-java/jakarta-oro:2.0" +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND}" + +S=${WORKDIR}/mozilla/directory/java-sdk + +java_prepare() { + cd "${WORKDIR}"/mozilla || die + epatch "${FILESDIR}"/ldapsdk-gentoo.patch + epatch "${FILESDIR}"/${PV}-*.patch + + echo "ororegexp.jar=$(java-pkg_getjars jakarta-oro-2.0)" > "${S}"/build.properties || die + echo "jss.jar=$(java-pkg_getjars jss-3.4)" >> "${S}"/build.properties || die + + cd "${S}"/ldapjdk/lib || die + rm -f *.jar || die + java-pkg_jar-from jss-3.4 + + cd "${S}"/ldapsp/lib || die + rm *.jar || die + + java-pkg_filter-compiler jikes +} + +src_compile() { + eant dist-jdk dist-filter dist-beans dist-jndi $(use_doc build-docs) +} + +src_install() { + java-pkg_dojar dist/packages/*.jar + + use doc && java-pkg_dojavadoc dist/doc/ldapsp + use source && \ + java-pkg_dosrc {ldapsp,ldapjdk}/com {ldapjdk,ldapbeans,ldapfilter}/netscape +} |