diff options
Diffstat (limited to 'dev-java/bcpg')
| -rw-r--r-- | dev-java/bcpg/Manifest | 2 | ||||
| -rw-r--r-- | dev-java/bcpg/bcpg-1.50-r1.ebuild | 70 | ||||
| -rw-r--r-- | dev-java/bcpg/bcpg-1.50-r2.ebuild | 73 | ||||
| -rw-r--r-- | dev-java/bcpg/bcpg-1.52-r1.ebuild | 70 | ||||
| -rw-r--r-- | dev-java/bcpg/bcpg-1.52-r2.ebuild | 73 | ||||
| -rw-r--r-- | dev-java/bcpg/metadata.xml | 9 |
6 files changed, 297 insertions, 0 deletions
diff --git a/dev-java/bcpg/Manifest b/dev-java/bcpg/Manifest new file mode 100644 index 000000000000..9ccda10b7f7e --- /dev/null +++ b/dev-java/bcpg/Manifest @@ -0,0 +1,2 @@ +DIST bcpg-jdk15on-150.tar.gz 691012 BLAKE2B ee566fb6deb44177e31bfe80b6bd1f13d39d6820cffe3693bd85314ccfd65c4805275b3925d52a6bda6b1ad7e3ea267f1f0bed3926420b5920e5f300020ecd9a SHA512 763d253b9bb45b7e7fab75d557daa784c3d4a503ced979adc986e5688c3939db248853c864a2f4bec6d5b1dd9ed668d5f278c91b5607774fc703971d0b330fe6 +DIST bcpg-jdk15on-152.tar.gz 748424 BLAKE2B f847fa95ae4eff6c9c95f23ad318d3b967bd224a5dbaea20f8e904a50173076e16723519e8985d4afd2ac02c6a7fe83399e0c6005971bd460b41055c4866a506 SHA512 1619a8cd4024129876266415406882ac5df3dd84fd3e01d7593304874ad641fe72ae95150d0e4414b294e2e5ca8eb39e41a25658f9502b4cd9622fbf0f3d45a0 diff --git a/dev-java/bcpg/bcpg-1.50-r1.ebuild b/dev-java/bcpg/bcpg-1.50-r1.ebuild new file mode 100644 index 000000000000..b895d1674885 --- /dev/null +++ b/dev-java/bcpg/bcpg-1.50-r1.ebuild @@ -0,0 +1,70 @@ +# 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-pkg-simple + +MY_P="${PN}-jdk15on-${PV/./}" + +DESCRIPTION="Java cryptography APIs" +HOMEPAGE="http://www.bouncycastle.org/java.html" +SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="1.50" +KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos" + +# Tests are currently broken. Appears to need older version of bcprov; but since bcprov is not slotted, this can cause conflicts. +# Needs further investigation; though, only a small part has tests and there are no tests for bcpg itself. +RESTRICT="test" + +CDEPEND="dev-java/bcprov:${SLOT}" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + test? ( + dev-java/ant-junit:0 + ) + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +S="${WORKDIR}/${MY_P}" + +JAVA_GENTOO_CLASSPATH="bcprov-${SLOT}" + +src_unpack() { + default + cd "${S}" + unpack ./src.zip +} + +java_prepare() { + if ! use test; then + local RM_TEST_FILES=( + org/bouncycastle/openpgp/test + org/bouncycastle/openpgp/examples/test + ) + rm -rf "${RM_TEST_FILES[@]}" || die + fi +} + +src_compile() { + java-pkg-simple_src_compile +} + +src_test() { + local cp="${PN}.jar:bcprov.jar:junit.jar" + local pkg="org.bouncycastle" + java -cp ${cp} ${pkg}.openpgp.test.AllTests | tee openpgp.tests + grep -q FAILURES *.tests && die "Tests failed." +} + +src_install() { + java-pkg-simple_src_install + use source && java-pkg_dosrc org +} diff --git a/dev-java/bcpg/bcpg-1.50-r2.ebuild b/dev-java/bcpg/bcpg-1.50-r2.ebuild new file mode 100644 index 000000000000..6a89f6e93494 --- /dev/null +++ b/dev-java/bcpg/bcpg-1.50-r2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-pkg-simple + +MY_P="${PN}-jdk15on-${PV/./}" + +DESCRIPTION="Java cryptography APIs" +HOMEPAGE="http://www.bouncycastle.org/java.html" +SRC_URI="http://polydistortion.net/bc/download/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="1.50" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +# Tests are currently broken. Appears to need older version of bcprov; but +# since bcprov is not slotted, this can cause conflicts. Needs further +# investigation; though, only a small part has tests and there are no tests for +# bcpg itself. +RESTRICT="test" + +CDEPEND="dev-java/bcprov:${SLOT}" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6 + test? ( dev-java/ant-junit:0 )" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +S="${WORKDIR}/${MY_P}" + +JAVA_GENTOO_CLASSPATH="bcprov-${SLOT}" + +src_unpack() { + default + cd "${S}" || die + unpack ./src.zip +} + +src_prepare() { + default + if ! use test; then + local RM_TEST_FILES=( + org/bouncycastle/openpgp/test + org/bouncycastle/openpgp/examples/test + ) + rm -rv "${RM_TEST_FILES[@]}" || die + fi +} + +src_compile() { + java-pkg-simple_src_compile +} + +src_test() { + local cp="${PN}.jar:bcprov.jar:junit.jar" + local pkg="org.bouncycastle" + java -cp ${cp} ${pkg}.openpgp.test.AllTests | tee openpgp.tests + grep -q FAILURES *.tests && die "Tests failed." +} + +src_install() { + einstalldocs + java-pkg-simple_src_install + use source && java-pkg_dosrc org +} diff --git a/dev-java/bcpg/bcpg-1.52-r1.ebuild b/dev-java/bcpg/bcpg-1.52-r1.ebuild new file mode 100644 index 000000000000..74354a732de7 --- /dev/null +++ b/dev-java/bcpg/bcpg-1.52-r1.ebuild @@ -0,0 +1,70 @@ +# 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-pkg-simple + +MY_P="${PN}-jdk15on-${PV/./}" + +DESCRIPTION="Java cryptography APIs" +HOMEPAGE="http://www.bouncycastle.org/java.html" +SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="1.52" +KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos" + +# Tests are currently broken. Appears to need older version of bcprov; but since bcprov is not slotted, this can cause conflicts. +# Needs further investigation; though, only a small part has tests and there are no tests for bcpg itself. +RESTRICT="test" + +CDEPEND="dev-java/bcprov:${SLOT}" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + test? ( + dev-java/ant-junit:0 + ) + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +S="${WORKDIR}/${MY_P}" + +JAVA_GENTOO_CLASSPATH="bcprov-${SLOT}" + +src_unpack() { + default + cd "${S}" + unpack ./src.zip +} + +java_prepare() { + if ! use test; then + local RM_TEST_FILES=( + org/bouncycastle/openpgp/test + org/bouncycastle/openpgp/examples/test + ) + rm -rf "${RM_TEST_FILES[@]}" || die + fi +} + +src_compile() { + java-pkg-simple_src_compile +} + +src_test() { + local cp="${PN}.jar:bcprov.jar:junit.jar" + local pkg="org.bouncycastle" + java -cp ${cp} ${pkg}.openpgp.test.AllTests | tee openpgp.tests + grep -q FAILURES *.tests && die "Tests failed." +} + +src_install() { + java-pkg-simple_src_install + use source && java-pkg_dosrc org +} diff --git a/dev-java/bcpg/bcpg-1.52-r2.ebuild b/dev-java/bcpg/bcpg-1.52-r2.ebuild new file mode 100644 index 000000000000..a819a8dcd7e9 --- /dev/null +++ b/dev-java/bcpg/bcpg-1.52-r2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-pkg-simple + +MY_P="${PN}-jdk15on-${PV/./}" + +DESCRIPTION="Java cryptography APIs" +HOMEPAGE="http://www.bouncycastle.org/java.html" +SRC_URI="http://polydistortion.net/bc/download/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="1.52" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +# Tests are currently broken. Appears to need older version of bcprov; but +# since bcprov is not slotted, this can cause conflicts. Needs further +# investigation; though, only a small part has tests and there are no tests for +# bcpg itself. +RESTRICT="test" + +CDEPEND="dev-java/bcprov:${SLOT}" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6 + test? ( dev-java/ant-junit:0 )" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +S="${WORKDIR}/${MY_P}" + +JAVA_GENTOO_CLASSPATH="bcprov-${SLOT}" + +src_unpack() { + default + cd "${S}" || die + unpack ./src.zip +} + +src_prepare() { + default + if ! use test; then + local RM_TEST_FILES=( + org/bouncycastle/openpgp/test + org/bouncycastle/openpgp/examples/test + ) + rm -rv "${RM_TEST_FILES[@]}" || die + fi +} + +src_compile() { + java-pkg-simple_src_compile +} + +src_test() { + local cp="${PN}.jar:bcprov.jar:junit.jar" + local pkg="org.bouncycastle" + java -cp ${cp} ${pkg}.openpgp.test.AllTests | tee openpgp.tests + grep -q FAILURES *.tests && die "Tests failed." +} + +src_install() { + einstalldocs + java-pkg-simple_src_install + use source && java-pkg_dosrc org +} diff --git a/dev-java/bcpg/metadata.xml b/dev-java/bcpg/metadata.xml new file mode 100644 index 000000000000..428163197653 --- /dev/null +++ b/dev-java/bcpg/metadata.xml @@ -0,0 +1,9 @@ +<?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> + <origin>gentoo-staging</origin> +</pkgmetadata> |
