From 8bd0b4ed5485c532e6ea4e6f23a207d3a2d66ade Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Mon, 12 Jul 2010 15:34:11 +0200 Subject: xml-commons: backport from openembedded-dev * checksums already in conf/checksums.ini Acked-by: Koen Kooi Acked-by: Marcin Juszkiewicz --- recipes/xml-commons/jaxp1.3-native_1.3.04.bb | 4 +++ recipes/xml-commons/jaxp1.3_1.3.04.bb | 24 +++++++++++++++ .../xml-commons-resolver1.1-native_1.2.bb | 6 ++++ recipes/xml-commons/xml-commons-resolver1.1_1.2.bb | 35 ++++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 recipes/xml-commons/jaxp1.3-native_1.3.04.bb create mode 100644 recipes/xml-commons/jaxp1.3_1.3.04.bb create mode 100644 recipes/xml-commons/xml-commons-resolver1.1-native_1.2.bb create mode 100644 recipes/xml-commons/xml-commons-resolver1.1_1.2.bb (limited to 'recipes/xml-commons') diff --git a/recipes/xml-commons/jaxp1.3-native_1.3.04.bb b/recipes/xml-commons/jaxp1.3-native_1.3.04.bb new file mode 100644 index 0000000000..ae94b80140 --- /dev/null +++ b/recipes/xml-commons/jaxp1.3-native_1.3.04.bb @@ -0,0 +1,4 @@ +require jaxp1.3_${PV}.bb + +inherit java-native + diff --git a/recipes/xml-commons/jaxp1.3_1.3.04.bb b/recipes/xml-commons/jaxp1.3_1.3.04.bb new file mode 100644 index 0000000000..f66ae574fa --- /dev/null +++ b/recipes/xml-commons/jaxp1.3_1.3.04.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX)" +LICENSES = "AL2.0 W3C Public Domain" +AUTHOR = "Apache Software Foundation" + +SRC_URI = "http://archive.apache.org/dist/xml/commons/source/xml-commons-external-${PV}-src.tar.gz" + +inherit java-library + +S = "${WORKDIR}" + +DEPENDS = "fastjar-native" + +JARFILENAME = "jaxp-1.3.jar" +ALTJARFILENAMES = "xml-apis.jar" + +do_compile() { + mkdir -p build/license + javac -d build `find javax org -name \*.java` + + cp LICENSE.*.txt README.*.txt build/license + + fastjar -c -m manifest.commons -f ${JARFILENAME} -C build . +} + diff --git a/recipes/xml-commons/xml-commons-resolver1.1-native_1.2.bb b/recipes/xml-commons/xml-commons-resolver1.1-native_1.2.bb new file mode 100644 index 0000000000..382be4373d --- /dev/null +++ b/recipes/xml-commons/xml-commons-resolver1.1-native_1.2.bb @@ -0,0 +1,6 @@ +require xml-commons-resolver1.1_${PV}.bb + +inherit java-native + +DEPENDS = "fastjar-native jaxp1.3-native" + diff --git a/recipes/xml-commons/xml-commons-resolver1.1_1.2.bb b/recipes/xml-commons/xml-commons-resolver1.1_1.2.bb new file mode 100644 index 0000000000..9059dba28a --- /dev/null +++ b/recipes/xml-commons/xml-commons-resolver1.1_1.2.bb @@ -0,0 +1,35 @@ +DESCRIPTION = "Library to resolve various public or system identifiers into accessible URLs (Java)" +LICENSES = "AL2.0" +AUTHOR = "Apache Software Foundation" + +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" + +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 +} + -- cgit 1.2.3-korg