# Description: The JUnit package contains a simple, open source framework to write and run repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. JUnit features include assertions for testing expected results, test fixtures for sharing common test data, and test runners for running tests. # URL: http://junit.org/ # Packager: berlius at nutyx dot com # Depends on: apache-ant unzip description="Open source framework to write and run repeatable tests. It is an instance of the xUnit." name=junit version=4.11 release=1 source=(https://launchpad.net/debian/+archive/primary/+files/junit4_4.11.orig.tar.gz http://hamcrest.googlecode.com/files/hamcrest-1.3.tgz) build() { cd junit4-$version sed -i '\@/docs/@a' build.xml cp -v $SRC/hamcrest-1.3/hamcrest-core-1.3{,-sources}.jar lib/ /opt/ant/bin/ant populate-dist install -v -m755 -d $PKG/usr/share/{doc,java}/junit-4.11 chown -R root:root . cp -v -R junit*/javadoc/* $PKG/usr/share/doc/junit-4.11 cp -v junit*/junit*.jar $PKG/usr/share/java/junit-4.11 cp -v $SRC/hamcrest-1.3/hamcrest-core*.jar $PKG/usr/share/java/junit-4.11 }