[oe-commits] Henning Heinold : xml-commons: backport from openembedded-dev
git version control
git at git.openembedded.org
Mon Jul 26 13:43:01 UTC 2010
Module: openembedded.git
Branch: stable/2009
Commit: 8bd0b4ed5485c532e6ea4e6f23a207d3a2d66ade
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8bd0b4ed5485c532e6ea4e6f23a207d3a2d66ade
Author: Henning Heinold <h.heinold at tarent.de>
Date: Mon Jul 12 15:34:11 2010 +0200
xml-commons: backport from openembedded-dev
* checksums already in conf/checksums.ini
Acked-by: Koen Kooi <koen at openembedded.org>
Acked-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
---
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(+), 0 deletions(-)
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 0000000..ae94b80
--- /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 0000000..f66ae57
--- /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 0000000..382be43
--- /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 0000000..9059dba
--- /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
+}
+
More information about the Openembedded-commits
mailing list