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/bcmail: bcmail-1.50.ebuild ChangeLog
Date: Thu, 06 Feb 2014 13:59:12
Message-Id: 20140206135909.1D2A32004B@flycatcher.gentoo.org
1 tomwij 14/02/06 13:59:09
2
3 Modified: ChangeLog
4 Added: bcmail-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.42 dev-java/bcmail/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?rev=1.42&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?rev=1.42&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?r1=1.41&r2=1.42
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v
20 retrieving revision 1.41
21 retrieving revision 1.42
22 diff -u -r1.41 -r1.42
23 --- ChangeLog 5 Sep 2013 22:34:27 -0000 1.41
24 +++ ChangeLog 6 Feb 2014 13:59:08 -0000 1.42
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-java/bcmail
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.41 2013/09/05 22:34:27 tomwij Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.42 2014/02/06 13:59:08 tomwij Exp $
31 +
32 +*bcmail-1.50 (06 Feb 2014)
33 +
34 + 06 Feb 2014; Tom Wijsman <TomWij@g.o> +bcmail-1.50.ebuild:
35 + Version bump to 1.50.
36
37 *bcmail-1.38-r3 (05 Sep 2013)
38
39
40
41
42 1.1 dev-java/bcmail/bcmail-1.50.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/bcmail-1.50.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/bcmail-1.50.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bcmail-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/bcmail/bcmail-1.50.ebuild,v 1.1 2014/02/06 13:59:08 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
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 COMMON_DEPEND=">=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.5
75 app-arch/unzip
76 test? ( dev-java/junit:0 )
77 ${COMMON_DEPEND}"
78
79 RDEPEND=">=virtual/jre-1.5
80 ${COMMON_DEPEND}"
81
82 S="${WORKDIR}/${MY_P}"
83
84 # Package can't be build with test as bcprov and bcpkix can't be built with test.
85 RESTRICT="test"
86
87 src_unpack() {
88 default
89 cd "${S}"
90 unpack ./src.zip
91 }
92
93 java_prepare() {
94 mkdir "${S}"/classes
95
96 if use test ; then
97 java-pkg_jar-from --build-only junit
98 fi
99 }
100
101 src_compile() {
102 find org -name "*.java" > "${T}"/src.list
103
104 local cp="$(java-pkg_getjars bcprov,bcpkix,sun-jaf,javamail)"
105 if use test ; then
106 cp="${cp}:junit.jar"
107 else
108 sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes"
109 fi
110
111 ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list
112
113 cd "${S}"/classes
114 jar -cf "${S}"/${PN}.jar * || die "failed to create jar"
115 }
116
117 src_test() {
118 local cp="${PN}.jar:bcprov.jar:bcpkix.jar:junit.jar"
119
120 java -cp ${cp} org.bouncycastle.mail.smime.test.AllTests | tee mail.tests
121
122 grep -q FAILURES *.tests && die "Tests failed."
123 }
124
125 src_install() {
126 java-pkg_dojar "${S}"/${PN}.jar
127
128 use source && java-pkg_dosrc org
129 use doc && java-pkg_dojavadoc docs
130 }