diff options
Diffstat (limited to 'recipes-core/xml-commons/xom_1.1.bb')
-rw-r--r-- | recipes-core/xml-commons/xom_1.1.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-core/xml-commons/xom_1.1.bb b/recipes-core/xml-commons/xom_1.1.bb new file mode 100644 index 0000000..697e01d --- /dev/null +++ b/recipes-core/xml-commons/xom_1.1.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | DESCRIPTION = "Tree-based API for processing XML with Java" | ||
2 | LICENSE = "LGPL" | ||
3 | |||
4 | HOMEPAGE = "http://xom.nu" | ||
5 | |||
6 | SRC_URI = "\ | ||
7 | http://www.cafeconleche.org/XOM/${P}-src.tar.gz;name=archive \ | ||
8 | http://dist.codehaus.org/jaxen/distributions/jaxen-1.1.1-src.tar.gz;name=jaxen \ | ||
9 | file://04_remove_sun_import.patch \ | ||
10 | " | ||
11 | |||
12 | S = "${WORKDIR}/XOM" | ||
13 | |||
14 | inherit java-library | ||
15 | |||
16 | DEPENDS = "fastjar-native xerces-j xalan-j" | ||
17 | |||
18 | do_compile() { | ||
19 | mkdir -p build | ||
20 | |||
21 | oe_makeclasspath cp -s xercesImpl xalan2 | ||
22 | cp=build:$cp | ||
23 | |||
24 | scp="${WORKDIR}/jaxen-1.1.1/src/java/main" | ||
25 | |||
26 | javac -sourcepath src:$scp -cp $cp -d build `find src -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)` | ||
27 | javac -sourcepath fatsrc:$scp -cp $cp -d build `find fatsrc -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)` | ||
28 | javac -sourcepath src15:$scp -cp $cp -d build `find src15 -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)` | ||
29 | |||
30 | (cd src && find . -name "*.properties" -exec cp {} ../build/{} \;) | ||
31 | |||
32 | # Remove Jaxen classes from build | ||
33 | rm -rf build/org/jaxen | ||
34 | rm -rf build/org/w3c | ||
35 | |||
36 | fastjar -C build -c -f ${JARFILENAME} . | ||
37 | } | ||
38 | |||
39 | SRC_URI[archive.md5sum] = "e5ae82568d7b1faeb950140c34fbbcb1" | ||
40 | SRC_URI[archive.sha256sum] = "d648fd1f7b7437123afa63df06f6a6409a0487c99ca8f8beba75aaa474d65818" | ||
41 | SRC_URI[jaxen.md5sum] = "b598ae6b7e765a92e13667b0a80392f4" | ||
42 | SRC_URI[jaxen.sha256sum] = "f24ae604a20da87e3716bb1d441c483e56479eaef4e99888f41be06059790bca" | ||