diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2009-01-12 19:43:10 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2009-01-12 19:43:10 +0000 |
commit | 13852a55c71c5531c6cd75a7d89efbf179f9742f (patch) | |
tree | 5a8a718c812275dcea1b5f67e30e572d1df9a225 | |
parent | Add one missed patch for the eclasses. Affect only live stuff so no breakage ... (diff) | |
download | gentoo-2-13852a55c71c5531c6cd75a7d89efbf179f9742f.tar.gz gentoo-2-13852a55c71c5531c6cd75a7d89efbf179f9742f.tar.bz2 gentoo-2-13852a55c71c5531c6cd75a7d89efbf179f9742f.zip |
Version bump. Fixes bug #250411. Thanks to Mike Weissman <mike@weisso.com>.
(Portage version: 2.1.6.4/cvs/Linux 2.6.28-gentoo i686)
-rw-r--r-- | dev-java/dbunit/ChangeLog | 11 | ||||
-rw-r--r-- | dev-java/dbunit/dbunit-2.4.1.ebuild | 51 | ||||
-rw-r--r-- | dev-java/dbunit/files/build-2.4.xml | 60 |
3 files changed, 120 insertions, 2 deletions
diff --git a/dev-java/dbunit/ChangeLog b/dev-java/dbunit/ChangeLog index e40000d917c9..65514609ef32 100644 --- a/dev-java/dbunit/ChangeLog +++ b/dev-java/dbunit/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-java/dbunit -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/dbunit/ChangeLog,v 1.17 2008/10/22 11:46:03 fordfrog Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/dbunit/ChangeLog,v 1.18 2009/01/12 19:43:10 betelgeuse Exp $ + +*dbunit-2.4.1 (12 Jan 2009) + + 12 Jan 2009; Petteri Räty <betelgeuse@gentoo.org> +files/build-2.4.xml, + +dbunit-2.4.1.ebuild: + Version bump. Fixes bug #250411. Thanks to Mike Weissman + <mike@weisso.com>. 22 Oct 2008; Miroslav Šulc <fordfrog@gentoo.org> dbunit-2.2.ebuild: Migrated to EAPI-1 and restricted to dev-java/poi:0 because of diff --git a/dev-java/dbunit/dbunit-2.4.1.ebuild b/dev-java/dbunit/dbunit-2.4.1.ebuild new file mode 100644 index 000000000000..45b74eb6bab4 --- /dev/null +++ b/dev-java/dbunit/dbunit-2.4.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/dbunit/dbunit-2.4.1.ebuild,v 1.1 2009/01/12 19:43:10 betelgeuse Exp $ + +EAPI="2" +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="DbUnit is a JUnit extension targeted for database-driven projects" +HOMEPAGE="http://dbunit.sourceforge.net/" +SRC_URI="http://internap.dl.sourceforge.net/sourceforge/dbunit/${P}-sources.jar" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="" + +COMMON_DEP="dev-java/slf4j-api + dev-java/poi:3.2 + dev-java/commons-collections:0 + dev-java/ant-core + dev-java/junit" + +RDEPEND=">=virtual/jre-1.4 + dev-java/slf4j-nop + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${COMMON_DEP}" + +#instead of making a folder +S="${WORKDIR}" + +src_prepare(){ + #Upstream no longer provides a build file. + cp -v "${FILESDIR}"/build-2.4.xml "${S}/build.xml" || die +} + +EANT_GENTOO_CLASSPATH="poi-3.2,junit,slf4j-api,commons-collections,ant-core" + +src_install() { + #slf4j needed for runtime + java-pkg_register-optional-dependency slf4j-nop + java-pkg_register-optional-dependency slf4j-log4j12 + java-pkg_dojar "${S}"/dist/"${PN}.jar" + use doc && java-pkg_dojavadoc build/javadoc + use source && java-pkg_dosrc org +} + diff --git a/dev-java/dbunit/files/build-2.4.xml b/dev-java/dbunit/files/build-2.4.xml new file mode 100644 index 000000000000..2522f9886525 --- /dev/null +++ b/dev-java/dbunit/files/build-2.4.xml @@ -0,0 +1,60 @@ +<?xml version="1.0"?> + +<project name="dbunit" default="jar" basedir="."> + <!-- some properties --> + <property name="src.dir" value="org/dbunit" /> + <property name="build.dir" value="build" /> + <property name="docs.dir" value="docs" /> + <property name="lib.dir" value="lib"/> + <property name="dist.dir" value="dist" /> + <property name="jarfile" value="${dist.dir}/dbunit.jar" /> + <property name="pkg" value="${package.name}"/> + <property name="target.jdk" value="1.5" /> + + + <available file="${lib}" type="dir" property="libdir.exists"/> + + + <!-- init --> + <target name="init"> + <tstamp/> + <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="${gentoo.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> |