blob: 702550c1557ae362dda91d5fd1f15b36495fe716 (
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-r1.ebuild,v 1.8 2006/10/17 02:32:46 tsunam 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"
IUSE="doc"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core
dev-java/junit"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cp ${FILESDIR}/build.xml ${S}
}
src_compile() {
local junit="$(java-pkg_getjars junit)"
local antflags="-Dproject.name=${PN} jar -Dclasspath=${junit}"
eant ${antflags}
mv docs api
}
src_install() {
java-pkg_dojar dist/${PN}.jar
dohtml *.html
use doc && java-pkg_dohtml -r api
}
|