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/bcprov: bcprov-1.50.ebuild ChangeLog
Date: Thu, 06 Feb 2014 13:59:01
Message-Id: 20140206135856.ABA442004C@flycatcher.gentoo.org
1 tomwij 14/02/06 13:58:56
2
3 Modified: ChangeLog
4 Added: bcprov-1.50.ebuild
5 Log:
6 Version bump to 1.50.
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.59 dev-java/bcprov/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?rev=1.59&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?rev=1.59&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/ChangeLog?r1=1.58&r2=1.59
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v
20 retrieving revision 1.58
21 retrieving revision 1.59
22 diff -u -r1.58 -r1.59
23 --- ChangeLog 1 Sep 2013 11:42:36 -0000 1.58
24 +++ ChangeLog 6 Feb 2014 13:58:56 -0000 1.59
25 @@ -1,6 +1,11 @@
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.58 2013/09/01 11:42:36 grobian Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/ChangeLog,v 1.59 2014/02/06 13:58:56 tomwij Exp $
31 +
32 +*bcprov-1.50 (06 Feb 2014)
33 +
34 + 06 Feb 2014; Tom Wijsman <TomWij@g.o> +bcprov-1.50.ebuild:
35 + Version bump to 1.50.
36
37 01 Sep 2013; Fabian Groffen <grobian@g.o> bcprov-1.38-r2.ebuild:
38 Marked *-macos
39
40
41
42 1.1 dev-java/bcprov/bcprov-1.50.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/bcprov-1.50.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcprov/bcprov-1.50.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bcprov-1.50.ebuild
48 ===================================================================
49 # Copyright 1999-2014 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.50.ebuild,v 1.1 2014/02/06 13:58:56 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 ~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.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 if use test ; then
95 java-pkg_jar-from --build-only junit-4
96 fi
97 }
98
99 src_compile() {
100 find . -name "*.java" > "${T}"/src.list
101
102 local cp
103 if use test ; then
104 cp="-cp junit.jar"
105 else
106 sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes"
107 fi
108
109 ejavac $cp -encoding ISO-8859-1 -d "${S}"/classes "@${T}"/src.list
110
111 cd "${S}"/classes || die
112
113 jar -cf "${S}"/${PN}.jar * || die "Failed to create jar."
114 }
115
116 src_test() {
117 java -cp ${PN}.jar:junit.jar org.bouncycastle.pqc.jcajce.provider.test.AllTests | tee pqc.tests
118 java -cp ${PN}.jar:junit.jar org.bouncycastle.ocsp.test.AllTests | tee oscp.tests
119 java -cp ${PN}.jar:junit.jar org.bouncycastle.jce.provider.test.AllTests | tee jce.tests
120
121 grep -q FAILURES *.tests && die "Tests failed."
122 }
123
124 src_install() {
125 java-pkg_dojar ${PN}.jar
126
127 use source && java-pkg_dosrc org
128 use doc && java-pkg_dojavadoc docs
129 }