buglabs-oe: remove concierge from build as older OSGi apis are causing compile errors...
[leafcutter:leafcutter-oe.git] / recipes / buglabs-osgi / buglabs-osgi.inc
1 datadir_java = ${datadir}/osgi/bundle
2 inherit java
3
4 DEPENDS += "ant-native osgi-core osgi-compendium"
5
6 SRC_URI = "git://github.com/buglabs/bug-osgi.git;protocol=git;branch=${BRANCH}"
7 BRANCH = "master"
8
9 INC_PR = "r37"
10
11 S = "${WORKDIR}/git/${PN}"
12 ANT_TARGETS ?= "create_dirs build.jars"
13
14 FILES_${PN} = "${datadir_java}/${PN}.jar"
15 PACKAGE_ARCH = "all"
16 JARFILENAME = ${PN}.jar
17
18 # Must set this explicitly because it defaults to a value of 1.
19 SRCREV = ${AUTOREV}
20
21 # Default file permissions on jar.  If jar is executable that means it should be started under knapsack.
22 BUNDLE_PERM ?= "0644"
23
24 do_compile() {  
25         ant -v -Dbase.build.dir=${WORKDIR}/git/com.buglabs.osgi.build -Dcheckout.dir=${WORKDIR}/git -DexternalDirectory=${STAGING_DIR_JAVA} -DdistDirectory=${WORKDIR}/dist ${ANT_TARGETS}
26         oe_jarinstall -s ${WORKDIR}/dist/${PN}.jar
27 }
28
29 do_install() {
30         install -d ${D}/${datadir_java}
31         install -m ${BUNDLE_PERM} ${WORKDIR}/dist/${PN}.jar ${D}/${datadir_java}/${PN}.jar
32 }