commit:     9ad1d246dee1a45fe5b458526db2e5172c75d023
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Fri Nov  1 11:14:39 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Nov  4 07:30:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ad1d246

dev-java/bcutil: add 1.79

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: 
https://github.com/gentoo/gentoo/pull/39180/commits/ca01f1cbd93da21fafe1f5e8b2ee5de3d86c7cd5
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/bcutil/Manifest           |  1 +
 dev-java/bcutil/bcutil-1.79.ebuild | 61 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-java/bcutil/Manifest b/dev-java/bcutil/Manifest
index 0fc272147c3d..d5ddb1650319 100644
--- a/dev-java/bcutil/Manifest
+++ b/dev-java/bcutil/Manifest
@@ -1 +1,2 @@
 DIST bc-java-r1rv78v1.tar.gz 47211344 BLAKE2B 
6d28e69db8ad0043a5cd6c0a4f6901ff40884be4baf60ee40d4cb5487d799e6ac5ef4282b5d6e7f873e45607394890dd26e3150c9c1729bd5346d9cc8f30f240
 SHA512 
87e6ecd6fea47877d9d7a196f58c5b45a7f026f18f17b71d4155061fad024194c30ce0fc44ea3e879b17f310a6626407f345a8e8970781afec4551f2aa688223
+DIST bc-java-r1rv79.tar.gz 47563177 BLAKE2B 
7ca8b64ab004fb70399e950e8c588b19d110596790525ce30aeec3f2c6501bffd1bab6854c6bf1499f101e33e0ac8127c2cdaa34e5531c430e4f00fb145202f3
 SHA512 
294241371f536e8a9be8ff2307eaad433620c9becb26a00f6b225ea31488bc40dd8b01d20c18e47c105c7a8f1b2415136608d82811581fad4718db02e9c882a3

diff --git a/dev-java/bcutil/bcutil-1.79.ebuild 
b/dev-java/bcutil/bcutil-1.79.ebuild
new file mode 100644
index 000000000000..10aa78040652
--- /dev/null
+++ b/dev-java/bcutil/bcutil-1.79.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.bouncycastle:bcutil-jdk18on:${PV}"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Java APIs for ASN.1 extension and utility APIs used to support 
bcpkix and bctls"
+HOMEPAGE="https://www.bouncycastle.org/java.html";
+MY_PV="r$(ver_rs 1 'rv' 2 'v')"
+SRC_URI="https://github.com/bcgit/bc-java/archive/${MY_PV}.tar.gz -> 
bc-java-${MY_PV}.tar.gz"
+S="${WORKDIR}/bc-java-${MY_PV}/util"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+CDEPEND="~dev-java/bcprov-${PV}:0"
+
+DEPEND="
+       ${CDEPEND}
+       >=virtual/jdk-11:*
+"
+
+RDEPEND="
+       ${CDEPEND}
+       >=virtual/jre-1.8:*
+"
+
+DOCS=( ../{README,SECURITY}.md )
+HTML_DOCS=( ../{CONTRIBUTORS,index}.html )
+
+JAVA_AUTOMATIC_MODULE_NAME="org.bouncycastle.util"
+JAVA_GENTOO_CLASSPATH="bcprov"
+JAVA_SRC_DIR=(
+       "src/main/java"
+       "src/main/jdk1.9"
+)
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+JAVA_TEST_RUN_ONLY=(
+       "org.bouncycastle.asn1.util.test.AllTests"
+       "org.bouncycastle.oer.test.AllTests"
+)
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_prepare() {
+       java-pkg-2_src_prepare
+       java-pkg_clean ..
+}
+
+src_install() {
+       docinto html
+       dodoc -r ../docs
+       java-pkg-simple_src_install
+}

Reply via email to