Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/bcpg/
Date: Wed, 25 Apr 2018 07:21:50
Message-Id: 1524640892.f299005cdbcbb47a29e1ac63052491fc32a5aa7c.monsieurp@gentoo
1 commit: f299005cdbcbb47a29e1ac63052491fc32a5aa7c
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 24 14:01:32 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 25 07:21:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f299005c
7
8 dev-java/bcpg: EAPI 6 bump.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-java/bcpg/bcpg-1.52-r2.ebuild | 73 +++++++++++++++++++++++++++++++++++++++
13 1 file changed, 73 insertions(+)
14
15 diff --git a/dev-java/bcpg/bcpg-1.52-r2.ebuild b/dev-java/bcpg/bcpg-1.52-r2.ebuild
16 new file mode 100644
17 index 00000000000..a819a8dcd7e
18 --- /dev/null
19 +++ b/dev-java/bcpg/bcpg-1.52-r2.ebuild
20 @@ -0,0 +1,73 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +JAVA_PKG_IUSE="doc source test"
27 +
28 +inherit java-pkg-2 java-pkg-simple
29 +
30 +MY_P="${PN}-jdk15on-${PV/./}"
31 +
32 +DESCRIPTION="Java cryptography APIs"
33 +HOMEPAGE="http://www.bouncycastle.org/java.html"
34 +SRC_URI="http://polydistortion.net/bc/download/${MY_P}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="1.52"
38 +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
39 +
40 +# Tests are currently broken. Appears to need older version of bcprov; but
41 +# since bcprov is not slotted, this can cause conflicts. Needs further
42 +# investigation; though, only a small part has tests and there are no tests for
43 +# bcpg itself.
44 +RESTRICT="test"
45 +
46 +CDEPEND="dev-java/bcprov:${SLOT}"
47 +
48 +DEPEND="
49 + ${CDEPEND}
50 + >=virtual/jdk-1.6
51 + test? ( dev-java/ant-junit:0 )"
52 +
53 +RDEPEND="
54 + ${CDEPEND}
55 + >=virtual/jre-1.6"
56 +
57 +S="${WORKDIR}/${MY_P}"
58 +
59 +JAVA_GENTOO_CLASSPATH="bcprov-${SLOT}"
60 +
61 +src_unpack() {
62 + default
63 + cd "${S}" || die
64 + unpack ./src.zip
65 +}
66 +
67 +src_prepare() {
68 + default
69 + if ! use test; then
70 + local RM_TEST_FILES=(
71 + org/bouncycastle/openpgp/test
72 + org/bouncycastle/openpgp/examples/test
73 + )
74 + rm -rv "${RM_TEST_FILES[@]}" || die
75 + fi
76 +}
77 +
78 +src_compile() {
79 + java-pkg-simple_src_compile
80 +}
81 +
82 +src_test() {
83 + local cp="${PN}.jar:bcprov.jar:junit.jar"
84 + local pkg="org.bouncycastle"
85 + java -cp ${cp} ${pkg}.openpgp.test.AllTests | tee openpgp.tests
86 + grep -q FAILURES *.tests && die "Tests failed."
87 +}
88 +
89 +src_install() {
90 + einstalldocs
91 + java-pkg-simple_src_install
92 + use source && java-pkg_dosrc org
93 +}