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/bcprov/
Date: Fri, 09 Oct 2015 09:25:50
Message-Id: 1444382636.01b94eee60dd99f6a646cebbf365a04f54047456.monsieurp@gentoo
1 commit: 01b94eee60dd99f6a646cebbf365a04f54047456
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 9 09:19:38 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 9 09:23:56 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01b94eee
7
8 dev-java/bprov: Add back old ebuilds for version 1.50 and 1.52 until SLOTing is fixed across the tree.
9
10 Currently, both ebuilds have two different SLOTs (0 and 1.52) which is
11 inconsistent. We should decide on which SLOT we keep and mend ebuilds across
12 the tree who use the wrong SLOT.
13
14 I have been breaking the tree a couple of times this morning due to this
15 mismatch. This commit should quiet down the CI system now.
16
17 Package-Manager: portage-2.2.20.1
18 RepoMan-Options: --force
19 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
20
21 dev-java/bcprov/bcprov-1.50-r2.ebuild | 66 +++++++++++++++++++++++++++++++++++
22 dev-java/bcprov/bcprov-1.52-r1.ebuild | 66 +++++++++++++++++++++++++++++++++++
23 2 files changed, 132 insertions(+)
24
25 diff --git a/dev-java/bcprov/bcprov-1.50-r2.ebuild b/dev-java/bcprov/bcprov-1.50-r2.ebuild
26 new file mode 100644
27 index 0000000..b0deca8
28 --- /dev/null
29 +++ b/dev-java/bcprov/bcprov-1.50-r2.ebuild
30 @@ -0,0 +1,66 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +JAVA_PKG_IUSE="doc source test"
38 +
39 +inherit java-pkg-2 java-pkg-simple
40 +
41 +MY_P="${PN}-jdk15on-${PV/./}"
42 +
43 +DESCRIPTION="Java cryptography APIs"
44 +HOMEPAGE="http://www.bouncycastle.org/java.html"
45 +SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="1.50"
49 +KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
50 +
51 +CDEPEND=""
52 +
53 +DEPEND=">=virtual/jdk-1.6
54 + app-arch/unzip
55 + ${CDEPEND}"
56 +
57 +RDEPEND=">=virtual/jre-1.6
58 + ${CDEPEND}"
59 +
60 +S="${WORKDIR}/${MY_P}"
61 +
62 +JAVA_ENCODING="ISO-8859-1"
63 +
64 +# Package can't be built with test as bcprov and bcpkix can't be built with test.
65 +RESTRICT="test"
66 +
67 +src_unpack() {
68 + default
69 + cd "${S}"
70 + unpack ./src.zip
71 +}
72 +
73 +java_prepare() {
74 + if ! use test; then
75 + # There are too many files to delete so we won't be using JAVA_RM_FILES
76 + # (it produces a lot of output).
77 + local RM_TEST_FILES=()
78 + while read -d $'\0' -r file; do
79 + RM_TEST_FILES+=("${file}")
80 + done < <(find . -name "*Test*.java" -type f -print0)
81 + while read -d $'\0' -r file; do
82 + RM_TEST_FILES+=("${file}")
83 + done < <(find . -name "*Mock*.java" -type f -print0)
84 +
85 + rm -v "${RM_TEST_FILES[@]}"
86 + fi
87 +}
88 +
89 +src_compile() {
90 + java-pkg-simple_src_compile
91 +}
92 +
93 +src_install() {
94 + java-pkg-simple_src_install
95 + use source && java-pkg_dosrc org
96 +}
97
98 diff --git a/dev-java/bcprov/bcprov-1.52-r1.ebuild b/dev-java/bcprov/bcprov-1.52-r1.ebuild
99 new file mode 100644
100 index 0000000..add187a
101 --- /dev/null
102 +++ b/dev-java/bcprov/bcprov-1.52-r1.ebuild
103 @@ -0,0 +1,66 @@
104 +# Copyright 1999-2015 Gentoo Foundation
105 +# Distributed under the terms of the GNU General Public License v2
106 +# $Id$
107 +
108 +EAPI=5
109 +
110 +JAVA_PKG_IUSE="doc source test"
111 +
112 +inherit java-pkg-2 java-pkg-simple
113 +
114 +MY_P="${PN}-jdk15on-${PV/./}"
115 +
116 +DESCRIPTION="Java cryptography APIs"
117 +HOMEPAGE="http://www.bouncycastle.org/java.html"
118 +SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
119 +
120 +LICENSE="BSD"
121 +SLOT="1.52"
122 +KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
123 +
124 +CDEPEND=""
125 +
126 +DEPEND=">=virtual/jdk-1.6
127 + app-arch/unzip
128 + ${CDEPEND}"
129 +
130 +RDEPEND=">=virtual/jre-1.6
131 + ${CDEPEND}"
132 +
133 +S="${WORKDIR}/${MY_P}"
134 +
135 +JAVA_ENCODING="ISO-8859-1"
136 +
137 +# Package can't be build with test as bcprov and bcpkix can't be built with test.
138 +RESTRICT="test"
139 +
140 +src_unpack() {
141 + default
142 + cd "${S}"
143 + unpack ./src.zip
144 +}
145 +
146 +java_prepare() {
147 + if ! use test; then
148 + # There are too many files to delete so we won't be using JAVA_RM_FILES
149 + # (it produces a lot of output).
150 + local RM_TEST_FILES=()
151 + while read -d $'\0' -r file; do
152 + RM_TEST_FILES+=("${file}")
153 + done < <(find . -name "*Test*.java" -type f -print0)
154 + while read -d $'\0' -r file; do
155 + RM_TEST_FILES+=("${file}")
156 + done < <(find . -name "*Mock*.java" -type f -print0)
157 +
158 + rm -v "${RM_TEST_FILES[@]}"
159 + fi
160 +}
161 +
162 +src_compile() {
163 + java-pkg-simple_src_compile
164 +}
165 +
166 +src_install() {
167 + java-pkg-simple_src_install
168 + use source && java-pkg_dosrc org
169 +}