[dev-java/ldapsdk] add for jss bump

This commit is contained in:
Robert Förster 2020-09-15 23:17:58 +02:00
parent 76f4375280
commit fda46cb7ca
4 changed files with 138 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST ldapsdk-4.22.0.tar.gz 2964492 BLAKE2B 69b74df500a96747d6677e4381a473d739498d2cb28bb2f71892a864d8d4dbfe8275d59bddcf2d0510acb92014c9614477bb2ac2b513258644f5acb2744b4fb2 SHA512 5f8d2a2c0042f281e054cfd3dc1604a5038a77b175268b415cd708031940064b62ec41043bc49d25fdd860aaaaa2a2de95a0c92c409951bfac21770c2d4ff1be

View File

@ -0,0 +1,71 @@
diff --git a/java-sdk/build.xml b/java-sdk/build.xml
index e310c73..9557c7b 100644
--- a/build.xml
+++ b/build.xml
@@ -68,8 +68,7 @@
<!-- the following is to setup the correct info for sun jsse which
is jdk dependent -->
- <property name="ssllibs14" value="${basedir}/ldapjdk/lib/jss4.jar"/>
- <property name="ssllibs13" value="${basedir}/ldapjdk/lib/jaas.jar:${basedir}/ldapjdk/lib/jnet.jar:${basedir}/ldapjdk/lib/jsse.jar:${basedir}/ldapjdk/lib/jss4.jar"/>
+ <property name="ssllibs14" value="${jss.lib}"/>
<!-- we do not use the users existing classpath and instead build our own
comment the following line out if this is not desired -->
@@ -187,14 +186,20 @@
<javac srcdir="${basedir}/ldapjdk/com" destdir="${jdk.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
<javac srcdir="${basedir}/ldapjdk/netscape" destdir="${jdk.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
<javac srcdir="${basedir}/tools" destdir="${jdk.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
</target>
@@ -202,6 +207,8 @@
<javac srcdir="${basedir}/ldapfilter" destdir="${filter.dist}"
excludes="cvs/**"
classpath="${jdk.dist}:${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
</target>
@@ -210,6 +217,8 @@
<javac srcdir="${basedir}/ldapbeans" destdir="${jdk.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
</target>
@@ -218,6 +227,8 @@
<javac srcdir="${basedir}/ldapsp" destdir="${jndi.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${basedir}/ldapsp/lib/jndi.jar:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
</target>
@@ -232,7 +243,7 @@
author="true"
version="true"
use="true"
- classpath="${basedir}/ldapjdk:${jss.lib}:${basedir}/ldapjdk/lib/jss32_stub.jar:${basedir}/ldapbeans:${slf4j.lib}"
+ classpath="${basedir}/ldapjdk:${jss.lib}:${basedir}/ldapbeans:${slf4j.lib}"
additionalparam="-Xdoclint:none">
</javadoc>

View File

@ -0,0 +1,52 @@
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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="https://github.com/dogtagpki/ldap-sdk/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MPL-1.1"
SLOT="4.22"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND=">=virtual/jre-1.8
dev-java/slf4j-api
>=dev-java/jss-4.6.0"
DEPEND=">=virtual/jdk-1.8
${RDEPEND}"
S=${WORKDIR}/ldap-sdk-${PV}/java-sdk
src_prepare() {
eapply "${FILESDIR}"/ldapsdk-gentoo.patch
echo "jss.lib=$(java-pkg_getjars jss-4.7)" >> "${S}"/build.properties || die
echo "slf4j.lib=$(java-pkg_getjars slf4j-api)" >> "${S}"/build.properties || die
cd "${S}"/ldapjdk/lib || die
rm -f *.jar || die
java-pkg_jar-from jss-4.7
cd "${S}"/ldapsp/lib || die
rm *.jar || die
default
}
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
}

View File

@ -0,0 +1,14 @@
<?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>
<longdescription>
The Mozilla Directory (LDAP) SDK Project
</longdescription>
</pkgmetadata>