aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Heinold <h.heinold@tarent.de>2010-07-12 15:43:37 +0200
committerHenning Heinold <h.heinold@tarent.de>2010-07-26 15:35:20 +0200
commitdb045f5c0b057e2af37703e97385b9f063caf4d4 (patch)
treec5dc09cae774d3e60a028ab7393d5efe98d82782
parent52e6ac22d5651d524d7b963ac33f874c549628f4 (diff)
downloadopenembedded-db045f5c0b057e2af37703e97385b9f063caf4d4.tar.gz
openembedded-db045f5c0b057e2af37703e97385b9f063caf4d4.tar.bz2
openembedded-db045f5c0b057e2af37703e97385b9f063caf4d4.zip
xerces-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/xerces-j/xerces-j-native_2.9.1.bb8
-rw-r--r--recipes/xerces-j/xerces-j_2.9.1.bb45
2 files changed, 53 insertions, 0 deletions
diff --git a/recipes/xerces-j/xerces-j-native_2.9.1.bb b/recipes/xerces-j/xerces-j-native_2.9.1.bb
new file mode 100644
index 0000000000..9238ad9ff2
--- /dev/null
+++ b/recipes/xerces-j/xerces-j-native_2.9.1.bb
@@ -0,0 +1,8 @@
+require xerces-j_${PV}.bb
+
+S = "${WORKDIR}/xerces-2_9_1"
+
+inherit java-native
+
+DEPENDS = "fastjar-native jaxp1.3-native xml-commons-resolver1.1-native"
+RDEPENDS = ""
diff --git a/recipes/xerces-j/xerces-j_2.9.1.bb b/recipes/xerces-j/xerces-j_2.9.1.bb
new file mode 100644
index 0000000000..9a1b4c7956
--- /dev/null
+++ b/recipes/xerces-j/xerces-j_2.9.1.bb
@@ -0,0 +1,45 @@
+DESCRIPTION = "Reference implementation of XNI, the Xerces Native Interface, and also a fully conforming XML Schema processor."
+LICENSES = "AL2.0"
+AUTHOR = "Apache Software Foundation"
+
+SRC_URI = "http://www.apache.org/dist/xerces/j/Xerces-J-src.${PV}.tar.gz"
+
+S = "${WORKDIR}/xerces-2_9_1"
+
+inherit java-library
+
+JPN = "libxerces2-java"
+
+DEPENDS = "fastjar-native jaxp1.3 xml-commons-resolver1.1"
+RDEPENDS = "libjaxp1.3-java libxml-commons-resolver1.1-java"
+
+do_unpackpost() {
+ find src -exec \
+ sed -i -e "s|@impl.name@|Xerces-J ${PV}|" \
+ -e "s|@impl.version@|${PV}|" {} \;
+}
+
+addtask unpackpost after do_unpack before do_patch
+
+JARFILENAME = "xercesImpl.jar"
+ALTJARFILENAMES = ""
+
+do_compile() {
+ mkdir -p build
+
+ # Prepend the bootclasspath with the earlier XML API to make
+ # compilation succeed.
+ oe_makeclasspath bcp -s jaxp-1.3 resolver
+ bcp=$bcp:${STAGING_DATADIR_NATIVE}/classpath/glibj.zip
+
+ javac -sourcepath src -d build -bootclasspath $bcp `find src -name "*.java"`
+
+ (cd src && find org ! -name "*.java" -exec cp {} ../build/{} \;)
+
+ fastjar -C build -c -m src/manifest.xerces -f ${JARFILENAME} .
+
+ # Like Debian we provide a symlink called xmlParserAPIs.jar pointing to the JAXP
+ # classes.
+ ln -sf ${D}${datadir_java}/xmlParserAPIs.jar jaxp-1.3.jar
+
+}