1 |
tomwij 13/06/01 15:33:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bcprov-1.49-r2.ebuild |
5 |
Removed: bcprov-1.49.ebuild bcprov-1.49-r1.ebuild |
6 |
Log: |
7 |
Fixed junit dependency to be in DEPEND and tests to only be present when the user or reverse dependencies force it by USE flag, removed old revisions. |
8 |
|
9 |
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
10 |
|
11 |
Revision Changes Path |
12 |
1.47 dev-java/bcprov/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?rev=1.47&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?rev=1.47&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?r1=1.46&r2=1.47 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v |
21 |
retrieving revision 1.46 |
22 |
retrieving revision 1.47 |
23 |
diff -u -r1.46 -r1.47 |
24 |
--- ChangeLog 1 Jun 2013 14:51:29 -0000 1.46 |
25 |
+++ ChangeLog 1 Jun 2013 15:33:22 -0000 1.47 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for dev-java/bcprov |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v 1.46 2013/06/01 14:51:29 tomwij Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v 1.47 2013/06/01 15:33:22 tomwij Exp $ |
31 |
+ |
32 |
+*bcprov-1.49-r2 (01 Jun 2013) |
33 |
+ |
34 |
+ 01 Jun 2013; Tom Wijsman <TomWij@g.o> +bcprov-1.49-r2.ebuild, |
35 |
+ -bcprov-1.49-r1.ebuild, -bcprov-1.49.ebuild: |
36 |
+ Fixed junit dependency to be in DEPEND and tests to only be present when the |
37 |
+ user or reverse dependencies force it by USE flag, removed old revisions. |
38 |
|
39 |
*bcprov-1.49-r1 (01 Jun 2013) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-java/bcprov/bcprov-1.49-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/bcprov-1.49-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/bcprov-1.49-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: bcprov-1.49-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/bcprov-1.49-r2.ebuild,v 1.1 2013/06/01 15:33:22 tomwij Exp $ |
54 |
|
55 |
EAPI="5" |
56 |
|
57 |
JAVA_PKG_IUSE="doc source test" |
58 |
|
59 |
inherit java-pkg-2 java-ant-2 |
60 |
|
61 |
MY_P="${PN}-jdk15on-${PV/./}" |
62 |
DESCRIPTION="Java cryptography APIs" |
63 |
HOMEPAGE="http://www.bouncycastle.org/java.html" |
64 |
SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz" |
65 |
|
66 |
LICENSE="BSD" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos" |
69 |
|
70 |
# Tests are currently broken. Needs further investigation. |
71 |
# java.security.NoSuchAlgorithmException: Cannot find any provider supporting McElieceFujisakiWithSHA256 |
72 |
RESTRICT="test" |
73 |
|
74 |
# The src_unpack find needs a new find |
75 |
# https://bugs.gentoo.org/show_bug.cgi?id=182276 |
76 |
DEPEND=">=virtual/jdk-1.5 |
77 |
userland_GNU? ( >=sys-apps/findutils-4.3 ) |
78 |
app-arch/unzip |
79 |
test? ( dev-java/junit:4 )" |
80 |
RDEPEND=">=virtual/jre-1.5" |
81 |
|
82 |
IUSE="userland_GNU" |
83 |
|
84 |
S="${WORKDIR}/${MY_P}" |
85 |
|
86 |
src_unpack() { |
87 |
default |
88 |
|
89 |
cd "${S}" || die |
90 |
unpack ./src.zip |
91 |
} |
92 |
|
93 |
java_prepare() { |
94 |
mkdir "${S}"/classes || die |
95 |
|
96 |
if use test ; then |
97 |
java-pkg_jar-from --build-only junit-4 |
98 |
fi |
99 |
} |
100 |
|
101 |
src_compile() { |
102 |
find . -name "*.java" > "${T}"/src.list |
103 |
|
104 |
local cp |
105 |
if use test ; then |
106 |
cp="-cp junit.jar" |
107 |
else |
108 |
sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes" |
109 |
fi |
110 |
|
111 |
ejavac $cp -encoding ISO-8859-1 -d "${S}"/classes "@${T}"/src.list |
112 |
|
113 |
cd "${S}"/classes || die |
114 |
|
115 |
jar -cf "${S}"/${PN}.jar * || die "Failed to create jar." |
116 |
} |
117 |
|
118 |
src_test() { |
119 |
java -cp ${PN}.jar:junit.jar org.bouncycastle.pqc.jcajce.provider.test.AllTests | tee pqc.tests |
120 |
java -cp ${PN}.jar:junit.jar org.bouncycastle.ocsp.test.AllTests | tee oscp.tests |
121 |
java -cp ${PN}.jar:junit.jar org.bouncycastle.jce.provider.test.AllTests | tee jce.tests |
122 |
|
123 |
grep -q FAILURES *.tests && die "Tests failed." |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
java-pkg_dojar ${PN}.jar |
128 |
|
129 |
use source && java-pkg_dosrc org |
130 |
use doc && java-pkg_dojavadoc docs |
131 |
} |