[arch-commits] Commit in junit/trunk (PKGBUILD build.xml)
Guillaume Alaux
guillaume at archlinux.org
Wed Nov 21 11:22:08 UTC 2012
Date: Wednesday, November 21, 2012 @ 06:22:07
Author: guillaume
Revision: 171684
Upstream release - sources
Modified:
junit/trunk/PKGBUILD
Deleted:
junit/trunk/build.xml
-----------+
PKGBUILD | 19 +++++------
build.xml | 103 ------------------------------------------------------------
2 files changed, 9 insertions(+), 113 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-11-21 11:19:58 UTC (rev 171683)
+++ PKGBUILD 2012-11-21 11:22:07 UTC (rev 171684)
@@ -1,25 +1,24 @@
-# Maintainer: Guillaume ALAUX <Guillaume at Arch Linux dot org>
+# Maintainer: Guillaume ALAUX <guillaume at archlinuxorg>
pkgname=junit
-pkgver=4.10
-_commit=45a4464
+pkgver=4.11
pkgrel=1
-pkgdesc="Automated testing framework for Java"
+pkgdesc='automated testing framework for Java'
arch=('any')
-url="http://www.junit.org/"
+url='http://www.junit.org/'
license=('CPL')
depends=('java-runtime-headless')
makedepends=('apache-ant')
-source=(http://github.com/KentBeck/junit/tarball/r${pkgver})
-md5sums=('21cc48c80cab9af6e8204d00acf40a87')
+source=(https://github.com/KentBeck/${pkgname}/archive/r${pkgver}.tar.gz)
+md5sums=('bf62095e510f50baf0962af329438647')
build() {
- cd "${srcdir}/KentBeck-${pkgname}-${_commit}"
+ cd "${srcdir}/${pkgname}-r${pkgver}"
- ant jars
+ ant dist -Dversion-status=''
}
package() {
- cd "${srcdir}/KentBeck-${pkgname}-${_commit}/${pkgname}${pkgver}"
+ cd "${srcdir}/${pkgname}-r${pkgver}/${pkgname}${pkgver}"
install -dm755 ${pkgdir}/usr/share/java/${pkgname}
install -m644 \
Deleted: build.xml
===================================================================
--- build.xml 2012-11-21 11:19:58 UTC (rev 171683)
+++ build.xml 2012-11-21 11:22:07 UTC (rev 171684)
@@ -1,103 +0,0 @@
-<!-- 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="4.4" />
- <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"
- source="1.5"
- target="1.5"
- />
- </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"
- />
-
- <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" />
-
- </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>
More information about the arch-commits
mailing list