summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2004-12-18 16:56:27 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2004-12-18 16:56:27 +0000
commitdaaaba6af7795a70a43b8e38e5c1935459b63074 (patch)
tree1fb11405dc7cd746ab1450ef994f9b27b9397630 /dev-java/ldapsdk
parentversion bump (Manifest recommit) (diff)
downloadgentoo-2-daaaba6af7795a70a43b8e38e5c1935459b63074.tar.gz
gentoo-2-daaaba6af7795a70a43b8e38e5c1935459b63074.tar.bz2
gentoo-2-daaaba6af7795a70a43b8e38e5c1935459b63074.zip
Initial import, thanks to Jan Brinkmann. Fixes #74290.
Diffstat (limited to 'dev-java/ldapsdk')
-rw-r--r--dev-java/ldapsdk/ChangeLog9
-rw-r--r--dev-java/ldapsdk/Manifest5
-rw-r--r--dev-java/ldapsdk/files/digest-ldapsdk-4.1.71
-rw-r--r--dev-java/ldapsdk/files/ldapsdk-gentoo.patch129
-rw-r--r--dev-java/ldapsdk/ldapsdk-4.1.7.ebuild56
-rw-r--r--dev-java/ldapsdk/metadata.xml12
6 files changed, 212 insertions, 0 deletions
diff --git a/dev-java/ldapsdk/ChangeLog b/dev-java/ldapsdk/ChangeLog
new file mode 100644
index 000000000000..beb6c84e7bf5
--- /dev/null
+++ b/dev-java/ldapsdk/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-java/ldapsdk
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/ldapsdk/ChangeLog,v 1.1 2004/12/18 16:56:27 karltk Exp $
+
+*ldapsdk-4.1.7 (18 Dec 2004)
+
+ 18 Dec 2004; Karl Trygve Kalleberg <karltk@gentoo.org> ldapsdk-4.1.7.ebuild:
+ Initial import. Ebuild submitted by the fearsome Jan Brinkmann
+ <lucky@the-luckyduck.de>, fixes #74290.
diff --git a/dev-java/ldapsdk/Manifest b/dev-java/ldapsdk/Manifest
new file mode 100644
index 000000000000..11494b4beb7d
--- /dev/null
+++ b/dev-java/ldapsdk/Manifest
@@ -0,0 +1,5 @@
+MD5 44bd43e41b3eaab7de2b6029527dd0c2 ldapsdk-4.1.7.ebuild 1163
+MD5 fd7c13385ba03713888042df75649d93 ChangeLog 272
+MD5 0637a933ecb6e8cedfc4ddfcf3491728 metadata.xml 310
+MD5 fe737a838d4214efd4bc3e2b05730df6 files/ldapsdk-gentoo.patch 5569
+MD5 82c8d76c3b282427a86a22b74777081a files/digest-ldapsdk-4.1.7 74
diff --git a/dev-java/ldapsdk/files/digest-ldapsdk-4.1.7 b/dev-java/ldapsdk/files/digest-ldapsdk-4.1.7
new file mode 100644
index 000000000000..859f15cbbbcd
--- /dev/null
+++ b/dev-java/ldapsdk/files/digest-ldapsdk-4.1.7
@@ -0,0 +1 @@
+MD5 f0eef8fc5c4961cdebdd9b9188228431 ldapsdk_java_20020819.tar.gz 1068301
diff --git a/dev-java/ldapsdk/files/ldapsdk-gentoo.patch b/dev-java/ldapsdk/files/ldapsdk-gentoo.patch
new file mode 100644
index 000000000000..539b0f79d033
--- /dev/null
+++ b/dev-java/ldapsdk/files/ldapsdk-gentoo.patch
@@ -0,0 +1,129 @@
+diff -uprN mozilla.orig/directory/java-sdk/build.properties mozilla/directory/java-sdk/build.properties
+--- mozilla.orig/directory/java-sdk/build.properties 2004-12-13 16:19:25.626622784 +0100
++++ mozilla/directory/java-sdk/build.properties 2004-12-13 16:23:48.285692536 +0100
+@@ -12,6 +12,6 @@
+ # place the location of this file in the following line.
+ # the library may be downloaded from http://www.oroinc.com
+
+-#ororegexp.jar=../lib/oroinc.jar
+-
++#ororegexp.jar=
++#jss.jar=
+
+diff -uprN mozilla.orig/directory/java-sdk/build.xml mozilla/directory/java-sdk/build.xml
+--- mozilla.orig/directory/java-sdk/build.xml 2004-12-13 16:19:25.636621264 +0100
++++ mozilla/directory/java-sdk/build.xml 2004-12-13 16:36:40.320325432 +0100
+@@ -58,8 +58,7 @@
+
+ <!-- the following is to setup the correct info for sun jsse which
+ is jdk dependent -->
+- <property name="ssllibs14" value="${basedir}/ldapjdk/lib/jss32_stub.jar"/>
+- <property name="ssllibs13" value="${basedir}/ldapjdk/lib/jaas.jar:${basedir}/ldapjdk/lib/jnet.jar:${basedir}/ldapjdk/lib/jsse.jar:${basedir}/ldapjdk/lib/jss32_stub.jar"/>
++ <property name="ssllibs14" value="${jss.jar}"/>
+
+ <!-- we do not use the users existing classpath and instead build our own
+ comment the following line out if this is not desired -->
+@@ -75,7 +74,7 @@
+ dist-jndi : will build only the jndi service provider (ldapsp.jar)
+ dist-docs : will package up all the documentation (ldapdoc.zip)
+
+- build : will compile the entire sdk but not package
++ bild : will compile the entire sdk but not package
+ build-jdk : will compile only the ldap jdk jar
+ build-filter : will compile only the filter classes
+ build-beans : will compile only the ldap beans
+@@ -173,15 +172,21 @@
+ <!-- Compile the java jdk code from ${src} into ${dest} -->
+ <javac srcdir="${basedir}/ldapjdk/com" destdir="${jdk.dist}"
+ excludes="cvs/**"
+- classpath="${jsselibs}"
++ classpath="${jsselibs}"
++ source="1.4"
++ target="1.4"
+ />
+ <javac srcdir="${basedir}/ldapjdk/netscape" destdir="${jdk.dist}"
+ excludes="cvs/**"
+ classpath="${jsselibs}"
++ source="1.4"
++ target="1.4"
+ />
+ <javac srcdir="${basedir}/tools" destdir="${jdk.dist}"
+ excludes="cvs/**"
+ classpath="${jsselibs}"
++ source="1.4"
++ target="1.4"
+ />
+ </target>
+
+@@ -191,6 +196,8 @@
+ <javac srcdir="${basedir}/ldapfilter" destdir="${filter.dist}"
+ excludes="cvs/**"
+ classpath="${jdk.dist}:${jsselibs}:${ororegexp.jar}"
++ source="1.4"
++ target="1.4"
+ />
+ </target>
+
+@@ -199,6 +206,8 @@
+ <javac srcdir="${basedir}/ldapbeans" destdir="${jdk.dist}"
+ excludes="cvs/**"
+ classpath="${jsselibs}"
++ source="1.4"
++ target="1.4"
+ />
+ </target>
+
+@@ -207,6 +216,8 @@
+ <javac srcdir="${basedir}/ldapsp" destdir="${jndi.dist}"
+ excludes="cvs/**"
+ classpath="${jsselibs}:${basedir}/ldapsp/lib/jndi.jar"
++ source="1.4"
++ target="1.4"
+ />
+ </target>
+
+@@ -221,7 +232,7 @@
+ author="true"
+ version="true"
+ use="true"
+- classpath="${basedir}/ldapjdk:${basedir}/ldapjdk/lib/jss32_stub.jar:${basedir}/ldapbeans" >
++ classpath="${basedir}/ldapjdk:${jss.jar}:${basedir}/ldapbeans" >
+ </javadoc>
+
+ <javadoc packagenames="com.netscape.jndi.ldap.controls.*"
+diff -uprN mozilla.orig/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPFilterDescriptor.java mozilla/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPFilterDescriptor.java
+--- mozilla.orig/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPFilterDescriptor.java 2004-12-13 16:19:25.601626584 +0100
++++ mozilla/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPFilterDescriptor.java 2004-12-13 16:19:51.198735232 +0100
+@@ -24,7 +24,7 @@ package netscape.ldap.util;
+ import java.io.*;
+ import java.util.*;
+ import java.net.*;
+-import com.oroinc.text.regex.*;
++import org.apache.oro.text.regex.*;
+ import netscape.ldap.*;
+
+ /**
+diff -uprN mozilla.orig/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPIntFilterList.java mozilla/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPIntFilterList.java
+--- mozilla.orig/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPIntFilterList.java 2004-12-13 16:19:25.601626584 +0100
++++ mozilla/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPIntFilterList.java 2004-12-13 16:20:23.892764984 +0100
+@@ -22,7 +22,7 @@
+ package netscape.ldap.util;
+
+ import java.util.*;
+-import com.oroinc.text.regex.*;
++import org.apache.oro.text.regex.*;
+
+ /**
+ * Represents an Internal LDAPFilterList object. This is an internal object
+diff -uprN mozilla.orig/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPIntFilterSet.java mozilla/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPIntFilterSet.java
+--- mozilla.orig/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPIntFilterSet.java 2004-12-13 16:19:25.601626584 +0100
++++ mozilla/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPIntFilterSet.java 2004-12-13 16:20:11.728614216 +0100
+@@ -22,7 +22,7 @@
+ package netscape.ldap.util;
+
+ import java.util.*;
+-import com.oroinc.text.regex.*;
++import org.apache.oro.text.regex.*;
+ /**
+ * Represents an LDAPIntFilterSet object. This is an internal object that
+ * should never be instantiated directly by the developer.
diff --git a/dev-java/ldapsdk/ldapsdk-4.1.7.ebuild b/dev-java/ldapsdk/ldapsdk-4.1.7.ebuild
new file mode 100644
index 000000000000..aac821e43ec1
--- /dev/null
+++ b/dev-java/ldapsdk/ldapsdk-4.1.7.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2004 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.ebuild,v 1.1 2004/12/18 16:56:27 karltk Exp $
+
+inherit eutils java-pkg
+
+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="~x86 ~amd64"
+IUSE="doc"
+
+S=${WORKDIR}/mozilla/directory/java-sdk
+
+DEPEND=">=virtual/jdk-1.4
+ >=dev-java/ant-core-1.6.2"
+RDEPEND=">=virtual/jre-1.4
+ =dev-java/jss-3.4
+ >=dev-java/oro-2.0.8"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${WORKDIR}/mozilla
+ epatch ${FILESDIR}/ldapsdk-gentoo.patch
+
+ cd ${S}
+ echo "ororegexp.jar=`java-config -p oro`" > build.properties
+ echo "jss.jar=`java-config -p jss-3.4`" >> build.properties
+
+ cd ${S}/ldapjdk/lib
+ rm -f *.jar
+ java-pkg_jar-from jss-3.4
+
+ cd ${S}/ldapsp/lib
+ rm *.jar
+}
+
+src_compile() {
+ local antflags="dist-jdk dist-filter dist-beans dist-jndi"
+ if use doc; then
+ antflags="${antflags} build-docs"
+ fi
+ ant ${antflags} || die "compile failed"
+}
+
+src_install () {
+ java-pkg_dojar dist/packages/*.jar
+
+ if use doc; then
+ java-pkg_dohtml -r dist/doc/*
+ fi
+}
diff --git a/dev-java/ldapsdk/metadata.xml b/dev-java/ldapsdk/metadata.xml
new file mode 100644
index 000000000000..9fa69c627aaf
--- /dev/null
+++ b/dev-java/ldapsdk/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+
+The Mozilla Directory (LDAP) SDK Project
+
+</longdescription>
+</pkgmetadata>