From fda46cb7caf41ec66220c68fc948392ca4fdbfd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Tue, 15 Sep 2020 23:17:58 +0200 Subject: [PATCH] [dev-java/ldapsdk] add for jss bump --- dev-java/ldapsdk/Manifest | 1 + dev-java/ldapsdk/files/ldapsdk-gentoo.patch | 71 +++++++++++++++++++++ dev-java/ldapsdk/ldapsdk-4.22.0.ebuild | 52 +++++++++++++++ dev-java/ldapsdk/metadata.xml | 14 ++++ 4 files changed, 138 insertions(+) create mode 100644 dev-java/ldapsdk/Manifest create mode 100644 dev-java/ldapsdk/files/ldapsdk-gentoo.patch create mode 100644 dev-java/ldapsdk/ldapsdk-4.22.0.ebuild create mode 100644 dev-java/ldapsdk/metadata.xml diff --git a/dev-java/ldapsdk/Manifest b/dev-java/ldapsdk/Manifest new file mode 100644 index 0000000..ae39bca --- /dev/null +++ b/dev-java/ldapsdk/Manifest @@ -0,0 +1 @@ +DIST ldapsdk-4.22.0.tar.gz 2964492 BLAKE2B 69b74df500a96747d6677e4381a473d739498d2cb28bb2f71892a864d8d4dbfe8275d59bddcf2d0510acb92014c9614477bb2ac2b513258644f5acb2744b4fb2 SHA512 5f8d2a2c0042f281e054cfd3dc1604a5038a77b175268b415cd708031940064b62ec41043bc49d25fdd860aaaaa2a2de95a0c92c409951bfac21770c2d4ff1be diff --git a/dev-java/ldapsdk/files/ldapsdk-gentoo.patch b/dev-java/ldapsdk/files/ldapsdk-gentoo.patch new file mode 100644 index 0000000..c9e67e3 --- /dev/null +++ b/dev-java/ldapsdk/files/ldapsdk-gentoo.patch @@ -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 @@ + + +- +- ++ + + +@@ -187,14 +186,20 @@ + + + + + +@@ -202,6 +207,8 @@ + + + +@@ -210,6 +217,8 @@ + + + +@@ -218,6 +227,8 @@ + + + +@@ -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"> + + diff --git a/dev-java/ldapsdk/ldapsdk-4.22.0.ebuild b/dev-java/ldapsdk/ldapsdk-4.22.0.ebuild new file mode 100644 index 0000000..8cb9e62 --- /dev/null +++ b/dev-java/ldapsdk/ldapsdk-4.22.0.ebuild @@ -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 +} diff --git a/dev-java/ldapsdk/metadata.xml b/dev-java/ldapsdk/metadata.xml new file mode 100644 index 0000000..730175b --- /dev/null +++ b/dev-java/ldapsdk/metadata.xml @@ -0,0 +1,14 @@ + + + + + java@gentoo.org + Java + + + + +The Mozilla Directory (LDAP) SDK Project + + +