bsf 2.4.0: New recipe (from Jalimo SVN).
authorRobert Schuster <robertschuster@fsfe.org>
Fri, 18 Sep 2009 12:45:02 +0000 (14:45 +0200)
committerRobert Schuster <robertschuster@fsfe.org>
Fri, 18 Sep 2009 12:45:02 +0000 (14:45 +0200)
bsf-native 2.4.0: Dito.

recipes/jakarta-libs/bsf-native_2.4.0.bb [new file with mode: 0644]
recipes/jakarta-libs/bsf_2.4.0.bb [new file with mode: 0644]

diff --git a/recipes/jakarta-libs/bsf-native_2.4.0.bb b/recipes/jakarta-libs/bsf-native_2.4.0.bb
new file mode 100644 (file)
index 0000000..9b3c1dd
--- /dev/null
@@ -0,0 +1,8 @@
+require bsf_${PV}.bb
+
+S = "${WORKDIR}/bsf-${PV}"
+
+inherit java-native
+
+DEPENDS = "fastjar-native jacl-native commons-logging-native rhino-native xalan-j-native bcel-native"
+
diff --git a/recipes/jakarta-libs/bsf_2.4.0.bb b/recipes/jakarta-libs/bsf_2.4.0.bb
new file mode 100644 (file)
index 0000000..e853ea1
--- /dev/null
@@ -0,0 +1,24 @@
+DESCRIPTION = "Bean Scripting Framework package"
+LICENSES = "AL2.0"
+AUTHOR = "Apache Software Foundation"
+
+SRC_URI = "http://archive.apache.org/dist/jakarta/bsf/source/bsf-src-${PV}.tar.gz"
+
+inherit java-library
+
+DEPENDS = "fastjar-native jacl commons-logging rhino xalan-j bcel"
+
+do_compile() {
+  mkdir -p build
+
+  oe_makeclasspath cp -s commons-logging jacl rhino bcel xalan2
+  
+       # Remove netrexx and jython support
+  rm -Rf src/org/apache/bsf/engines/netrexx
+  rm -Rf src/org/apache/bsf/engines/jython
+
+  javac -sourcepath src -cp $cp -d build `find src -name "*.java"`
+
+  fastjar -C build -c -f ${JARFILENAME} .
+}
+