summaryrefslogtreecommitdiff
blob: 01ecc1abfe6970e6b59e359df4c5ac0026035250 (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
46
47
48
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/puretls/puretls-0.94_beta4.ebuild,v 1.9 2005/10/30 19:52:49 axxo Exp $

inherit java-pkg

DESCRIPTION="PureTLS is a free Java-only implementation of the SSLv3 and TLSv1 (RFC2246) protocols"
HOMEPAGE="http://www.rtfm.com/puretls/"
SRC_URI="mirror://gentoo/puretls-0.9b4.tar.gz"
LICENSE="puretls"
SLOT="0"
KEYWORDS="x86 amd64 ~ppc"
IUSE="doc jikes source"
RDEPEND=">=virtual/jre-1.4
	=dev-java/cryptix-asn1-bin-20011119
	=dev-java/cryptix-3.2.0"
DEPEND=">=virtual/jdk-1.4
	${RDEPEND}
	jikes? ( dev-java/jikes )
	source? ( app-arch/zip )"

S=${WORKDIR}/${PN}-0.9b4

src_unpack() {
	unpack ${A}
	cd ${S}

	java-pkg_jar-from cryptix-asn1-bin
	java-pkg_jar-from cryptix-3.2
	echo "jdk.version=1.4" >> build.properties
	echo "cryptix.jar=cryptix32.jar" >> build.properties
	echo "cryptix-asn1.jar=cryptix-asn1.jar" >> build.properties
}

src_compile() {
	local antflags="compile"
	use doc && antflags="${antflags} javadoc"
	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
	ant ${antflags} || die "Unable to compile"
}

src_install() {
	java-pkg_dojar ${S}/build/${PN}.jar

	dodoc ChangeLog CREDITS README
	use doc && java-pkg_dohtml -r ${S}/build/doc/api/*
	use source && java-pkg_dosrc src/COM
}