From 57e069cde6617f00ca8834a82c6f360af43d5067 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Sat, 12 Nov 2011 20:58:34 +0100 Subject: meta-java: initial commit * taken over mostly stuff from oe classic * cleaned up recipes * added license checksums * bump icedtea6-native to 1.8.11 * use jamvm from git as native --- recipes-core/junit/junit4_4.3.1.bb | 29 ++++++++++++++++++++++++++++ recipes-core/junit/junit_3.8.2.bb | 39 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 recipes-core/junit/junit4_4.3.1.bb create mode 100644 recipes-core/junit/junit_3.8.2.bb (limited to 'recipes-core/junit') diff --git a/recipes-core/junit/junit4_4.3.1.bb b/recipes-core/junit/junit4_4.3.1.bb new file mode 100644 index 0000000..bed0e42 --- /dev/null +++ b/recipes-core/junit/junit4_4.3.1.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "JUnit is a testing framework for Java" +LICENSE = "CPL" +AUTHOR = "junit.org" +HOMEPAGE = "http://www.junit.org" + +SRC_URI = "http://downloads.sourceforge.net/junit/junit-${PV}-src.jar" + +S = "${WORKDIR}" + +inherit java-library + +DEPENDS = "fastjar-native" + +do_compile() { + mkdir -p build + + # Workaround for jamvm. + bcp=${STAGING_DATADIR_NATIVE}/classpath/glibj.zip + + javac -source 5.0 -bootclasspath $bcp -sourcepath . -d build `find . -name "*.java"` + + fastjar -C build -c -f ${JARFILENAME} . +} + +SRC_URI[md5sum] = "170f9645a41398388e8553b32ff5f630" +SRC_URI[sha256sum] = "57d1e49ee3fd0dbdc0a68a852925c973af5c30b1725b6aa63bfb42df6f7c3349" + +NATIVE_INSTALL_WORKS = "1" +BBCLASSEXTEND = "native" diff --git a/recipes-core/junit/junit_3.8.2.bb b/recipes-core/junit/junit_3.8.2.bb new file mode 100644 index 0000000..a628ac4 --- /dev/null +++ b/recipes-core/junit/junit_3.8.2.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "JUnit is a testing framework for Java" +AUTHOR = "junit.org" +HOMEPAGE = "http://www.junit.org" +LICENSE = "CPL" +LIC_FILES_CHKSUM = "file://cpl-v10.html;md5=67a4b75d42edcbd82d2878eba913691b" + +SRC_URI = "http://downloads.sourceforge.net/junit/junit${PV}.zip" + +S = "${WORKDIR}/junit${PV}" + +inherit java-library + +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" -- cgit v1.2.3-54-g00ecf