diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/gnu-crypto | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/gnu-crypto')
-rw-r--r-- | dev-java/gnu-crypto/Manifest | 5 | ||||
-rw-r--r-- | dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch | 30 | ||||
-rw-r--r-- | dev-java/gnu-crypto/gnu-crypto-2.0.1-r2.ebuild | 51 | ||||
-rw-r--r-- | dev-java/gnu-crypto/gnu-crypto-2.0.1-r3.ebuild | 66 | ||||
-rw-r--r-- | dev-java/gnu-crypto/metadata.xml | 15 |
5 files changed, 167 insertions, 0 deletions
diff --git a/dev-java/gnu-crypto/Manifest b/dev-java/gnu-crypto/Manifest new file mode 100644 index 000000000000..9854fa901f07 --- /dev/null +++ b/dev-java/gnu-crypto/Manifest @@ -0,0 +1,5 @@ +AUX gnu-crypto-2.0.1-jdk15.patch 1551 BLAKE2B 9111fdc0ca8eff845c61a298b92fc1abc39c88caf0cbd04e2adb4ca50aa025a21c3f2694854df54c250505bab580cf40a40db9b67ab0ec881d65aa3baea3ca36 SHA512 f30f33e29bf400eb8bdd465ffd649fd2aec03ab6d3a315c5da2a8b6375524f1cc20f6ec3f813a9940fbdecf4364c8985bed946ada633d73bda9508c0dc198923 +DIST gnu-crypto-2.0.1.tar.bz2 3895714 BLAKE2B 4838f7aa58cbd34d97afb7f503a29b7393ae3085f1b83c8ae65110f20ff7143928351f0aaf2a61a2abb363f764dc67dbd12955fbd0f86dd685dafda550e0e7f1 SHA512 c14aa73fb23663559195e8fc7f85a220b25078fa8ab4e7cf43b84febe96599d990ccf52fcf1f6f66f2b547d9b644bbc99b3d44dc4a777dcb72530e58c8509015 +EBUILD gnu-crypto-2.0.1-r2.ebuild 1134 BLAKE2B 9381cf170ffe744c24f29a9098683d4da17071b5117efa95ea4840ac700e71751cc58d0344dec776adbe1b992c1bb2d49b37b8c66af7b05243cc2d3c37cc21e9 SHA512 34ab8c7a250c6b5e3c18338f53bd0e3ce6cac95fa659b174bf69c751fb764dbff883f55a270d37346f93689763e9c6f4e0e8d85e0e8c6fd526caf5cc5746ae09 +EBUILD gnu-crypto-2.0.1-r3.ebuild 1238 BLAKE2B 301eb79891ff1580da7fdafa88fc44e743a5df88e250d86606dcc02d647db5910bca22511c5875625b1a79bee5ea81b8c33cafc85b66adde0044b26024f54c25 SHA512 01b474db07874cd33fda2671c147c965f445e08c5c51b2ccd34377f34c639bf06fde2875762e1c4166d62de0f450bfac20c56e75d9793bc35b5f6b7bfccd2828 +MISC metadata.xml 535 BLAKE2B 2271d87cef0c6759b2e79d1f22025c8f5899990f5689f9e4343c45e1c039a22a7e242ca0adb95950899e222671dda176c1d5248b8f3d2a9134a58b481b7a5bb2 SHA512 113c98ec48fed10332c9677b90df1803bbcaae3311e5f71be6c681f89bb449618f66b11736bc76bfea5d21828671d30879fe56c49278e9f75b137c62ccb5eb22 diff --git a/dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch b/dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch new file mode 100644 index 000000000000..47957cc5ec5f --- /dev/null +++ b/dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch @@ -0,0 +1,30 @@ +diff -Nur gnu-crypto-2.0.1/source/gnu/crypto/sasl/ClientMechanism.java gnu-crypto-2.0.1-new/source/gnu/crypto/sasl/ClientMechanism.java +--- gnu-crypto-2.0.1/source/gnu/crypto/sasl/ClientMechanism.java 2003-11-21 10:22:10.000000000 +0100 ++++ gnu-crypto-2.0.1-new/source/gnu/crypto/sasl/ClientMechanism.java 2005-05-24 16:16:37.493727834 +0200 +@@ -140,9 +140,9 @@ + return mechanism;
+ }
+
+- public Object getNegotiatedProperty(final String propName) throws SaslException {
++ public Object getNegotiatedProperty(final String propName) {
+ if (!isComplete()) {
+- throw new IllegalMechanismStateException();
++ throw new IllegalStateException();
+ }
+ if (Sasl.QOP.equals(propName)) {
+ return getNegotiatedQOP();
+diff -Nur gnu-crypto-2.0.1/source/gnu/crypto/sasl/ServerMechanism.java gnu-crypto-2.0.1-new/source/gnu/crypto/sasl/ServerMechanism.java +--- gnu-crypto-2.0.1/source/gnu/crypto/sasl/ServerMechanism.java 2003-11-21 10:26:14.000000000 +0100 ++++ gnu-crypto-2.0.1-new/source/gnu/crypto/sasl/ServerMechanism.java 2005-05-24 16:16:55.503085024 +0200 +@@ -147,9 +147,9 @@ + return this.authorizationID;
+ }
+
+- public Object getNegotiatedProperty(final String propName) throws SaslException {
++ public Object getNegotiatedProperty(final String propName) {
+ if (!isComplete()) {
+- throw new IllegalMechanismStateException();
++ throw new IllegalStateException();
+ }
+ if (Sasl.QOP.equals(propName)) {
+ return getNegotiatedQOP();
diff --git a/dev-java/gnu-crypto/gnu-crypto-2.0.1-r2.ebuild b/dev-java/gnu-crypto/gnu-crypto-2.0.1-r2.ebuild new file mode 100644 index 000000000000..a193aa43cf2d --- /dev/null +++ b/dev-java/gnu-crypto/gnu-crypto-2.0.1-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 eutils + +DESCRIPTION="GNU Crypto cryptographic primitives for Java" +HOMEPAGE="https://www.gnu.org/software/gnu-crypto/" +SRC_URI="ftp://ftp.gnupg.org/GnuPG/gnu-crypto/gnu-crypto-2.0.1.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +DEPEND=">=virtual/jdk-1.3" +RDEPEND=">=virtual/jre-1.3" + +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}/${P}-jdk15.patch" +} + +src_configure() { + # jikes support disabled, doesnt work: #86655 + econf JAVAC="javac" JAVACFLAGS="$(java-pkg_javac-args)" --with-jce=yes --with-sasl=yes +} + +src_compile() { + emake -j1 + if use doc ; then + emake -j1 javadoc + fi +} + +src_install() { + einstall + rm "${ED}"/usr/share/*.jar + + java-pkg_dojar source/gnu-crypto.jar + java-pkg_dojar jce/javax-crypto.jar + java-pkg_dojar security/javax-security.jar + + use doc && java-pkg_dojavadoc api + use source && java-pkg_dosrc source/* jce/* security/* + + dodoc AUTHORS ChangeLog NEWS README THANKS +} diff --git a/dev-java/gnu-crypto/gnu-crypto-2.0.1-r3.ebuild b/dev-java/gnu-crypto/gnu-crypto-2.0.1-r3.ebuild new file mode 100644 index 000000000000..e717650d7a82 --- /dev/null +++ b/dev-java/gnu-crypto/gnu-crypto-2.0.1-r3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="GNU Crypto cryptographic primitives for Java" +HOMEPAGE="https://www.gnu.org/software/gnu-crypto/" +SRC_URI="ftp://ftp.gnupg.org/GnuPG/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +DEPEND=">=virtual/jdk-1.6" +RDEPEND=">=virtual/jre-1.6" + +EANT_BUILD_XML="${S}/build.xml" +EANT_BUILD_TARGET="jar" + +EANT_DOC_TARGET="javadoc" + +java_prepare() { + epatch "${FILESDIR}/${P}-jdk15.patch" +} + +src_compile() { + java-pkg-2_src_compile +} + +src_test() { + local TEST_TARGETS=( + check + ent + ) + + for target in ${TEST_TARGETS[@]}; do + EANT_TEST_TARGET=${target} \ + java-pkg-2_src_test + done +} + +src_install() { + local GNU_CRYPTO_JARS=( + "${PN}" + javax-crypto + javax-security + ) + + if use test; then + GNU_CRYPTO_JARS=(${GNU_CRYPTO_JARS[@]} "${PN}-test") + fi + + for jar in ${GNU_CRYPTO_JARS[@]}; do + java-pkg_dojar "lib/${jar}.jar" + done + + use doc && java-pkg_dojavadoc docs/api + use source && java-pkg_dosrc source/* jce/* security/* + + dodoc AUTHORS ChangeLog NEWS README THANKS +} diff --git a/dev-java/gnu-crypto/metadata.xml b/dev-java/gnu-crypto/metadata.xml new file mode 100644 index 000000000000..7f1fbbb089f6 --- /dev/null +++ b/dev-java/gnu-crypto/metadata.xml @@ -0,0 +1,15 @@ +<?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> +GNU Crypto, part of the GNU project, released under the aegis of GNU, +aims at providing free, versatile, high-quality, and provably correct +implementations of cryptographic primitives and tools in the Java +programming language for use by programmers and end-users. +</longdescription> +</pkgmetadata> |