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