Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b5c6457cfd9f3e86b92aeb3086827c0fb3f6f9df

commit b5c6457cfd9f3e86b92aeb3086827c0fb3f6f9df
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Thu Dec 13 16:43:23 2007 +0100

junit-3.8.2-1-i686
new package

diff --git a/source/devel-extra/junit/FrugalBuild 
b/source/devel-extra/junit/FrugalBuild
new file mode 100644
index 0000000..3bc7d16
--- /dev/null
+++ b/source/devel-extra/junit/FrugalBuild
@@ -0,0 +1,25 @@
+# Compiling Time: 0.04 SBU
+# Maintainer: VMiklos <[EMAIL PROTECTED]>
+
+pkgname=junit
+pkgver=3.8.2
+pkgrel=1
+pkgdesc="A regression testing framework."
+_F_sourceforge_ext=".zip"
+Finclude java sourceforge
+url="http://www.junit.org/";
+groups=('devel-extra')
+archs=('i686')
+source=(${source/-} build.xml)
+sha1sums=('701578302e244e5173dca3040cce0774a5c39645' \
+          'b0c2fc9cec04aa535afe35e818c3ab6eed15330b')
+
+build()
+{
+       Fcd $pkgname$pkgver
+       jar xf src.jar
+       Fjavacleanup
+       cp ../build.xml .
+       ant dist || return 1
+       Fjar $pkgname$pkgver/$pkgname.jar
+}
diff --git a/source/devel-extra/junit/build.xml 
b/source/devel-extra/junit/build.xml
new file mode 100644
index 0000000..7c5d047
--- /dev/null
+++ b/source/devel-extra/junit/build.xml
@@ -0,0 +1,119 @@
+<!-- JUnit build script using ant 1.4 -->
+<project name="junit" default="dist" basedir=".">
+       <property file="${user.home}/.junit.properties" />
+       <property name="build.compiler" value="classic" />
+       <property name="version" value="3.8.2" />
+       <property name="dist"  value="junit${version}" />
+       <property name="versionfile"  value="junit/runner/Version.java" />
+       <property name="zipfile"  value="${dist}.zip" />
+       <target name="init">
+               <tstamp/>
+       </target>
+
+       <target name="versiontag" depends="init">
+               <filter token="version" value="${version}" />
+               <copy
+                       file="${versionfile}"
+                       tofile="${versionfile}tmp"
+                       filtering="on"
+               />
+               <move file="${versionfile}tmp" tofile="${versionfile}" />
+       </target>
+
+       <target name="build" depends="versiontag">
+               <javac
+                       srcdir="."
+                       destdir="."
+                       debug="on"
+               />
+       </target>
+
+       <target name="dist" depends="build">
+               <delete dir="${dist}" />
+               <mkdir dir="${dist}" />
+               <jar
+                       jarfile="${dist}/src.jar"
+                       basedir="."
+                       excludes="**/*.jar, junit/tests/**, junit/samples/**, 
**/*.class, doc/**, README.html, .classpath, .project, cpl-v10.html"
+               />
+               <jar
+                       jarfile="${dist}/junit.jar"
+                       basedir="."
+                       excludes="**/*.jar, junit/tests/**, junit/samples/**, 
**/*.java, doc/**, README.html,  build.xml, jar-manifest.txt, .classpath, 
.project, cpl-v10.html"
+               />
+               <copy todir="${dist}/junit/samples">
+                       <fileset dir="junit/samples" />
+               </copy>
+               <copy todir="${dist}/junit/tests">
+                       <fileset dir="junit/tests" />
+               </copy>
+
+
+               <delete file="${dist}/junit/tests/runner/test.jar"/>
+               <jar jarfile="${dist}/junit/tests/runner/test.jar"
+                    basedir="."
+                    includes="junit/tests/runner/LoadedFromJar.class"
+                />
+
+               <mkdir dir="${dist}/javadoc" />
+               <javadoc
+                       sourcepath="."
+                       packagenames="junit.framework.*, junit.extensions.*"
+                       destdir="${dist}/javadoc"
+                       author="false"
+                       version="false"
+                       use="false"
+                       windowtitle="JUnit API"
+                       stylesheetfile="./javadoc/stylesheet.css"
+               />
+               <copy todir="${dist}/doc">
+                       <fileset dir="doc"/>
+               </copy>
+               <copy file="README.html" tofile="${dist}/README.html" />
+               <copy file="cpl-v10.html" tofile="${dist}/cpl-v10.html" />
+
+               <java classname="junit.textui.TestRunner" fork="yes">
+                       <arg value="junit.samples.AllTests" />
+                       <classpath>
+                               <pathelement location="${dist}" />
+                               <pathelement location="${dist}/junit.jar" />
+                       </classpath>
+               </java>
+       </target>
+
+       <target name="zip" depends="dist">
+               <zip
+                       zipfile="${zipfile}"
+                       basedir="."
+                       includes="${dist}/**"
+               />
+       </target>
+
+       <target name="awtui" depends="dist">
+               <java classname="junit.awtui.TestRunner" fork="yes">
+                       <arg value="junit.samples.AllTests" />
+                       <classpath>
+                               <pathelement location="${dist}" />
+                               <pathelement location="${dist}/junit.jar" />
+                       </classpath>
+               </java>
+       </target>
+
+       <target name="swingui" depends="dist">
+               <java classname="junit.swingui.TestRunner" fork="yes">
+                       <arg value="junit.samples.AllTests" />
+                       <classpath>
+                               <pathelement location="${dist}" />
+                               <pathelement location="${dist}/junit.jar" />
+                       </classpath>
+               </java>
+       </target>
+
+       <target name="clean">
+               <delete dir="${dist}" quiet="true"/>
+               <delete file="${zipfile}" quiet="true"/>
+               <delete>
+                       <fileset dir="${basedir}" includes="**/*.class" />
+               </delete>
+       </target>
+</project>
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to