summaryrefslogtreecommitdiff
blob: a27dc9ad03800fb6d82f88acca573aaaff7048d0 (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
49
50
51
52
53
54
55
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jessie/jessie-1.0.0-r2.ebuild,v 1.4 2007/05/26 14:59:09 betelgeuse Exp $

inherit java-pkg-2 eutils

DESCRIPTION="Free JSSE implementation"
HOMEPAGE="http://www.nongnu.org/jessie"
SRC_URI="http://syzygy.metastatic.org/jessie/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="doc"

RDEPEND="dev-java/gnu-crypto"
# chokes on the bundled ssl API in 1.5+ which gnu-crypto prolly can't override
# (endorsed fun?)
DEPEND="=virtual/jdk-1.4*
	${RDEPEND}"
RDEPEND=">=virtual/jre-1.4
	${RDEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	# TODO file upstream
	# without this, make apidoc fails (a URL has changed)
	epatch "${FILESDIR}/${P}-javadoc.patch"
}

src_compile() {

	export CLASSPATH="${CLASSPATH}:$(java-pkg_getjars gnu-crypto):"

	local target="$(java-pkg_get-target)"

	econf --with-java-target=${target} --disable-awt || die "econf failed"
	emake -j1 || die "emake failed"

	if use doc; then
		emake apidoc || "emake apidoc failed"
		mv apidoc api || die "Renaming apidoc failed."
	fi
}

src_install() {
	einstall || die
	rm ${D}/usr/share/*.jar

	java-pkg_dojar lib/*.jar

	use doc && java-pkg_dohtml -r api

	dodoc AUTHORS FAQ INSTALL NEWS README THANKS TODO
}