summaryrefslogtreecommitdiff
path: root/recipes/xml-commons/xpp3_1.1.3.4.O.bb
diff options
context:
space:
mode:
authorRobert Schuster <robertschuster@fsfe.org>2009-09-18 16:04:01 +0200
committerRobert Schuster <robertschuster@fsfe.org>2009-09-18 16:04:01 +0200
commit2e7c334a4f6b0882ee90c8be91f81d24e4d82496 (patch)
tree11c29c8c61eb8679015869fea7aab5e51cd8eec7 /recipes/xml-commons/xpp3_1.1.3.4.O.bb
parent04800cfdf823ea3003eb1164c4d5dfd7e1db5679 (diff)
dom4j 1.6.1: New recipe (for Jalimo SVN).
dom4j-native 1.6.1: Dito. jaxen 1.1.1: Dito. xom 1.1: Dito. xpp2 2.1.10: Dito. xpp3 1.1.3.4.0: Dito.
Diffstat (limited to 'recipes/xml-commons/xpp3_1.1.3.4.O.bb')
-rw-r--r--recipes/xml-commons/xpp3_1.1.3.4.O.bb50
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes/xml-commons/xpp3_1.1.3.4.O.bb b/recipes/xml-commons/xpp3_1.1.3.4.O.bb
new file mode 100644
index 0000000000..ff8b13d076
--- /dev/null
+++ b/recipes/xml-commons/xpp3_1.1.3.4.O.bb
@@ -0,0 +1,50 @@
+DESCRIPTION = "Streaming pull XML parser for Java (3rd edition)"
+LICENSE = "BSD-like"
+
+HOMEPAGE = "http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1"
+
+SRC_URI = "http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/${P}_src.tgz"
+
+inherit java-library
+
+DEPENDS = "fastjar-native virtual/javac-native"
+
+PACKAGES = "libxpp3-xpath-java ${JPN}"
+
+do_compile() {
+ if [ -d build-oe ]; then
+ rm -rf build-oe
+ fi
+ mkdir -p build-oe
+
+ sourcepath="src/java/api:src/java/builder:src/java/dom2_builder:src/java/mxp1_min:src/java/mxp1_standard:src/java/parser_pool:src/java/sax2_driver:src/java/serializer_impl:src/java/util:src/java/wrapper"
+ findpath="${sourcepath//:/ }"
+
+ javac -sourcepath $sourcepath -d build-oe `find $findpath -name "*.java"`
+
+ mkdir -p build-oe/META-INF/services
+ cp src/java/mxp1_standard/META-INF/services/org.xml* build-oe/META-INF/services
+ fastjar -C build-oe -c -f ${JARFILENAME} .
+
+ if [ -d build-xpath ]; then
+ rm -rf build-xpath
+ fi
+ mkdir -p build-xpath
+
+ sourcepath="src/java/xpath"
+ findpath="${sourcepath//:/ }"
+ javac -sourcepath $sourcepath -cp build-oe -d build-xpath `find $findpath -name "*.java"`
+
+ fastjar -C build-xpath -c -f xpp3-xpath-${PV}.jar .
+}
+
+do_install_append() {
+ oe_jarinstall xpp3-xpath-${PV}.jar xpp3-xpath.jar
+}
+
+do_stage_append() {
+ oe_jarinstall -s xpp3-xpath-${PV}.jar xpp3-xpath.jar
+}
+
+FILES_libxpp3-xpath-java = "${datadir}/java/xpp3-xpath*"
+