diff options
author | Jan Brinkmann <luckyduck@gentoo.org> | 2005-01-04 23:45:14 +0000 |
---|---|---|
committer | Jan Brinkmann <luckyduck@gentoo.org> | 2005-01-04 23:45:14 +0000 |
commit | 280fd07d85e298ce5a042e0f775ed3e8de696100 (patch) | |
tree | 8353bf8a50fec0ec9d5d5b8b0f6e7e9dc775829c /dev-java/dbunit | |
parent | Add support for USE=dga. Also remove forced linking with X libs (let configu... (diff) | |
download | historical-280fd07d85e298ce5a042e0f775ed3e8de696100.tar.gz historical-280fd07d85e298ce5a042e0f775ed3e8de696100.tar.bz2 historical-280fd07d85e298ce5a042e0f775ed3e8de696100.zip |
Initial import. Builds dbunit from source and removes packed jars. Fixes #63290.
Diffstat (limited to 'dev-java/dbunit')
-rw-r--r-- | dev-java/dbunit/ChangeLog | 11 | ||||
-rw-r--r-- | dev-java/dbunit/Manifest | 5 | ||||
-rw-r--r-- | dev-java/dbunit/dbunit-2.1.ebuild | 57 | ||||
-rw-r--r-- | dev-java/dbunit/files/build.xml | 57 | ||||
-rw-r--r-- | dev-java/dbunit/files/digest-dbunit-2.1 | 1 | ||||
-rw-r--r-- | dev-java/dbunit/metadata.xml | 5 |
6 files changed, 136 insertions, 0 deletions
diff --git a/dev-java/dbunit/ChangeLog b/dev-java/dbunit/ChangeLog new file mode 100644 index 000000000000..5d662f569634 --- /dev/null +++ b/dev-java/dbunit/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-java/dbunit +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/dbunit/ChangeLog,v 1.7 2005/01/04 23:45:14 luckyduck Exp $ + +*dbunit-2.1 (05 Jan 2005) + + 05 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml, + +files/build.xml, +dbunit-2.1.ebuild: + Initial import. Builds dbunit from source and removes packed jars. Fixes + #63290. + diff --git a/dev-java/dbunit/Manifest b/dev-java/dbunit/Manifest new file mode 100644 index 000000000000..e79f95736abc --- /dev/null +++ b/dev-java/dbunit/Manifest @@ -0,0 +1,5 @@ +MD5 aa39e5885e3bd374fca0209bf341832c dbunit-2.1.ebuild 1360 +MD5 1829adf703ccc969925d00e78782ce59 ChangeLog 426 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +MD5 6160efdb57247553b137a32dfd1464aa files/build.xml 1446 +MD5 658983e5786cc25ddc975f786d424af0 files/digest-dbunit-2.1 66 diff --git a/dev-java/dbunit/dbunit-2.1.ebuild b/dev-java/dbunit/dbunit-2.1.ebuild new file mode 100644 index 000000000000..67249752cedb --- /dev/null +++ b/dev-java/dbunit/dbunit-2.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2005 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.1 2005/01/04 23:45:14 luckyduck Exp $ + +inherit java-pkg + +DESCRIPTION="DBUnit is a JUnit extension targeted for database-driven projects that, puts your database into a known state between test runs." +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" +HOMEPAGE="http://www.dbunit.org" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +DEPEND=">=virtual/jdk-1.4 + jikes? ( >=dev-java/jikes-1.21 ) + >=dev-java/ant-core-1.6" +RDEPEND=">=virtual/jre-1.4 + >=dev-java/crimson-1.1.3 + >=dev-db/hsqldb-1.7.2.4 + =dev-java/mockmaker-1.12.0* + >=dev-java/mockobjects-0.09 + >=dev-java/poi-2.0" +IUSE="doc jikes" + +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" + if use doc; then + antflags="${antflags} docs" + fi + if use jikes; then + antflags="${antflags} -Dbuild.compiler=jikes" + fi + ant ${antflags} || die "compile failed" +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + + dodoc LICENSE.txt + if use doc; then + java-pkg_dohtml -r docs/* + fi +} diff --git a/dev-java/dbunit/files/build.xml b/dev-java/dbunit/files/build.xml new file mode 100644 index 000000000000..4ee7b6da225f --- /dev/null +++ b/dev-java/dbunit/files/build.xml @@ -0,0 +1,57 @@ +<?xml version="1.0"?> + +<project name="dbunit" default="jar"> + <!-- some properties --> + <property name="src.dir" value="src/java" /> + <property name="build.dir" value="build" /> + <property name="docs.dir" value="docs" /> + <property name="dist.dir" value="dist" /> + <property name="jarfile" value="${dist.dir}/dbunit.jar" /> + <property name="target.jdk" value="1.4" /> + + <!-- init --> + <target name="init"> + <mkdir dir="${dist.dir}" /> + <mkdir dir="${build.dir}" /> + <mkdir dir="${docs.dir}" /> + </target> + + <!-- compile everything --> + <target name="compile" depends="init"> + <mkdir dir="${build.dir}" /> + <javac srcdir="${src.dir}" + destdir="${build.dir}" + source="${target.jdk}" + target="${target.jdk}"> + <classpath> + <fileset dir="lib"> + <include name="**/*.jar" /> + </fileset> + </classpath> + </javac> + </target> + + <!-- build the jar file --> + <target name="jar" depends="compile"> + <jar jarfile="${jarfile}" basedir="${build.dir}" /> + </target> + + <!-- generate javadocs --> + <target name="docs" depends="init"> + <javadoc sourcepath="${src.dir}" + packagenames="org.*" + destdir="${docs.dir}" + author="true" + version="true" + use="true" + windowtitle="${ant.project.name} API" /> + </target> + + <!-- clean up --> + <target name="clean"> + <delete dir="${build.dir}" /> + <delete dir="${docs.dir}" /> + <delete dir="${dist.dir}" /> + </target> + +</project> diff --git a/dev-java/dbunit/files/digest-dbunit-2.1 b/dev-java/dbunit/files/digest-dbunit-2.1 new file mode 100644 index 000000000000..06aec18afc24 --- /dev/null +++ b/dev-java/dbunit/files/digest-dbunit-2.1 @@ -0,0 +1 @@ +MD5 9726d6508fdb3e576047d47791c5efec dbunit-2.1-src.tar.gz 192326 diff --git a/dev-java/dbunit/metadata.xml b/dev-java/dbunit/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/dbunit/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +</pkgmetadata> |