Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/bcpg: bcpg-1.50.ebuild bcpg-1.49-r1.ebuild ChangeLog bcpg-1.49.ebuild
Date: Thu, 06 Feb 2014 13:59:17
Message-Id: 20140206135914.332822004B@flycatcher.gentoo.org
1 tomwij 14/02/06 13:59:14
2
3 Modified: ChangeLog
4 Added: bcpg-1.50.ebuild bcpg-1.49-r1.ebuild
5 Removed: bcpg-1.49.ebuild
6 Log:
7 Version bump to 1.50.
8
9 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
10
11 Revision Changes Path
12 1.2 dev-java/bcpg/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/ChangeLog?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/ChangeLog?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/ChangeLog?r1=1.1&r2=1.2
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-java/bcpg/ChangeLog,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- ChangeLog 5 Jul 2013 10:39:36 -0000 1.1
25 +++ ChangeLog 6 Feb 2014 13:59:13 -0000 1.2
26 @@ -1,6 +1,13 @@
27 # ChangeLog for dev-java/bcpg
28 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-java/bcpg/ChangeLog,v 1.1 2013/07/05 10:39:36 tomwij Exp $
30 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcpg/ChangeLog,v 1.2 2014/02/06 13:59:13 tomwij Exp $
32 +
33 +*bcpg-1.50 (06 Feb 2014)
34 +*bcpg-1.49-r1 (06 Feb 2014)
35 +
36 + 06 Feb 2014; Tom Wijsman <TomWij@g.o> +bcpg-1.49-r1.ebuild,
37 + +bcpg-1.50.ebuild, -bcpg-1.49.ebuild:
38 + Version bump to 1.50.
39
40 *bcpg-1.49 (05 Jul 2013)
41
42
43
44
45 1.1 dev-java/bcpg/bcpg-1.50.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/bcpg-1.50.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/bcpg-1.50.ebuild?rev=1.1&content-type=text/plain
49
50 Index: bcpg-1.50.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-java/bcpg/bcpg-1.50.ebuild,v 1.1 2014/02/06 13:59:13 tomwij Exp $
55
56 EAPI="5"
57
58 JAVA_PKG_IUSE="doc source test"
59
60 inherit java-pkg-2 java-ant-2
61
62 MY_P="${PN}-jdk15on-${PV/./}"
63
64 DESCRIPTION="Java cryptography APIs"
65 HOMEPAGE="http://www.bouncycastle.org/java.html"
66 SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
71
72 # Tests are currently broken. Appears to need older version of bcprov; but since bcprov is not slotted, this can cause conflicts.
73 # Needs further investigation; though, only a small part has tests and there are no tests for bcpg itself.
74 RESTRICT="test"
75
76 COMMON_DEPEND="
77 >=dev-java/bcprov-${PV}:0[test?]"
78
79 DEPEND=">=virtual/jdk-1.5
80 app-arch/unzip
81 test? ( dev-java/junit:0 )
82 ${COMMON_DEPEND}"
83
84 RDEPEND=">=virtual/jre-1.5
85 ${COMMON_DEPEND}"
86
87 S="${WORKDIR}/${MY_P}"
88
89 src_unpack() {
90 default
91 cd "${S}"
92 unpack ./src.zip
93 }
94
95 java_prepare() {
96 mkdir "${S}"/classes
97
98 if use test ; then
99 java-pkg_jar-from --build-only junit
100 fi
101
102 java-pkg_jar-from bcprov
103 }
104
105 src_compile() {
106 find org -name "*.java" > "${T}"/src.list
107
108 local cp="bcprov.jar"
109 if use test ; then
110 cp="${cp}:junit.jar"
111 else
112 sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes"
113 fi
114
115 ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list
116
117 cd "${S}"/classes || die
118
119 jar -cf "${S}"/${PN}.jar * || die "Failed to create jar."
120 }
121
122 src_test() {
123 local cp="${PN}.jar:bcprov.jar:junit.jar"
124 local pkg="org.bouncycastle"
125
126 java -cp ${cp} ${pkg}.openpgp.test.AllTests | tee openpgp.tests
127
128 grep -q FAILURES *.tests && die "Tests failed."
129 }
130
131 src_install() {
132 java-pkg_dojar "${S}"/${PN}.jar
133
134 use source && java-pkg_dosrc org
135 use doc && java-pkg_dojavadoc docs
136 }
137
138
139
140 1.1 dev-java/bcpg/bcpg-1.49-r1.ebuild
141
142 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/bcpg-1.49-r1.ebuild?rev=1.1&view=markup
143 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/bcpg-1.49-r1.ebuild?rev=1.1&content-type=text/plain
144
145 Index: bcpg-1.49-r1.ebuild
146 ===================================================================
147 # Copyright 1999-2014 Gentoo Foundation
148 # Distributed under the terms of the GNU General Public License v2
149 # $Header: /var/cvsroot/gentoo-x86/dev-java/bcpg/bcpg-1.49-r1.ebuild,v 1.1 2014/02/06 13:59:13 tomwij Exp $
150
151 EAPI="5"
152
153 JAVA_PKG_IUSE="doc source test"
154
155 inherit java-pkg-2 java-ant-2
156
157 MY_P="${PN}-jdk15on-${PV/./}"
158
159 DESCRIPTION="Java cryptography APIs"
160 HOMEPAGE="http://www.bouncycastle.org/java.html"
161 SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
162
163 LICENSE="BSD"
164 SLOT="0"
165 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
166
167 # Tests are currently broken. Appears to need older version of bcprov; but since bcprov is not slotted, this can cause conflicts.
168 # Needs further investigation; though, only a small part has tests and there are no tests for bcpg itself.
169 RESTRICT="test"
170
171 COMMON_DEPEND="
172 >=dev-java/bcmail-${PV}:0[test?]
173 >=dev-java/bcprov-${PV}:0[test?]"
174
175 DEPEND=">=virtual/jdk-1.5
176 app-arch/unzip
177 test? ( dev-java/junit:0 )
178 ${COMMON_DEPEND}"
179
180 RDEPEND=">=virtual/jre-1.5
181 ${COMMON_DEPEND}"
182
183 S="${WORKDIR}/${MY_P}"
184
185 src_unpack() {
186 default
187 cd "${S}"
188 unpack ./src.zip
189 }
190
191 java_prepare() {
192 mkdir "${S}"/classes
193
194 if use test ; then
195 java-pkg_jar-from --build-only junit
196 fi
197
198 java-pkg_jar-from bcmail
199 java-pkg_jar-from bcprov
200 }
201
202 src_compile() {
203 find org -name "*.java" > "${T}"/src.list
204
205 local cp="bcmail.jar:bcprov.jar"
206 if use test ; then
207 cp="${cp}:junit.jar"
208 else
209 sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes"
210 fi
211
212 ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list
213
214 cd "${S}"/classes || die
215
216 jar -cf "${S}"/${PN}.jar * || die "Failed to create jar."
217 }
218
219 src_test() {
220 local cp="${PN}.jar:bcmail.jar:bcprov.jar:junit.jar"
221 local pkg="org.bouncycastle"
222
223 java -cp ${cp} ${pkg}.openpgp.test.AllTests | tee openpgp.tests
224
225 grep -q FAILURES *.tests && die "Tests failed."
226 }
227
228 src_install() {
229 java-pkg_dojar "${S}"/${PN}.jar
230
231 use source && java-pkg_dosrc org
232 use doc && java-pkg_dojavadoc docs
233 }