blob: 3b2d9b14a54eec7c54af84264a920094507bb0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/bcprov-1.31-r2.ebuild,v 1.2 2006/12/07 22:32:42 flameeyes Exp $
inherit java-pkg-2 java-ant-2
MY_PN=${PN}-jdk14
MY_PV=${PV//./}
MY_P=${MY_PN}-${MY_PV}
DESCRIPTION="The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms"
HOMEPAGE="http://www.bouncycastle.org/"
SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
IUSE="doc"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cp ${FILESDIR}/build.xml ${S}
cd ${S}
# Get rid of the tests, since we aren't running them. This removes
# a dependency on junit.
rm src/org/bouncycastle/openssl/test/AllTests.java src/org/bouncycastle/jce/provider/test/AllTests.java
}
src_compile() {
eant ${antflags} -Dproject.name=${PN}
mv docs api
}
src_install() {
java-pkg_dojar dist/${PN}.jar
dohtml *.html
use doc && java-pkg_dohtml -r api
}
|