From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-java/gnu-crypto/Manifest | 1 + .../gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch | 30 ++++++++++ dev-java/gnu-crypto/gnu-crypto-2.0.1-r3.ebuild | 66 ++++++++++++++++++++++ dev-java/gnu-crypto/metadata.xml | 16 ++++++ 4 files changed, 113 insertions(+) create mode 100644 dev-java/gnu-crypto/Manifest create mode 100644 dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch create mode 100644 dev-java/gnu-crypto/gnu-crypto-2.0.1-r3.ebuild create mode 100644 dev-java/gnu-crypto/metadata.xml (limited to 'dev-java/gnu-crypto') diff --git a/dev-java/gnu-crypto/Manifest b/dev-java/gnu-crypto/Manifest new file mode 100644 index 000000000000..3ecf36c11bdc --- /dev/null +++ b/dev-java/gnu-crypto/Manifest @@ -0,0 +1 @@ +DIST gnu-crypto-2.0.1.tar.bz2 3895714 BLAKE2B 4838f7aa58cbd34d97afb7f503a29b7393ae3085f1b83c8ae65110f20ff7143928351f0aaf2a61a2abb363f764dc67dbd12955fbd0f86dd685dafda550e0e7f1 SHA512 c14aa73fb23663559195e8fc7f85a220b25078fa8ab4e7cf43b84febe96599d990ccf52fcf1f6f66f2b547d9b644bbc99b3d44dc4a777dcb72530e58c8509015 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-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..237975f5599f --- /dev/null +++ b/dev-java/gnu-crypto/metadata.xml @@ -0,0 +1,16 @@ + + + + + java@gentoo.org + Java + + + +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. + + gentoo-staging + -- cgit v1.3.1