DESCRIPTION = "JUnit is a testing framework for Java" LICENSES = "CPL" AUTHOR = "junit.org" HOMEPAGE = "http://www.junit.org" SRC_URI = "http://downloads.sourceforge.net/junit/junit${PV}.zip" S = "${WORKDIR}/junit${PV}" inherit java-library DEPENDS = "fastjar-native" do_unpackpost() { mkdir -p src # Prevent deletion by do_removebinaries. mv src.jar src.zip unzip src.zip -d src } addtask unpackpost before do_removebinaries after do_unpack do_compile() { mkdir -p build # Workaround for jamvm. bcp=${STAGING_DATADIR_NATIVE}/classpath/glibj.zip javac -bootclasspath $bcp -sourcepath src -d build `find src -name "*.java"` fastjar -C build -c -f ${JARFILENAME} . } SRC_URI[md5sum] = "9b8963ba2147a64bd5f1574b6fd289cb" SRC_URI[sha256sum] = "aae23d20e6f4dc45b4bf0b10fedcbd209c100342a0cafce1aa07d2da6da1f24a" NATIVE_INSTALL_WORKS = "1" BBCLASSEXTEND = "native"