aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Heinold <h.heinold@tarent.de>2010-07-12 15:44:52 +0200
committerHenning Heinold <h.heinold@tarent.de>2010-07-26 15:35:20 +0200
commiteb87f27da45b9fc1541d1b08bf2f5d89426cb98b (patch)
tree801f5bc01e82fc498b8f5875dd44d30ea35bd5ec
parentdb045f5c0b057e2af37703e97385b9f063caf4d4 (diff)
downloadopenembedded-eb87f27da45b9fc1541d1b08bf2f5d89426cb98b.zip
openembedded-eb87f27da45b9fc1541d1b08bf2f5d89426cb98b.tar.gz
openembedded-eb87f27da45b9fc1541d1b08bf2f5d89426cb98b.tar.bz2
xalan-j: backport from openembedded-dev
* checksum already in conf/checksums.ini Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
-rw-r--r--recipes/xalan-j/xalan-j-native_2.7.1.bb14
-rw-r--r--recipes/xalan-j/xalan-j_2.7.1.bb57
2 files changed, 71 insertions, 0 deletions
diff --git a/recipes/xalan-j/xalan-j-native_2.7.1.bb b/recipes/xalan-j/xalan-j-native_2.7.1.bb
new file mode 100644
index 0000000..371362a
--- /dev/null
+++ b/recipes/xalan-j/xalan-j-native_2.7.1.bb
@@ -0,0 +1,14 @@
+require xalan-j_${PV}.bb
+
+DEPENDS = "\
+ fastjar-native \
+ xerces-j-native regexp-native jlex-native cup-native jaxp1.3-native bcel-native \
+ "
+
+inherit java-native
+
+
+do_install_append() {
+ :
+}
+
diff --git a/recipes/xalan-j/xalan-j_2.7.1.bb b/recipes/xalan-j/xalan-j_2.7.1.bb
new file mode 100644
index 0000000..2d6d885
--- /dev/null
+++ b/recipes/xalan-j/xalan-j_2.7.1.bb
@@ -0,0 +1,57 @@
+DESCRIPTION = "Java XSLT processor"
+LICENSE = "AL2.0"
+
+AUTHOR = "Apache Software Foundation"
+HOMEPAGE = "http://xml.apache.org/xalan-j
+
+DEPENDS = "fastjar-native xerces-j regexp jlex cup jaxp1.3 bcel"
+
+SRC_URI = "\
+ http://archive.apache.org/dist/xml/${BPN}/${BPN}_2_7_1-src.tar.gz \
+ http://archive.apache.org/dist/jakarta/bsf/source/bsf-src-2.4.0.tar.gz \
+ "
+
+S = "${WORKDIR}/${BPN}_2_7_1"
+
+inherit java-library
+
+JPN = "libxalan2-java"
+
+JARFILENAME = "xalan2-${PV}.jar"
+ALTJARFILENAMES = "xalan2.jar"
+
+do_compile() {
+ mkdir -p build
+
+ oe_makeclasspath cp -s xercesImpl regexp jlex cup bcel jaxp-1.3
+ scp="src:${WORKDIR}/bsf-2.4.0/src"
+
+ javac -J-Xmx512M -sourcepath $scp -cp $cp -d build `find src -name \*.java`
+ (cd src && find org -name "*.properties" -exec cp {} ../build/{} \;)
+
+ # Remove BSF classes
+ rm -rf build-xalan/org/apache/bsf
+
+ mkdir -p build-serializer/org/apache/xml
+ mv build/org/apache/xml/serializer build-serializer/org/apache/xml
+
+ fastjar -C build -c -f ${JARFILENAME} .
+ fastjar -C build-serializer -c -f serializer-${PV}.jar .
+}
+
+do_install_append() {
+ oe_jarinstall serializer-${PV}.jar serializer.jar
+
+ # Like Debian we provide a symlink called xml-apis pointing to the JAXP
+ # classes.
+ ln -sf ${D}${datadir_java}/xml-apis.jar jaxp-1.3.jar
+}
+
+do_stage_append() {
+ oe_jarinstall -s serializer-${PV}.jar serializer.jar
+}
+
+PACKAGES = "libxalan2-serializer-java ${JPN}"
+
+FILES_libxalan2-serializer-java = "${datadir_java}/serializer*.jar"
+