From 57e069cde6617f00ca8834a82c6f360af43d5067 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Sat, 12 Nov 2011 20:58:34 +0100 Subject: meta-java: initial commit * taken over mostly stuff from oe classic * cleaned up recipes * added license checksums * bump icedtea6-native to 1.8.11 * use jamvm from git as native --- .../xml-commons/xml-commons-resolver1.1_1.2.bb | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 recipes-core/xml-commons/xml-commons-resolver1.1_1.2.bb (limited to 'recipes-core/xml-commons/xml-commons-resolver1.1_1.2.bb') diff --git a/recipes-core/xml-commons/xml-commons-resolver1.1_1.2.bb b/recipes-core/xml-commons/xml-commons-resolver1.1_1.2.bb new file mode 100644 index 0000000..794ab4b --- /dev/null +++ b/recipes-core/xml-commons/xml-commons-resolver1.1_1.2.bb @@ -0,0 +1,42 @@ +DESCRIPTION = "Library to resolve various public or system identifiers into accessible URLs (Java)" +AUTHOR = "Apache Software Foundation" +LICENSE = "AL2.0" +LIC_FILES_CHKSUM = "file://LICENSE.resolver.txt;md5=d229da563da18fe5d58cd95a6467d584" + +SRC_URI = "http://archive.apache.org/dist/xml/commons/xml-commons-resolver-${PV}.tar.gz" + +inherit java-library + +S = "${WORKDIR}/xml-commons-resolver-${PV}" + +DEPENDS = "fastjar-native jaxp1.3" +DEPENDS_virtclass-native = "fastjar-native jaxp1.3-native" + +do_unpackpost() { + find src -exec \ + sed -i -e "s|@impl.name@|XmlResolver|" \ + -e "s|@impl.version@|1.2|" {} \; +} + +addtask unpackpost after do_unpack before do_patch + +JARFILENAME = "resolver.jar" +ALTJARFILENAMES = "" + +do_compile() { + mkdir -p build + + cp=${STAGING_DATADIR_JAVA}/jaxp1.3.jar + + javac -sourcepath src -d build -classpath $cp `find src -name "*.java" -and -not -wholename "*tests*"` + + (cd src && find org -name "*.xml" -o -name "*.txt" -o -name "*.src" -exec cp {} ../build/{} \;) + + fastjar -C build -c -m src/manifest.resolver -f ${JARFILENAME} org +} + +SRC_URI[md5sum] = "46d52acdb67ba60f0156043f30108766" +SRC_URI[sha256sum] = "55dbe7bd56452c175320ce9a97b752252c5537427221323c72e9b9c1ac221efe" + +NATIVE_INSTALL_WORKS = "1" +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf