diff options
Diffstat (limited to 'dev-java/dbunit/dbunit-2.2.ebuild')
-rw-r--r-- | dev-java/dbunit/dbunit-2.2.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-java/dbunit/dbunit-2.2.ebuild b/dev-java/dbunit/dbunit-2.2.ebuild new file mode 100644 index 000000000000..c9a27e847480 --- /dev/null +++ b/dev-java/dbunit/dbunit-2.2.ebuild @@ -0,0 +1,50 @@ +# 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.2.ebuild,v 1.1 2007/01/12 11:12:36 betelgeuse Exp $ + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="DBUnit is a JUnit extension targeted for database-driven projects that, puts your database into a known state between test runs." +HOMEPAGE="http://www.dbunit.org" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="doc source" + +RDEPEND=">=virtual/jre-1.4 + >=dev-java/poi-2.0 + dev-java/junit + >=dev-java/ant-core-1.6 + dev-java/commons-logging + =dev-java/commons-lang-2.1* + dev-java/commons-collections" +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND} + source? ( app-arch/zip )" + +src_unpack() { + unpack ${A} + cd ${S} + cp ${FILESDIR}/build.xml build.xml + + cd ${S}/lib || die + #rm -v *.jar + java-pkg_jar-from poi + java-pkg_jar-from junit + java-pkg_jar-from ant-core + java-pkg_jar-from commons-logging + java-pkg_jar-from commons-lang-2.1 + java-pkg_jar-from commons-collections +} + +EANT_DOC_TARGET="docs" + +src_install() { + java-pkg_dojar dist/${PN}.jar + + dodoc todo.txt || die + use doc && java-pkg_dojavadoc docs + use source && java-pkg_dosrc src/java/org +} |