summaryrefslogtreecommitdiff
path: root/dev-java/bcpg
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/bcpg')
-rw-r--r--dev-java/bcpg/Manifest6
-rw-r--r--dev-java/bcpg/bcpg-1.78.1.ebuild (renamed from dev-java/bcpg/bcpg-1.77.ebuild)23
-rw-r--r--dev-java/bcpg/bcpg-1.79.ebuild69
3 files changed, 89 insertions, 9 deletions
diff --git a/dev-java/bcpg/Manifest b/dev-java/bcpg/Manifest
index ae8b40272f26..e526b68d5eff 100644
--- a/dev-java/bcpg/Manifest
+++ b/dev-java/bcpg/Manifest
@@ -1,3 +1,5 @@
-DIST bc-java-r1rv77.tar.gz 31402744 BLAKE2B 1ca1e1dac1ed3d613ae66f08cd8a954e63d43a49ed402f5bd7c30cf1f0830ad29104aa91a9a0a3cbbb5ea750392bc285172a1ab38f2aba1600fa3ca4c469b4f5 SHA512 d75a0ce94bd006499eef9393491347ae70544643c93c2f7591df3ff0179bd477a5066891c7c3bdeb09bd693093c9dc7d29c48462a1d539e464cbf2ee9c1dfce4
-EBUILD bcpg-1.77.ebuild 1368 BLAKE2B 168cfc3b13bba83fc1e34daddddcd0b5215a9dbb7ad452593b1ba8afc705f6c80fff499f2a8f7576ac6b61f10b5f06ce9f3182a448f00a9819dec85abd14e46b SHA512 5e2c7edb94de02b7fde234539dab39c0cf88f810cc77e28523cc288751cb5d27c68aa7032a49efa9d536f8c0571c7b744e82f7208590d1dd4e6bb3719e9dde1a
+DIST bc-java-r1rv78v1.tar.gz 47211344 BLAKE2B 6d28e69db8ad0043a5cd6c0a4f6901ff40884be4baf60ee40d4cb5487d799e6ac5ef4282b5d6e7f873e45607394890dd26e3150c9c1729bd5346d9cc8f30f240 SHA512 87e6ecd6fea47877d9d7a196f58c5b45a7f026f18f17b71d4155061fad024194c30ce0fc44ea3e879b17f310a6626407f345a8e8970781afec4551f2aa688223
+DIST bc-java-r1rv79.tar.gz 47563177 BLAKE2B 7ca8b64ab004fb70399e950e8c588b19d110596790525ce30aeec3f2c6501bffd1bab6854c6bf1499f101e33e0ac8127c2cdaa34e5531c430e4f00fb145202f3 SHA512 294241371f536e8a9be8ff2307eaad433620c9becb26a00f6b225ea31488bc40dd8b01d20c18e47c105c7a8f1b2415136608d82811581fad4718db02e9c882a3
+EBUILD bcpg-1.78.1.ebuild 1413 BLAKE2B 53ec7571a7d5261880dc41cd7f506572f7a01fe4a05d9fa336bf9b31de1e4eff3adbbad3e74eb684db05ca6ec8ae080d50012a1779d705b5029fda3f3b8588db SHA512 1853c4592f581d79883d4113c7064443d9daf668d6b4697544859a0cd8509f1481dd189188818db1ae18c3675dc6b6d5d601607df93b11eb38721b021f463ebf
+EBUILD bcpg-1.79.ebuild 1416 BLAKE2B 08ee14bd7932bb2f1aa02c1788cd53ff693adcca341dd174a96383f745de4e16b3d168afbc6739ea33248b2890180570150771027e98f9faf30c53531971e445 SHA512 7f0aaefaffa113396b495996c2d4745454b8061788ea31eb7398014b4fabf469591a450b54e4004ca34dba5a294ec98125c6681afc4e82fc28c81faf5c1941da
MISC metadata.xml 599 BLAKE2B 08d5304a26fb1a93dde104bbde8a26dd8850f9ed914f241baebc20c98a944c8d055f36071d114a07676c89fa87be261a4cfbf3fdc23d45d0e313a2e68f5723ac SHA512 f36347e51f6574d1feac4af8e18bdebfb536820305c3d136db51047c5799d767a84cf6885ac0982a6c4d61ce4aab76ccf00ca975f92f4150127b8fd57c781282
diff --git a/dev-java/bcpg/bcpg-1.77.ebuild b/dev-java/bcpg/bcpg-1.78.1.ebuild
index cc3e0343f4be..1d04452ce005 100644
--- a/dev-java/bcpg/bcpg-1.77.ebuild
+++ b/dev-java/bcpg/bcpg-1.78.1.ebuild
@@ -11,19 +11,28 @@ inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Java cryptography APIs"
HOMEPAGE="https://www.bouncycastle.org/java.html"
-MY_PV="r${PV/./rv}"
+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}/pg"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="amd64 arm64 ppc64 x86"
+KEYWORDS="amd64 arm64 ppc64"
-CP_DEPEND="~dev-java/bcprov-${PV}:0"
-DEPEND="${CP_DEPEND}
- >=virtual/jdk-11:*"
-RDEPEND="${CP_DEPEND}
- >=virtual/jre-1.8:*"
+CP_DEPEND="
+ ~dev-java/bcprov-${PV}:0
+ ~dev-java/bcutil-${PV}:0
+"
+
+DEPEND="
+ ${CP_DEPEND}
+ >=virtual/jdk-11:*
+"
+
+RDEPEND="
+ ${CP_DEPEND}
+ >=virtual/jre-1.8:*
+"
DOCS=( ../{README,SECURITY}.md )
HTML_DOCS=( ../{CONTRIBUTORS,index}.html )
diff --git a/dev-java/bcpg/bcpg-1.79.ebuild b/dev-java/bcpg/bcpg-1.79.ebuild
new file mode 100644
index 000000000000..757092168ce3
--- /dev/null
+++ b/dev-java/bcpg/bcpg-1.79.ebuild
@@ -0,0 +1,69 @@
+# 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:bcpg-jdk18on:${PV}"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Java cryptography APIs"
+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}/pg"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+CP_DEPEND="
+ ~dev-java/bcprov-${PV}:0
+ ~dev-java/bcutil-${PV}:0
+"
+
+DEPEND="
+ ${CP_DEPEND}
+ >=virtual/jdk-11:*
+"
+
+RDEPEND="
+ ${CP_DEPEND}
+ >=virtual/jre-1.8:*
+"
+
+DOCS=( ../{README,SECURITY}.md )
+HTML_DOCS=( ../{CONTRIBUTORS,index}.html )
+
+JAVA_SRC_DIR=(
+ "src/main/java"
+ "src/main/jdk1.9"
+)
+
+JAVA_AUTOMATIC_MODULE_NAME="org.bouncycastle.pg"
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ java-pkg_clean ..
+}
+
+src_test() {
+ pushd src/test/java || die
+ local JAVA_TEST_RUN_ONLY=$(find * \
+ -name "AllTests.java" )
+ popd || die
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
+ java-pkg-simple_src_test
+}
+
+src_install() {
+ docinto html
+ dodoc -r ../docs
+ java-pkg-simple_src_install
+}