weekly-changelog-report.py: add staging-branch
[openembedded.git] / recipes / xml-commons / jaxme_0.5.2.bb
blobc5bf4fbe9d16acf0aae76c297d46f2d8fee9260c
1 DESCRIPTION = "Implementation of the JAXB API"
2 LICENSE = "AL2.0"
4 AUTHOR = "Apache Software Foundation"
5 HOMEPAGE = "http://ws.apache.org/jaxme"
7 SRC_URI = "\
8 http://apache.org/dist/ws/jaxme/source/ws-${P}-src.tar.gz \
9 http://ftp.hosting-studio.de/pub/linux/apache/ant/source/apache-ant-1.7.1-src.tar.bz2 \
12 S = "${WORKDIR}/ws-${P}"
14 inherit java-library
16 DEPENDS = "fastjar-native log4j1.2 xerces-j xalan-j commons-codec hsqldb antlr antlr-native"
18 do_compile() {
19 oe_makeclasspath cp -s log4j-1.2 xercesImpl xalan2 commons-codec hsqldb antlr
20 cp=build-api:build-jaxme:build-js:build-xs:build-pm:$cp
23 jaxme_build src/api build-api $cp jaxmeapi-${PV}.jar
25 runantlr -o src/js/org/apache/ws/jaxme/js/jparser src/js/org/apache/ws/jaxme/js/jparser/java15.g
26 jaxme_build src/js build-js $cp jaxmejs-${PV}.jar
28 jaxme_build src/xs build-xs $cp jaxmexs-${PV}.jar
30 jaxme_build src/jaxme build-jaxme $cp ${JARFILENAME}
32 # jaxme_build src/pm build-pm $cp jaxmepm-${PV}.jar
35 do_install_append() {
36 oe_jarinstall jaxmeapi-${PV}.jar jaxmeapi.jar
37 oe_jarinstall jaxmejs-${PV}.jar jaxmejs.jar
38 oe_jarinstall jaxmexs-${PV}.jar jaxmexs.jar
39 oe_jarinstall jaxmepm-${PV}.jar jaxmepm.jar
42 do_stage_append() {
43 oe_jarinstall -s jaxmeapi-${PV}.jar jaxmeapi.jar
44 oe_jarinstall -s jaxmejs-${PV}.jar jaxmejs.jar
45 oe_jarinstall -s jaxmexs-${PV}.jar jaxmexs.jar
46 oe_jarinstall -s jaxmepm-${PV}.jar jaxmepm.jar
49 # Compile helper
50 # 1 - source dir
51 # 2 - dest dir
52 # 3 - classpath
53 # 4 - jar file name
54 jaxme_build() {
55 mkdir -p $2
57 ant_sourcepath=${WORKDIR}/apache-ant-1.7.1/src/main
59 echo "javac -sourcepath $ant_sourcepath:$1 -cp $3 -d $2 \`find $1 -name "*.java"\`"
60 javac -sourcepath $ant_sourcepath:$1 -cp $3 -d $2 `find $1 -name "*.java" -and -not \( -wholename "*junit*" -or -wholename "*examples*" \) `
61 (cd $1 && find . -name "*.properties" -exec cp {} ${S}/$2/{} \;)
63 rm -rf $2/org/apache/tools
65 fastjar -C $2 -c -f $4 .