1 |
tomwij 13/06/01 15:38:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bcmail-1.49.ebuild |
5 |
Log: |
6 |
Version bump to 1.49, reported by maksbotan; tests are restricted since tests for dependencies are restricted, see bug #471998. Dropped ~amd64-fbsd keyword since dev-java/bcprov and dev-java/bcpkix have no ~amd64-fbsd keyword, see bug #472010. |
7 |
|
8 |
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.35 dev-java/bcmail/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?rev=1.35&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?rev=1.35&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/ChangeLog?r1=1.34&r2=1.35 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v |
20 |
retrieving revision 1.34 |
21 |
retrieving revision 1.35 |
22 |
diff -u -r1.34 -r1.35 |
23 |
--- ChangeLog 12 May 2012 03:42:10 -0000 1.34 |
24 |
+++ ChangeLog 1 Jun 2013 15:38:25 -0000 1.35 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for dev-java/bcmail |
27 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.34 2012/05/12 03:42:10 aballier Exp $ |
29 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/ChangeLog,v 1.35 2013/06/01 15:38:25 tomwij Exp $ |
31 |
+ |
32 |
+*bcmail-1.49 (01 Jun 2013) |
33 |
+ |
34 |
+ 01 Jun 2013; Tom Wijsman <TomWij@g.o> +bcmail-1.49.ebuild: |
35 |
+ Version bump to 1.49, reported by maksbotan; tests are restricted since tests |
36 |
+ for dependencies are restricted, see bug #471998. Dropped ~amd64-fbsd keyword |
37 |
+ since dev-java/bcprov and dev-java/bcpkix have no ~amd64-fbsd keyword, see bug |
38 |
+ #472010. |
39 |
|
40 |
12 May 2012; Alexis Ballier <aballier@g.o> bcmail-1.45.ebuild: |
41 |
keyword ~amd64-fbsd |
42 |
@@ -121,4 +129,3 @@ |
43 |
25 Mar 2007; William L. Thomson Jr. <wltjr@g.o> ChangeLog: |
44 |
Initial ebuild, should be pretty identical to bcprov ebuild. Ideal to keep |
45 |
both in sync. Still to do, junit/test stuff, optional dep/compile test run |
46 |
- |
47 |
|
48 |
|
49 |
|
50 |
1.1 dev-java/bcmail/bcmail-1.49.ebuild |
51 |
|
52 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/bcmail-1.49.ebuild?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bcmail/bcmail-1.49.ebuild?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: bcmail-1.49.ebuild |
56 |
=================================================================== |
57 |
# Copyright 1999-2013 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/bcmail-1.49.ebuild,v 1.1 2013/06/01 15:38:25 tomwij Exp $ |
60 |
|
61 |
EAPI="5" |
62 |
|
63 |
JAVA_PKG_IUSE="doc source test" |
64 |
|
65 |
inherit java-pkg-2 java-ant-2 |
66 |
|
67 |
MY_P="${PN}-jdk15on-${PV/./}" |
68 |
|
69 |
DESCRIPTION="Java cryptography APIs" |
70 |
HOMEPAGE="http://www.bouncycastle.org/java.html" |
71 |
SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz" |
72 |
|
73 |
LICENSE="BSD" |
74 |
SLOT="0" |
75 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" |
76 |
|
77 |
COMMON_DEPEND=">=dev-java/bcprov-${PV}-r2:0[test?] |
78 |
>=dev-java/bcpkix-${PV}-r1:0[test?] |
79 |
dev-java/sun-jaf:0 |
80 |
java-virtuals/javamail:0" |
81 |
|
82 |
DEPEND=">=virtual/jdk-1.5 |
83 |
app-arch/unzip |
84 |
test? ( dev-java/junit:0 ) |
85 |
${COMMON_DEPEND}" |
86 |
|
87 |
RDEPEND=">=virtual/jre-1.5 |
88 |
${COMMON_DEPEND}" |
89 |
|
90 |
S="${WORKDIR}/${MY_P}" |
91 |
|
92 |
# Package can't be build with test as bcprov and bcpkix can't be built with test. |
93 |
RESTRICT="test" |
94 |
|
95 |
src_unpack() { |
96 |
default |
97 |
cd "${S}" |
98 |
unpack ./src.zip |
99 |
} |
100 |
|
101 |
java_prepare() { |
102 |
mkdir "${S}"/classes |
103 |
|
104 |
if use test ; then |
105 |
java-pkg_jar-from --build-only junit |
106 |
fi |
107 |
} |
108 |
|
109 |
src_compile() { |
110 |
find org -name "*.java" > "${T}"/src.list |
111 |
|
112 |
local cp="$(java-pkg_getjars bcprov,bcpkix,sun-jaf,javamail)" |
113 |
if use test ; then |
114 |
cp="${cp}:junit.jar" |
115 |
else |
116 |
sed -i '/\/test\//d' "${T}"/src.list || die "Failed to remove test classes" |
117 |
fi |
118 |
|
119 |
ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list |
120 |
|
121 |
cd "${S}"/classes |
122 |
jar -cf "${S}"/${PN}.jar * || die "failed to create jar" |
123 |
} |
124 |
|
125 |
src_test() { |
126 |
local cp="${PN}.jar:bcprov.jar:bcpkix.jar:junit.jar" |
127 |
|
128 |
java -cp ${cp} org.bouncycastle.mail.smime.test.AllTests | tee mail.tests |
129 |
|
130 |
grep -q FAILURES *.tests && die "Tests failed." |
131 |
} |
132 |
|
133 |
src_install() { |
134 |
java-pkg_dojar "${S}"/${PN}.jar |
135 |
|
136 |
use source && java-pkg_dosrc org |
137 |
use doc && java-pkg_dojavadoc docs |
138 |
} |