# $Id$ PNAME="junit" PVER="4.8.2" PBUILD="r3" PCATEGORIE="dev-java" DESCRIPTION="JUnit is a simple framework to write repeatable tests." HOMEPAGE="http://junit.org/" DEPEND=">= virtual/java" SDEPEND=">= virtual/java-jdk >= app-arch/unzip-5" SRCFILE="${PNAME}${PVER}.zip" SRCDIR="${BUILDDIR}/${PNAME}${PVER}" sminclude java SRC_URI=( https://github.com/downloads/KentBeck/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # unpack src.jar install -d src || die unzip -d src ${PNAME}-${PVER}-src.jar || die # cleanup prebuild jars and other unneeded stuff rm -rf javadoc *.jar || die find . -name \*.class | xargs rm || die } src_compile() { cd ${SRCDIR} # compile clases install -d classes || die javac -d classes -cp temp.hamcrest.source $(find src -name \*.java) || die # create jar jar -cf junit.jar -C classes . || die } src_install() { cd ${SRCDIR} minstalljar junit.jar || die minstalldocs README.html cpl-v10.html doc/ReleaseNotes${PVER}.txt || die }