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/bcmail: bcmail-1.52.ebuild ChangeLog
Date: Sat, 01 Aug 2015 16:33:32
Message-Id: 20150801163330.1C456128@oystercatcher.gentoo.org
1 monsieurp 15/08/01 16:33:30
2
3 Modified: ChangeLog
4 Added: bcmail-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.48 dev-java/bcmail/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?rev=1.48&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?rev=1.48&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?r1=1.47&r2=1.48
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v
21 retrieving revision 1.47
22 retrieving revision 1.48
23 diff -u -r1.47 -r1.48
24 --- ChangeLog 14 Jun 2015 17:52:47 -0000 1.47
25 +++ ChangeLog 1 Aug 2015 16:33:30 -0000 1.48
26 @@ -1,6 +1,11 @@
27 # ChangeLog for dev-java/bcmail
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.47 2015/06/14 17:52:47 monsieurp Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.48 2015/08/01 16:33:30 monsieurp Exp $
31 +
32 +*bcmail-1.52 (01 Aug 2015)
33 +
34 + 01 Aug 2015; Patrice Clement <monsieurp@g.o> +bcmail-1.52.ebuild:
35 + Version bump. Fixes bug 535882.
36
37 14 Jun 2015; Patrice Clement <monsieurp@g.o> bcmail-1.50.ebuild:
38 Stable for x86 via ALLARCHES. Fix bug 481960.
39
40
41
42 1.1 dev-java/bcmail/bcmail-1.52.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/bcmail-1.52.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/bcmail-1.52.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bcmail-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/bcmail/bcmail-1.52.ebuild,v 1.1 2015/08/01 16:33:30 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
61 DESCRIPTION="Java cryptography APIs"
62 HOMEPAGE="http://www.bouncycastle.org/java.html"
63 SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
64
65 LICENSE="BSD"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
68
69 CDEPEND=">=dev-java/bcprov-${PV}:0[test?]
70 ~dev-java/bcpkix-${PV}:0[test?]
71 dev-java/sun-jaf:0
72 java-virtuals/javamail:0"
73
74 DEPEND=">=virtual/jdk-1.6
75 app-arch/unzip
76 test? (
77 dev-java/junit:0
78 )
79 ${CDEPEND}"
80
81 RDEPEND=">=virtual/jre-1.6
82 ${CDEPEND}"
83
84 S="${WORKDIR}/${MY_P}"
85
86 # Package can't be build with test as bcprov and bcpkix can't be built with test.
87 RESTRICT="test"
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
103 src_compile() {
104 find org -name "*.java" > "${T}"/src.list
105
106 local cp="$(java-pkg_getjars bcprov,bcpkix,sun-jaf,javamail)"
107 if use test ; then
108 cp="${cp}:junit.jar"
109 else
110 sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes"
111 fi
112
113 ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list
114
115 cd "${S}"/classes
116 jar -cf "${S}"/${PN}.jar * || die "failed to create jar"
117 }
118
119 src_test() {
120 local cp="${PN}.jar:bcprov.jar:bcpkix.jar:junit.jar"
121
122 java -cp ${cp} org.bouncycastle.mail.smime.test.AllTests | tee mail.tests
123
124 grep -q FAILURES *.tests && die "Tests failed."
125 }
126
127 src_install() {
128 java-pkg_dojar "${S}"/${PN}.jar
129
130 use source && java-pkg_dosrc org
131 use doc && java-pkg_dojavadoc docs
132 }