Gentoo Archives: gentoo-commits

From: "Patrice Clement (monsieurp)" <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/bcprov: bcprov-1.52.ebuild ChangeLog
Date: Sat, 01 Aug 2015 16:07:28
Message-Id: 20150801160725.C65D311D@oystercatcher.gentoo.org
1 monsieurp 15/08/01 16:07:25
2
3 Modified: ChangeLog
4 Added: bcprov-1.52.ebuild
5 Log:
6 Version bump. Fixes bug 535882.
7
8 Signed-off-by: Patrice Clement <monsieurp@g.o>
9 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)
10
11 Revision Changes Path
12 1.65 dev-java/bcprov/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?rev=1.65&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?rev=1.65&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?r1=1.64&r2=1.65
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v
21 retrieving revision 1.64
22 retrieving revision 1.65
23 diff -u -r1.64 -r1.65
24 --- ChangeLog 19 May 2015 09:06:09 -0000 1.64
25 +++ ChangeLog 1 Aug 2015 16:07:25 -0000 1.65
26 @@ -1,6 +1,11 @@
27 # ChangeLog for dev-java/bcprov
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v 1.64 2015/05/19 09:06:09 ago Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v 1.65 2015/08/01 16:07:25 monsieurp Exp $
31 +
32 +*bcprov-1.52 (01 Aug 2015)
33 +
34 + 01 Aug 2015; Patrice Clement <monsieurp@g.o> +bcprov-1.52.ebuild:
35 + Version bump. Fixes bug 535882.
36
37 19 May 2015; Agostino Sarubbo <ago@g.o> bcprov-1.50.ebuild:
38 Stable for x86, wrt bug #485564
39
40
41
42 1.1 dev-java/bcprov/bcprov-1.52.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/bcprov-1.52.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/bcprov-1.52.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bcprov-1.52.ebuild
48 ===================================================================
49 # Copyright 1999-2015 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.52.ebuild,v 1.1 2015/08/01 16:07:25 monsieurp 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 ~amd64-fbsd ~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.6
75 app-arch/unzip
76 userland_GNU? (
77 sys-apps/findutils
78 )
79 test? (
80 dev-java/junit:4
81 )"
82 RDEPEND=">=virtual/jre-1.6"
83
84 IUSE="userland_GNU"
85
86 S="${WORKDIR}/${MY_P}"
87
88 src_unpack() {
89 default
90 cd "${S}" || die
91 unpack ./src.zip
92 }
93
94 java_prepare() {
95 mkdir "${S}"/classes || die
96
97 if use test; then
98 java-pkg_jar-from --build-only junit-4
99 fi
100 }
101
102 src_compile() {
103 find . -name "*.java" > "${T}"/src.list
104
105 local cp
106 if use test ; then
107 cp="-cp junit.jar"
108 else
109 sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes"
110 fi
111
112 ejavac $cp -encoding ISO-8859-1 -d "${S}"/classes "@${T}"/src.list
113
114 cd "${S}"/classes || die
115
116 jar -cf "${S}"/${PN}.jar * || die "Failed to create jar."
117 }
118
119 src_test() {
120 java -cp ${PN}.jar:junit.jar org.bouncycastle.pqc.jcajce.provider.test.AllTests | tee pqc.tests
121 java -cp ${PN}.jar:junit.jar org.bouncycastle.ocsp.test.AllTests | tee oscp.tests
122 java -cp ${PN}.jar:junit.jar org.bouncycastle.jce.provider.test.AllTests | tee jce.tests
123
124 grep -q FAILURES *.tests && die "Tests failed."
125 }
126
127 src_install() {
128 java-pkg_dojar ${PN}.jar
129
130 use source && java-pkg_dosrc org
131 use doc && java-pkg_dojavadoc docs
132 }