[oe-commits] Henning Heinold : junit: backport from openembedded-dev
git version control
git at git.openembedded.org
Mon Jul 26 13:43:02 UTC 2010
Module: openembedded.git
Branch: stable/2009
Commit: 4275fd6f178a8666df6a7a3746bdbf8e5f704be7
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4275fd6f178a8666df6a7a3746bdbf8e5f704be7
Author: Henning Heinold <h.heinold at tarent.de>
Date: Mon Jul 12 16:01:32 2010 +0200
junit: backport from openembedded-dev
* checksums already in conf/checksums.ini
Acked-by: Koen Kooi <koen at openembedded.org>
Acked-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
---
recipes/junit/junit-native_3.8.2.bb | 4 ++++
recipes/junit/junit4-native_4.3.1.bb | 4 ++++
recipes/junit/junit4_4.3.1.bb | 23 +++++++++++++++++++++++
recipes/junit/junit_3.8.2.bb | 34 ++++++++++++++++++++++++++++++++++
4 files changed, 65 insertions(+), 0 deletions(-)
diff --git a/recipes/junit/junit-native_3.8.2.bb b/recipes/junit/junit-native_3.8.2.bb
new file mode 100644
index 0000000..305351f
--- /dev/null
+++ b/recipes/junit/junit-native_3.8.2.bb
@@ -0,0 +1,4 @@
+require junit_${PV}.bb
+
+inherit java-native
+
diff --git a/recipes/junit/junit4-native_4.3.1.bb b/recipes/junit/junit4-native_4.3.1.bb
new file mode 100644
index 0000000..eb843a9
--- /dev/null
+++ b/recipes/junit/junit4-native_4.3.1.bb
@@ -0,0 +1,4 @@
+require junit4_${PV}.bb
+
+inherit java-native
+
diff --git a/recipes/junit/junit4_4.3.1.bb b/recipes/junit/junit4_4.3.1.bb
new file mode 100644
index 0000000..2733aff
--- /dev/null
+++ b/recipes/junit/junit4_4.3.1.bb
@@ -0,0 +1,23 @@
+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}-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} .
+}
diff --git a/recipes/junit/junit_3.8.2.bb b/recipes/junit/junit_3.8.2.bb
new file mode 100644
index 0000000..2ba54b6
--- /dev/null
+++ b/recipes/junit/junit_3.8.2.bb
@@ -0,0 +1,34 @@
+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} .
+}
More information about the Openembedded-commits
mailing list