jaxp1.3 1.3.04: New recipe (from Jalimo SVN).
authorRobert Schuster <robertschuster@fsfe.org>
Fri, 18 Sep 2009 11:50:02 +0000 (13:50 +0200)
committerRobert Schuster <robertschuster@fsfe.org>
Fri, 18 Sep 2009 11:50:02 +0000 (13:50 +0200)
jaxp1.3-native 1.3.04: Dito.
xml-commons-resolver1.1 1.2: Dito.
xml-commons-resolver1.1-native 1.2: Dito.

recipes/xml-commons/jaxp1.3-native_1.3.04.bb [new file with mode: 0644]
recipes/xml-commons/jaxp1.3_1.3.04.bb [new file with mode: 0644]
recipes/xml-commons/xml-commons-resolver1.1-native_1.2.bb [new file with mode: 0644]
recipes/xml-commons/xml-commons-resolver1.1_1.2.bb [new file with mode: 0644]

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 (file)
index 0000000..ae94b80
--- /dev/null
@@ -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 (file)
index 0000000..f66ae57
--- /dev/null
@@ -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 (file)
index 0000000..382be43
--- /dev/null
@@ -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 (file)
index 0000000..9059dba
--- /dev/null
@@ -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
+}
+