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