blob: 5242db122fd9313536158b3b2bd2acff4ad1eeee (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/dbunit/dbunit-2.1.ebuild,v 1.6 2007/01/12 11:14:57 betelgeuse Exp $
inherit java-pkg
DESCRIPTION="DBUnit is a JUnit extension targeted for database-driven projects."
HOMEPAGE="http://www.dbunit.org"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64 ppc"
IUSE="doc jikes source"
RDEPEND=">=virtual/jre-1.4
=dev-java/crimson-1*
>=dev-db/hsqldb-1.7.2.4
=dev-java/mockmaker-1.12.0*
>=dev-java/mockobjects-0.09
>=dev-java/poi-2.0"
DEPEND=">=virtual/jdk-1.4
${RDEPEND}
>=dev-java/ant-core-1.6
jikes? ( >=dev-java/jikes-1.21 )
source? ( app-arch/zip )"
src_unpack() {
unpack ${A}
cd ${S}
cp ${FILESDIR}/build.xml build.xml
mkdir lib && cd ${S}/lib
rm -f *.jar
java-pkg_jar-from crimson-1
java-pkg_jar-from hsqldb
java-pkg_jar-from mockmaker-1.12
java-pkg_jar-from mockobjects
java-pkg_jar-from poi
}
src_compile() {
local antflags="jar"
use doc && antflags="${antflags} docs"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "compile failed"
}
src_install() {
java-pkg_dojar dist/${PN}.jar
use doc && java-pkg_dohtml -r docs/*
}
|