summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/junit-addons')
-rw-r--r--dev-java/junit-addons/ChangeLog10
-rw-r--r--dev-java/junit-addons/Manifest24
-rw-r--r--dev-java/junit-addons/files/1.4-build.xml230
-rw-r--r--dev-java/junit-addons/files/1.4-common.properties15
-rw-r--r--dev-java/junit-addons/files/digest-junit-addons-1.43
-rw-r--r--dev-java/junit-addons/junit-addons-1.4.ebuild68
-rw-r--r--dev-java/junit-addons/metadata.xml9
7 files changed, 359 insertions, 0 deletions
diff --git a/dev-java/junit-addons/ChangeLog b/dev-java/junit-addons/ChangeLog
new file mode 100644
index 000000000000..c28074dc07d4
--- /dev/null
+++ b/dev-java/junit-addons/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/junit-addons
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/junit-addons/ChangeLog,v 1.1 2007/03/31 23:39:58 betelgeuse Exp $
+
+*junit-addons-1.4 (31 Mar 2007)
+
+ 31 Mar 2007; Petteri Räty <betelgeuse@gentoo.org> +files/1.4-build.xml,
+ +files/1.4-common.properties, +metadata.xml, +junit-addons-1.4.ebuild:
+ Initial addition for bug #161918. Ebuild written by me.
+
diff --git a/dev-java/junit-addons/Manifest b/dev-java/junit-addons/Manifest
new file mode 100644
index 000000000000..2322328f6bbc
--- /dev/null
+++ b/dev-java/junit-addons/Manifest
@@ -0,0 +1,24 @@
+AUX 1.4-build.xml 8725 RMD160 7c8016e53f5de4e688e48b0b777d77afdfbdd282 SHA1 0a25c3349c788fb96e39e968003f9f7875310a4a SHA256 449d3c41e228c0403d272347a362d5243f8d390e19d34983d1c02f2e77787433
+MD5 e1b1ef49b4631955f9e4f43d0f7752d4 files/1.4-build.xml 8725
+RMD160 7c8016e53f5de4e688e48b0b777d77afdfbdd282 files/1.4-build.xml 8725
+SHA256 449d3c41e228c0403d272347a362d5243f8d390e19d34983d1c02f2e77787433 files/1.4-build.xml 8725
+AUX 1.4-common.properties 540 RMD160 ceba70a9e4a892e72b57be6994d36e2634ffdfd0 SHA1 0059a489e4785d2300ba95377d813226a6d0fe21 SHA256 71e0c35d7677d4673886c5ed13c79e3ed44b3158ab22c893c7f4c95fecbc1426
+MD5 53f09a1f0394fa079334c9cfb19e4558 files/1.4-common.properties 540
+RMD160 ceba70a9e4a892e72b57be6994d36e2634ffdfd0 files/1.4-common.properties 540
+SHA256 71e0c35d7677d4673886c5ed13c79e3ed44b3158ab22c893c7f4c95fecbc1426 files/1.4-common.properties 540
+DIST junit-addons-1.4.zip 293750 RMD160 d7ac95ea9d770de626de16b3243eb8a34e0547d6 SHA1 88dae5c711e2cb3d53085ee857ed9b091b094b32 SHA256 8a7456eaabf1c3528b8e73c15df1b8a467386cbf3905b1d5df536201f1981990
+EBUILD junit-addons-1.4.ebuild 1462 RMD160 3518b18053ef92d7d994651f906c6757297fdb0a SHA1 7a845299488446787ff6d1bc66dde244e713c8dc SHA256 be1e6c840812893b713ef680290caa72367267836b0fb13dcef82d28e32d1dae
+MD5 c976ebec99641e84484364672218c454 junit-addons-1.4.ebuild 1462
+RMD160 3518b18053ef92d7d994651f906c6757297fdb0a junit-addons-1.4.ebuild 1462
+SHA256 be1e6c840812893b713ef680290caa72367267836b0fb13dcef82d28e32d1dae junit-addons-1.4.ebuild 1462
+MISC ChangeLog 362 RMD160 d181bf65085dce6fe6beb9fea09a44d7ba49d001 SHA1 9cca7da0963e4828d82128958b1f556e8ad88032 SHA256 b515f081ace10414ed1c5935e058745adbae2304a9c2f443a99270231253d041
+MD5 e5cbd24ccb7a4b2020aec5877b742c7c ChangeLog 362
+RMD160 d181bf65085dce6fe6beb9fea09a44d7ba49d001 ChangeLog 362
+SHA256 b515f081ace10414ed1c5935e058745adbae2304a9c2f443a99270231253d041 ChangeLog 362
+MISC metadata.xml 330 RMD160 1eb0899b12a53cf9008b30f2fecb621cc55703e5 SHA1 90a149dfe9b31fd238b5b0c83d93928caf7a284d SHA256 c72e764417f3780d0d22b1de038be67ba6d94557aa0cf39c4ad20c2b24b56a1b
+MD5 6c2f3c25af6c38e93660a5ced708befa metadata.xml 330
+RMD160 1eb0899b12a53cf9008b30f2fecb621cc55703e5 metadata.xml 330
+SHA256 c72e764417f3780d0d22b1de038be67ba6d94557aa0cf39c4ad20c2b24b56a1b metadata.xml 330
+MD5 ec54457da1eda797cde0a1d702bed9de files/digest-junit-addons-1.4 241
+RMD160 06e6919dd440e9e2a2f053066c11b7855e6719dd files/digest-junit-addons-1.4 241
+SHA256 546b7d3c52ea4a0ac2afa36e5859083b8394f551351ad20579238c6d798cd8de files/digest-junit-addons-1.4 241
diff --git a/dev-java/junit-addons/files/1.4-build.xml b/dev-java/junit-addons/files/1.4-build.xml
new file mode 100644
index 000000000000..5b171e1051ab
--- /dev/null
+++ b/dev-java/junit-addons/files/1.4-build.xml
@@ -0,0 +1,230 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+ - Build file for the JUnit-addons Project.
+ -
+ - This script should be started with the following command line :
+ -
+ - ant <target>
+ -
+ - Run "ant -projecthelp" to get a list of available targets.
+ -
+ - Take from upstream CVS and modified a little for Gentoo:
+ - Version: Revision: 1.15 Date: 2003/04/09 04:41:10
+ - Author: Vladimir R. Bossicard (vbossica@users.sourceforge.net)
+ -->
+
+<project name="junit-addons" default="build" basedir=".">
+
+ <property file="build.properties" />
+ <property file="common.properties" />
+
+ <!-- directories settings -->
+
+ <property name="src" value="src" />
+ <property name="main.src" value="src/main" />
+ <property name="test.src" value="src/test" />
+ <property name="example.src" value="src/example" />
+
+ <property name="build.dest" value="build" />
+ <property name="api.dest" value="${build.dest}/api" />
+ <property name="classes.dest" value="${build.dest}/classes" />
+ <property name="test.classes.dest" value="${build.dest}/classes-test" />
+ <property name="example.classes.dest" value="${build.dest}/classes-example" />
+ <property name="dist.dest" value="dist" />
+
+ <!-- miscellaneous settings -->
+
+ <property name="compilation.debug" value="on" />
+ <property name="compilation.deprecation" value="off" />
+ <property name="compilation.verbose" value="off" />
+
+ <!--
+ - Initializes the build and check if all libraries are available.
+ -->
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${build.dest}" />
+ <mkdir dir="${classes.dest}" />
+ <mkdir dir="${test.classes.dest}" />
+ <mkdir dir="${example.classes.dest}" />
+ <mkdir dir="${api.dest}" />
+ <mkdir dir="${dist.dest}" />
+ </target>
+
+ <path id="libraries">
+ <pathelement location="${jdom.jar}" />
+ <pathelement location="${jaxen.jar}" />
+ <pathelement location="${saxpath.jar}" />
+ <pathelement location="${ant.jar}" />
+ <pathelement location="${junit.jar}" />
+ <pathelement location="${xerces.jar}" />
+ <pathelement location="${xml-apis.jar}" />
+ <pathelement location="${commons-logging.jar}" />
+ </path>
+
+ <!--
+ - Compiles the source code to the build dir
+ - Copy all other resources to the build dir
+ - which are needed to run the application alone
+ -->
+ <target name="build"
+ depends="init"
+ description="compiles the junit-addons classes">
+ <javac srcdir="${main.src}"
+ destdir="${classes.dest}"
+ debug="${compilation.debug}"
+ verbose="${compilation.verbose}"
+ deprecation="${compilation.deprecation}">
+ <classpath>
+ <path refid="libraries"/>
+ </classpath>
+ </javac>
+
+ <javac srcdir="${example.src}"
+ destdir="${example.classes.dest}"
+ debug="${compilation.debug}"
+ verbose="${compilation.verbose}"
+ deprecation="${compilation.deprecation}">
+ <classpath>
+ <pathelement location="${classes.dest}" />
+ <path refid="libraries"/>
+ </classpath>
+ </javac>
+
+ <javac srcdir="${test.src}"
+ destdir="${test.classes.dest}"
+ debug="${compilation.debug}"
+ verbose="${compilation.verbose}"
+ deprecation="${compilation.deprecation}">
+ <classpath>
+ <pathelement location="${classes.dest}" />
+ <pathelement location="${example.classes.dest}" />
+ <path refid="libraries"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="test"
+ depends="build"
+ description="tests the junit-addons classes">
+ <java classname="junitx.runner.TestRunner" fork="yes">
+ <jvmarg value="-DPropertyManager.file=${test.src}/tests.properties" />
+ <jvmarg value="-DXMLPropertyManager.file=${test.src}/tests.xml" />
+ <arg line="-verbose" />
+ <arg line="-runner.properties /home/vladimir/projects/junit-addons-runner/src/main/conf/runner.properties" />
+ <arg line="-test.properties ${test.src}/tests.properties" />
+ <arg line="-class AllTests" />
+ <classpath>
+ <pathelement location="${classes.dest}" />
+ <pathelement location="${test.classes.dest}" />
+ <pathelement location="${example.classes.dest}" />
+ <pathelement location="${example.src}" />
+ <pathelement location="${junit-addons-runner.jar}" />
+ <path refid="libraries"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="test-old"
+ depends="build">
+ <java classname="junit.textui.TestRunner" fork="yes">
+ <arg line="-class AllTests" />
+ <jvmarg value="-DPropertyManager.file=${test.src}/tests.properties" />
+ <jvmarg value="-DXMLPropertyManager.file=${test.src}/tests.xml" />
+ <classpath>
+ <pathelement location="${classes.dest}" />
+ <pathelement location="${test.classes.dest}" />
+ <pathelement location="${example.classes.dest}" />
+ <pathelement location="${example.src}" />
+ <path refid="libraries"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="example"
+ depends="build"
+ description="compiles and runs the examples">
+ <javac srcdir="${example.src}"
+ destdir="${test.classes.dest}"
+ debug="${compilation.debug}"
+ verbose="${compilation.verbose}"
+ deprecation="${compilation.deprecation}">
+ <classpath>
+ <pathelement location="${classes.dest}" />
+ <path refid="libraries"/>
+ </classpath>
+ </javac>
+ <java classname="junitx.tool.TestClassValidator" fork="yes">
+ <arg line="junitx.example.ValidationExample" />
+ <classpath>
+ <pathelement location="${classes.dest}" />
+ <pathelement location="${test.classes.dest}" />
+ <path refid="libraries"/>
+ </classpath>
+ </java>
+ </target>
+
+ <!--
+ - Generates the junit-addons API
+ -->
+ <target name="api"
+ depends="build"
+ description="generates the API">
+ <javadoc
+ packagenames="junitx.*"
+ sourcepath="${main.src}"
+ destdir="${api.dest}"
+ overview="${main.src}/overview.html"
+ author="true"
+ version="true"
+ protected="true"
+ use="false"
+ windowtitle="${project.title} v${project.version}"
+ doctitle="${project.title}, version ${project.version}&lt;br>API specification"
+ header="&lt;b>${project.title}&lt;br>version ${project.version}&lt;/b>"
+ bottom="Copyright &amp;#169; ${project.year} ${project.holder}. All Rights Reserved.">
+ <classpath>
+ <path refid="libraries"/>
+ </classpath>
+ </javadoc>
+ </target>
+
+ <!--
+ - Generates a jar archive with the content of the build directory
+ -->
+ <target name="release"
+ depends="clean, build"
+ description="Generate the junit-addons jar archive" >
+ <delete quiet="true">
+ <fileset dir="${dist.dest}/" includes="${project.name}-${project.version}.jar" />
+ </delete>
+ <jar jarfile="${dist.dest}/${project.name}-${project.version}.jar"
+ basedir="${classes.dest}" >
+ <manifest>
+ <attribute name="Implementation-Vendor"
+ value="${project.holder}" />
+ <attribute name="Implementation-Version"
+ value="${project.version}" />
+ <attribute name="Implementation-Title"
+ value="${project.title}" />
+ </manifest>
+ </jar>
+ <zip zipfile="${dist.dest}/${project.name}-${project.version}.jar"
+ update="yes">
+ <zipfileset dir="." includes="LICENSE" prefix="META-INF" />
+ </zip>
+ <zip zipfile="${dist.dest}/src.jar">
+ <zipfileset dir="${src}" excludes="**/sflogo.png" prefix="src" />
+ </zip>
+ </target>
+
+ <!--
+ - Delete all generate directories and their content
+ -->
+ <target name="clean">
+ <delete dir="${build.dest}" quiet="true" />
+ <delete dir="${dist.dest}" quiet="true" />
+ </target>
+
+</project>
diff --git a/dev-java/junit-addons/files/1.4-common.properties b/dev-java/junit-addons/files/1.4-common.properties
new file mode 100644
index 000000000000..f1e3efd9fa4a
--- /dev/null
+++ b/dev-java/junit-addons/files/1.4-common.properties
@@ -0,0 +1,15 @@
+# ----------------------------------------------------------------------------
+# Common properties used by both the build.xml and committer.xml files.
+#
+# Taken from upstream CVS:
+# Version: Revision: 1.2 Date: 2003/04/02 04:50:33
+# Author: Vladimir R. Bossicard (vbossica@users.sourceforge.net)
+# ----------------------------------------------------------------------------
+
+# Project settings
+
+project.name = junit-addons
+project.title = JUnit-addons
+project.holder = Vladimir R. Bossicard
+project.year = 2002-2003
+project.version = 1.4
diff --git a/dev-java/junit-addons/files/digest-junit-addons-1.4 b/dev-java/junit-addons/files/digest-junit-addons-1.4
new file mode 100644
index 000000000000..6bfe3be8aed0
--- /dev/null
+++ b/dev-java/junit-addons/files/digest-junit-addons-1.4
@@ -0,0 +1,3 @@
+MD5 d7943f368aa0fbcc9171ed2fa3e382cc junit-addons-1.4.zip 293750
+RMD160 d7ac95ea9d770de626de16b3243eb8a34e0547d6 junit-addons-1.4.zip 293750
+SHA256 8a7456eaabf1c3528b8e73c15df1b8a467386cbf3905b1d5df536201f1981990 junit-addons-1.4.zip 293750
diff --git a/dev-java/junit-addons/junit-addons-1.4.ebuild b/dev-java/junit-addons/junit-addons-1.4.ebuild
new file mode 100644
index 000000000000..e6914c137501
--- /dev/null
+++ b/dev-java/junit-addons/junit-addons-1.4.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/junit-addons/junit-addons-1.4.ebuild,v 1.1 2007/03/31 23:39:58 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="JUnit-addons is a collection of helper classes for JUnit."
+HOMEPAGE="http://junit-addons.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+COMMON_DEP="
+ dev-java/junit
+ dev-java/ant-core
+ ~dev-java/jdom-1.0
+ =dev-java/jaxen-1.1*
+ "
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ unpack ./src.jar
+ rm -v *.jar || die
+ # Not included so taken from cvs
+ cp "${FILESDIR}/${PV}-build.xml" build.xml || die
+ cp "${FILESDIR}/${PV}-common.properties" common.properties || die
+}
+
+_eant() {
+ eant \
+ -Djunit.jar="$(java-pkg_getjar junit junit.jar)" \
+ -Dant.jar="$(java-pkg_getjar ant-core ant.jar)" \
+ -Djdom.jar="$(java-pkg_getjar jdom-1.0 jdom.jar)" \
+ -Djaxen.jar="$(java-pkg_getjar jaxen-1.1 jaxen.jar)" \
+ "${@}"
+}
+
+src_compile() {
+ # javadocs are bundled
+ _eant release
+}
+
+# Needs junit-addons-runner that again needs this package to build
+#src_test() {
+# cd src/test/
+# _eant -f AntTest.xml
+#}
+
+src_install() {
+ java-pkg_newjar dist/${P}.jar
+ dodoc README WHATSNEW || die
+ use doc && java-pkg_dojavadoc api
+ if use source; then
+ insinto "${JAVA_PKG_SOURCESPATH}"
+ newins dist/src.jar ${PN}-src.zip
+ fi
+}
diff --git a/dev-java/junit-addons/metadata.xml b/dev-java/junit-addons/metadata.xml
new file mode 100644
index 000000000000..e41cbe5e5d89
--- /dev/null
+++ b/dev-java/junit-addons/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <longdescription lang="en">
+ JUnit-addons is a collection of helper classes for JUnit.
+ This library can be used with both JUnit 3.7 and JUnit 3.8.x
+ </longdescription>
+</pkgmetadata>