summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/dbunit
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/dbunit')
-rw-r--r--dev-java/dbunit/Manifest1
-rw-r--r--dev-java/dbunit/dbunit-2.4.5.ebuild54
-rw-r--r--dev-java/dbunit/files/build-2.4.xml62
-rw-r--r--dev-java/dbunit/files/build.xml57
-rw-r--r--dev-java/dbunit/metadata.xml12
5 files changed, 186 insertions, 0 deletions
diff --git a/dev-java/dbunit/Manifest b/dev-java/dbunit/Manifest
new file mode 100644
index 000000000000..227398c9e44c
--- /dev/null
+++ b/dev-java/dbunit/Manifest
@@ -0,0 +1 @@
+DIST dbunit-2.4.5-sources.jar 509812 SHA256 a31762bcf4d41e24a33cbb20043f9c0bbcccab099a8bb11f29fb88fd6af2b9c0 SHA512 9f6f43337d020aa8c8066e6a12efa3d3fc4256b0bc3ed3d330ddbd155a6430accea03e45987ecb44c747a4844c7c49e36549317c63b3cd456896d0e5bc508b5d WHIRLPOOL 6e230abde0d9792dda3f83f549a0df960a8f7bcb4e3541f4c279bdb3b3b64c4aef7281326d4beb25770b5e6205f8a247a02698d94e84237299ba4da4d5fb3133
diff --git a/dev-java/dbunit/dbunit-2.4.5.ebuild b/dev-java/dbunit/dbunit-2.4.5.ebuild
new file mode 100644
index 000000000000..5149316d6aeb
--- /dev/null
+++ b/dev-java/dbunit/dbunit-2.4.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+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="mirror://sourceforge/${PN}/${P}-sources.jar"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+IUSE="${JAVA_PKG_IUSE}"
+
+COMMON_DEP="dev-java/slf4j-api:0
+ dev-java/poi:3.2
+ dev-java/commons-collections:0
+ dev-java/ant-core:0
+ dev-java/junit:0"
+
+RDEPEND=">=virtual/jre-1.4
+ dev-java/slf4j-nop:0
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip:0
+ ${COMMON_DEP}"
+
+S="${WORKDIR}"
+
+java_prepare() {
+ # Upstream no longer provides a build file.
+ cp -v "${FILESDIR}"/build-2.4.xml build.xml || die
+}
+
+EANT_GENTOO_CLASSPATH="poi-3.2,junit,slf4j-api,commons-collections,ant-core"
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+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..dd786c562e3e
--- /dev/null
+++ b/dev-java/dbunit/files/build-2.4.xml
@@ -0,0 +1,62 @@
+<?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="build/javadoc" />
+ <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="javadoc" depends="init">
+ <javadoc sourcepath="."
+ packagenames="org.*"
+ destdir="${docs.dir}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="${ant.project.name} API"
+ doctitle="${ant.project.name} Docs"
+ private="no" />
+ </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/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/metadata.xml b/dev-java/dbunit/metadata.xml
new file mode 100644
index 000000000000..01d4dd9b4580
--- /dev/null
+++ b/dev-java/dbunit/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <longdescription>
+ DBUnit is a JUnit extension targeted for database-driven projects
+ that, puts your database into a known state between test runs.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">dbunit</remote-id>
+ </upstream>
+</pkgmetadata>