From: | "Patrice Clement (monsieurp)" <monsieurp@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-java/bcpg: bcpg-1.52.ebuild ChangeLog |
Date: | Sat, 01 Aug 2015 16:41:34 |
Message-Id: | 20150801164131.07F3BED@oystercatcher.gentoo.org |
1 | monsieurp 15/08/01 16:41:31 |
2 | |
3 | Modified: ChangeLog |
4 | Added: bcpg-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.4 dev-java/bcpg/ChangeLog |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/ChangeLog?rev=1.4&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/ChangeLog?rev=1.4&content-type=text/plain |
16 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/ChangeLog?r1=1.3&r2=1.4 |
17 | |
18 | Index: ChangeLog |
19 | =================================================================== |
20 | RCS file: /var/cvsroot/gentoo-x86/dev-java/bcpg/ChangeLog,v |
21 | retrieving revision 1.3 |
22 | retrieving revision 1.4 |
23 | diff -u -r1.3 -r1.4 |
24 | --- ChangeLog 3 Aug 2014 09:59:14 -0000 1.3 |
25 | +++ ChangeLog 1 Aug 2015 16:41:30 -0000 1.4 |
26 | @@ -1,6 +1,11 @@ |
27 | # ChangeLog for dev-java/bcpg |
28 | -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 | -# $Header: /var/cvsroot/gentoo-x86/dev-java/bcpg/ChangeLog,v 1.3 2014/08/03 09:59:14 sera Exp $ |
30 | +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
31 | +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcpg/ChangeLog,v 1.4 2015/08/01 16:41:30 monsieurp Exp $ |
32 | + |
33 | +*bcpg-1.52 (01 Aug 2015) |
34 | + |
35 | + 01 Aug 2015; Patrice Clement <monsieurp@g.o> +bcpg-1.52.ebuild: |
36 | + Version bump. Fixes bug 535882. |
37 | |
38 | 03 Aug 2014; Ralph Sennhauser <sera@g.o> -bcpg-1.49-r1.ebuild: |
39 | Remove old |
40 | |
41 | |
42 | |
43 | 1.1 dev-java/bcpg/bcpg-1.52.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/bcpg-1.52.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcpg/bcpg-1.52.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: bcpg-1.52.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2015 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/dev-java/bcpg/bcpg-1.52.ebuild,v 1.1 2015/08/01 16:41:30 monsieurp Exp $ |
53 | |
54 | EAPI="5" |
55 | |
56 | JAVA_PKG_IUSE="doc source test" |
57 | |
58 | inherit java-pkg-2 java-ant-2 |
59 | |
60 | MY_P="${PN}-jdk15on-${PV/./}" |
61 | |
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 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" |
69 | |
70 | # Tests are currently broken. Appears to need older version of bcprov; but since bcprov is not slotted, this can cause conflicts. |
71 | # Needs further investigation; though, only a small part has tests and there are no tests for bcpg itself. |
72 | RESTRICT="test" |
73 | |
74 | CDEPEND=" |
75 | >=dev-java/bcprov-${PV}:0[test?]" |
76 | |
77 | DEPEND=">=virtual/jdk-1.6 |
78 | app-arch/unzip |
79 | test? ( |
80 | dev-java/junit:0 |
81 | ) |
82 | ${CDEPEND}" |
83 | |
84 | RDEPEND=">=virtual/jre-1.6 |
85 | ${CDEPEND}" |
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 | } |