summaryrefslogtreecommitdiff
path: root/dev-java/junit-addons
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/junit-addons')
-rw-r--r--dev-java/junit-addons/Manifest7
-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/junit-addons-1.4-r1.ebuild67
-rw-r--r--dev-java/junit-addons/metadata.xml15
5 files changed, 334 insertions, 0 deletions
diff --git a/dev-java/junit-addons/Manifest b/dev-java/junit-addons/Manifest
new file mode 100644
index 000000000000..39d99434a0cf
--- /dev/null
+++ b/dev-java/junit-addons/Manifest
@@ -0,0 +1,7 @@
+AUX 1.4-build.xml 8725 SHA256 449d3c41e228c0403d272347a362d5243f8d390e19d34983d1c02f2e77787433 SHA512 3f3eae33867f9e311e8e2e58a87dbc67dc4beb6eb89793b2b477953a1fc5cba45aad2a8241e07717de472969ec448c6205617da2427243cfdb21f0cf4ba91b12 WHIRLPOOL 91b5faefc1560341518ae4ada70acefe78efe1b6bd45bff812ab06933983ce1e2f00174ff5997ad9dde6288e5d97ab63ee95686f7b019e5e55f7bbbc0b3f287e
+AUX 1.4-common.properties 540 SHA256 71e0c35d7677d4673886c5ed13c79e3ed44b3158ab22c893c7f4c95fecbc1426 SHA512 9362f56305b2d6cd97a10ed6cd661de6ae86e700d250cf69c55f922fca2c6f57e8ce1c306ad4378196c18cc8b839bcd5440816f6ef60f908a28da7b4ef78bbc6 WHIRLPOOL 842f586d028b66ae74a09e6e9e3c01ba1a97bef0debc5eeeaf910418d57f18c65b3d8845840f9a830c594432e7ef5fcc75c5223ff3404e7359526935da82abd9
+DIST junit-addons-1.4.zip 293750 SHA256 8a7456eaabf1c3528b8e73c15df1b8a467386cbf3905b1d5df536201f1981990 SHA512 0ddc9a95d80190417c92e86697669020a2947e2211d2394334b80d76bca5397f132d90e00d0c679bf48607fbadf8d1d6e97d3770d06c35cab78c6cada198434a WHIRLPOOL 2bf3c99b31d0eac1d76e8d6bcd8fbd45f668712798d4ba6ecb019762dbdb045ad877497140a83317bfe1439af33a0637e7964023472ae776d7f457c69cc66be3
+EBUILD junit-addons-1.4-r1.ebuild 1458 SHA256 3d8ee1b6509fecfb9f63069564d9f343025895201b1ae1832fca358cc315dc5a SHA512 9b429406c445445282184cda4f61ee0cf8c43d3a7a7bd0fc27e0e59628e53121c752e659850e79aa07bd0f7fe426477a7c1a9f0e72cca341e77732e05d75ec57 WHIRLPOOL dbf2b81f04c2a8bf2d54ae0fbb9046448dd3de505c9e4dab6ebc12415c355a488e65700b2e8bce9005d9accb432299317b764776dacdc66a52807b85b36b7d28
+MISC ChangeLog 2931 SHA256 5022cf9751b839384f35e07117479e18f35ffef48bb72c548f66b49f2c35e43c SHA512 aa32d6ab02678e7381ad02acbcd1583ce098749e4ef893c23270fadf3bc0a48aa471c864591cff1c87c3dd4de46c54be0e68ff22aee88bec2be7e7aeb9c2b259 WHIRLPOOL 45b1ac28292eadcfec47cf09a6cf7adb95a26ac21181326691a0e525fb3dab5f9e3c828bcc0e41745f84957d166c0400806d85d97722be633646a87c4f524b94
+MISC ChangeLog-2015 982 SHA256 c557bbe2324d24b46556edfb157edbee5e2762acef0da6c7e81ca76c21548839 SHA512 57685c3443c365bd5bbf98cde1bf0752ae1ac41972712c963ccd069bed2bcdd47f68df16f269404e59f0c7426ef7c20036ef42306d83cbb2f88942fd71bae7d5 WHIRLPOOL be77efc21504712ddd179748f269d7e9fcd3ca28916c0eebc8a67973d7ad6e86ae53fe26fa5ef29b68d7eff49471a6b85d1cdbc8bcbb2b54f6c746115684ec26
+MISC metadata.xml 490 SHA256 e94445cc0472cd4a1294cb05204e6375cc3c24fcc93286c9e70c05db023d7106 SHA512 bfa7b8058d0f28bd1455f2ab6841b562f369a62d90bd6a1a875c67c991dc75ade65c6e854351a4dee83d2ae059185e82a84f3159095a174aa48fdbfa8070b3fa WHIRLPOOL a6c43d57a1d2396199bd2f8ab1a1d8e79494b89bb79c7b88702c289ad0a7eac99730cbe4ac8af903ff90004e19e999cc42e595cae593187203eaa996ba2c3f06
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/junit-addons-1.4-r1.ebuild b/dev-java/junit-addons/junit-addons-1.4-r1.ebuild
new file mode 100644
index 000000000000..3e5a375987af
--- /dev/null
+++ b/dev-java/junit-addons/junit-addons-1.4-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+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="~amd64 ~x86 ~x86-linux ~x86-macos"
+
+COMMON_DEP="
+ dev-java/junit:0
+ dev-java/ant-core:0
+ dev-java/jdom:0
+ dev-java/jaxen:1.1
+ "
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+java_prepare() {
+ 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 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..3a46e0a4fd94
--- /dev/null
+++ b/dev-java/junit-addons/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <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>
+ <upstream>
+ <remote-id type="sourceforge">junit-addons</remote-id>
+ </upstream>
+</pkgmetadata>