diff options
Diffstat (limited to 'dev-java/bcpg')
-rw-r--r-- | dev-java/bcpg/Manifest | 4 | ||||
-rw-r--r-- | dev-java/bcpg/bcpg-1.76.ebuild | 60 | ||||
-rw-r--r-- | dev-java/bcpg/metadata.xml | 3 |
3 files changed, 66 insertions, 1 deletions
diff --git a/dev-java/bcpg/Manifest b/dev-java/bcpg/Manifest index 0e6905acd575..a8f8d84200ff 100644 --- a/dev-java/bcpg/Manifest +++ b/dev-java/bcpg/Manifest @@ -1,3 +1,5 @@ DIST bc-java-r1rv72.tar.gz 380374879 BLAKE2B 53c593c1d97e9ee56388479dce7386d254f74a8bab9612e802ebe963df84d1a397fe0c5a7a0d0db2ac2cd3252ae43e79c67b9d3ba1b5ffc20cc8727c7e1a6994 SHA512 dbfdd9e4f30ab713584830a0fd0d7e4f89904366bf4953a9e722656cc4cd92c9d29238649efa7b4cdab64e2c08f4b3b3c96667d1ade569ade5a5a2c9ad9d5b5c +DIST bc-java-r1rv76.tar.gz 31256952 BLAKE2B b791ef3da7189bc6990935aaad7c331c1bf6a45af0cdfc72056ae0cf1723e57ce15a76060251f6de630b0729ffe22ba4718255c103a8ab66db61f2e46f1201c8 SHA512 7d408821408bbabd209d9507b061f3113822878c12b12a040c829f5a8c6bdf8450719aef60c423025824bec1fcb6c63d8478d1f84f3cb1d692fdbacde6d9ce6e EBUILD bcpg-1.72.ebuild 1293 BLAKE2B 06ccf6ccb967573908dd4d9204e33cccf9b1923587e84d71830dd3666c34e6c015c8e0e1597ebf7ebd2c92a2fa4bce4c145202ac01592d355c643b73977e67de SHA512 8f0cac84f8fddc49dd7d49628bf4e396398739b5202edd20344f85a4f94e9a435b20ce0bc4f95d9081899a9f06757e572da78392b86d225517f908102b8264e6 -MISC metadata.xml 521 BLAKE2B 76af9d5a734fef6cc73b43cf2f3cdf630fba2ff8deeaebe787b08b5b94f0bc1d7988ffb1d4820641c05d5fa139dfe0798aa7105e93142c835644760dbe52121e SHA512 4202d5ec7ba349c1cabafc474edf5cc5379c475d3a313b2a9ea90f1f7edf88d9a91b557042cfcf496f477b02a7f0b5e1ae61ded26f92bdfca15812fa34ee2133 +EBUILD bcpg-1.76.ebuild 1346 BLAKE2B 4459d6cf771f36630508dd1d2bea875c47bf9eedc76e600847d1afada08b82df77c142e3d2a5b1123af94a2390b755608a9f4a500599519aa2dca4b66f900eb0 SHA512 54db2e3edd1ee5386af4c98c635518ca5746472e121b4533f02c868b2b1532b30a4f71e88541d53bdeeae08196556fcd42a33d7e7e1927ba2dabe6b231337fec +MISC metadata.xml 599 BLAKE2B 08d5304a26fb1a93dde104bbde8a26dd8850f9ed914f241baebc20c98a944c8d055f36071d114a07676c89fa87be261a4cfbf3fdc23d45d0e313a2e68f5723ac SHA512 f36347e51f6574d1feac4af8e18bdebfb536820305c3d136db51047c5799d767a84cf6885ac0982a6c4d61ce4aab76ccf00ca975f92f4150127b8fd57c781282 diff --git a/dev-java/bcpg/bcpg-1.76.ebuild b/dev-java/bcpg/bcpg-1.76.ebuild new file mode 100644 index 000000000000..6c492b168642 --- /dev/null +++ b/dev-java/bcpg/bcpg-1.76.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2023 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:1.76" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java cryptography APIs" +HOMEPAGE="https://www.bouncycastle.org/java.html" +SRC_URI="https://github.com/bcgit/bc-java/archive/r${PV/./rv}.tar.gz -> bc-java-r${PV/./rv}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +CP_DEPEND="~dev-java/bcprov-${PV}:0" +DEPEND="${CP_DEPEND} + >=virtual/jdk-11:*" +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +DOCS=( ../{README,SECURITY}.md ) +HTML_DOCS=( ../{CONTRIBUTORS,index}.html ) + +S="${WORKDIR}/bc-java-r${PV/./rv}/pg" + +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() { + default + 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 +} diff --git a/dev-java/bcpg/metadata.xml b/dev-java/bcpg/metadata.xml index 3cbf364f100a..34cf5468297e 100644 --- a/dev-java/bcpg/metadata.xml +++ b/dev-java/bcpg/metadata.xml @@ -5,6 +5,9 @@ <email>java@gentoo.org</email> <name>Java</name> </maintainer> + <upstream> + <remote-id type="github">bcgit/bc-java</remote-id> + </upstream> <longdescription> The Bouncy Castle Java API for handling the OpenPGP protocol. This jar contains the OpenPGP API for JDK 1.8 and up. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. </longdescription> |