summaryrefslogtreecommitdiff
blob: cf1bf7c46b981a66781b3011e8ef10fb9e481ec2 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/tagunit/tagunit-1.0.1.ebuild,v 1.2 2004/06/24 22:44:41 agriffis Exp $

DESCRIPTION="TagUnit is a tag library for testing custom tags within JSP pages."
SRC_URI="mirror://sourceforge/${PN}/${PN}-${PV}-src.zip"
HOMEPAGE="http://www.tagunit.org"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
DEPEND=">=virtual/jdk-1.3
		>=dev-java/ant-1.6
		jikes? ( >=dev-java/jikes-1.17 )
		>=servletapi-2.4"
RDEPEND=">=virtual/jdk-1.3"
IUSE="jikes doc"
S="${WORKDIR}/${P}-src/tagunit-core"

src_compile() {
	echo ${PV} > ../version.txt
	mkdir ../lib

	local antflags="build"
	antflags="${antflags} -lib `java-config --classpath=servletapi-2.4`"
	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
	use doc && antflags="${antflags} javadoc"
	ant ${antflags} || die "compilation failed"
}

src_install() {
	java-pkg_dojar lib/${PN}.jar
	dodoc changes.txt readme.txt
	use doc && dohtml -r doc/api/*
}