summaryrefslogtreecommitdiff
blob: aee51e82714bc3c4309cf14b3460715b8ae30d71 (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/bsf-2.3.0.ebuild,v 1.2 2004/06/24 22:19:09 agriffis Exp $

inherit java-pkg

DESCRIPTION="Bean Script Framework"
HOMEPAGE="http://jakarta.apache.org/bsf/"
SRC_URI="http://cvs.apache.org/dist/jakarta/bsf/v2.3.0rc1/src/bsf-src-2.3.0.tar.gz"
LICENSE="Apache-1.1"
SLOT="2.3"
KEYWORDS="~x86"
IUSE="doc jikes"
# karltk: Is this really an RDEPEND, or just a CDEPEND?
RDEPEND="=net-www/tomcat-5*"
DEPEND="${REPEND}
	>=dev-java/ant-1.5.4"

S=${WORKDIR}/${P}

src_compile() {
	# karltk: this is dirty. should be fixed when we overhaul tomcat
	# and the entire servlet/java server pages system

	export CLASSPATH=${CLASSPATH}:/opt/tomcat/common/lib/servlet-api.jar
	export CLASSPATH=${CLASSPATH}:/opt/tomcat/common/lib/jsp-api.jar

	local antflags

	# karltk: fix this
#	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"

	cd src

	ant ${antflags} compile || die
	if use doc ; then
		ant ${antflags} javadocs || die
	fi
}

src_install() {
	java-pkg_dojar src/build/lib/bsf.jar

	use doc && dohtml -r src/build/javadocs/*
}