From 869530e4af0a419973ee3bdbb6129b6d0126b07f Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Wed, 18 Jul 2012 23:02:58 +0200 Subject: xerces-j: update to version 2.11.0 --- recipes-core/xerces-j/xerces-j_2.11.0.bb | 60 ++++++++++++++++++++++++++++++++ recipes-core/xerces-j/xerces-j_2.9.1.bb | 60 -------------------------------- 2 files changed, 60 insertions(+), 60 deletions(-) create mode 100644 recipes-core/xerces-j/xerces-j_2.11.0.bb delete mode 100644 recipes-core/xerces-j/xerces-j_2.9.1.bb (limited to 'recipes-core/xerces-j') diff --git a/recipes-core/xerces-j/xerces-j_2.11.0.bb b/recipes-core/xerces-j/xerces-j_2.11.0.bb new file mode 100644 index 0000000..ac63645 --- /dev/null +++ b/recipes-core/xerces-j/xerces-j_2.11.0.bb @@ -0,0 +1,60 @@ +DESCRIPTION = "Reference implementation of XNI, the Xerces Native Interface, and also a fully conforming XML Schema processor." +AUTHOR = "Apache Software Foundation" +LICENSE = "AL2.0" +LIC_FILES_CHKSUM = " \ + file://LICENSE;md5=d273d63619c9aeaf15cdaf76422c4f87 \ + file://LICENSE.DOM-documentation.html;md5=77c27084ca92e9a8efe9314f284acc05 \ + file://LICENSE.DOM-software.html;md5=1f920675d8473fd5cbabf133a7e39e0d \ + file://LICENSE.resolver.txt;md5=d229da563da18fe5d58cd95a6467d584 \ + file://LICENSE.serializer.txt;md5=d229da563da18fe5d58cd95a6467d584 \ + " + +SRC_URI = "http://archive.apache.org/dist/xerces/j/Xerces-J-src.${PV}.tar.gz" + +S = "${WORKDIR}/xerces-2_11_0" + +inherit java-library + +JPN = "libxerces2-java" + +DEPENDS = "fastjar-native jaxp1.3 xml-commons-resolver1.1" +DEPENDS_virtclass-native = "fastjar-native jaxp1.3-native xml-commons-resolver1.1-native" + +RDEPENDS_${PN} = "libjaxp1.3-java libxml-commons-resolver1.1-java" +RDEPENDS_${PN}_virtclass-native = "" + +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 + +} + +SRC_URI[md5sum] = "d01fc11eacbe43b45681cb85ac112ebf" +SRC_URI[sha256sum] = "f59a5ef7b51bd883f2e9bda37a9360692e6c5e439b98d9b6ac1953e1f98b0680" + +BBCLASSEXTEND = "native" diff --git a/recipes-core/xerces-j/xerces-j_2.9.1.bb b/recipes-core/xerces-j/xerces-j_2.9.1.bb deleted file mode 100644 index 423b5d2..0000000 --- a/recipes-core/xerces-j/xerces-j_2.9.1.bb +++ /dev/null @@ -1,60 +0,0 @@ -DESCRIPTION = "Reference implementation of XNI, the Xerces Native Interface, and also a fully conforming XML Schema processor." -AUTHOR = "Apache Software Foundation" -LICENSE = "AL2.0" -LIC_FILES_CHKSUM = " \ - file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ - file://LICENSE.DOM-documentation.html;md5=b05e182e1962778d7b207cbf3fe4acef \ - file://LICENSE.DOM-software.html;md5=3aec153ae803c31acdae63bac18506b9 \ - file://LICENSE.resolver.txt;md5=86d3f3a95c324c9479bd8986968f4327 \ - file://LICENSE.serializer.txt;md5=86d3f3a95c324c9479bd8986968f4327 \ - " - -SRC_URI = "http://archive.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" -DEPENDS_virtclass-native = "fastjar-native jaxp1.3-native xml-commons-resolver1.1-native" - -RDEPENDS_${PN} = "libjaxp1.3-java libxml-commons-resolver1.1-java" -RDEPENDS_${PN}_virtclass-native = "" - -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 - -} - -SRC_URI[md5sum] = "e340cba4a2abf4f0f833488380821153" -SRC_URI[sha256sum] = "13af0062a72a4a0d541ca5336391eafa4d580258cacf4a5e062ea584ca950592" - -BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf