buglabs-osgi: attempt to fix sprinkles recipe to doesn't use dev
[leafcutter:leafcutter-oe.git] / recipes / buglabs-osgi / sprinkles.bb
1 inherit java-library
2
3 DESCRIPTION = "Sprinkle functional elements in Java programs."
4 LICENSE = "BSD"
5
6 PR = "r8"
7 RPROVIDES += "${PN}"
8
9 SRC_URI = "git://github.com/kgilmer/Sprinkles.git;protocol=git;branch=${BRANCH}"
10 SRCREV = "ff53c6494f8a32865c36"
11 BRANCH = "master"
12
13 FILES_${PN} = "${datadir}/osgi/bundle/Sprinkles.jar"
14 PACKAGE_ARCH = "all"
15 JARFILENAME = "Sprinkles.jar"
16
17 # Default file permissions on jar.  If jar is executable that means it should be started under knapsack.
18 BUNDLE_PERM ?= "0644"
19
20 S = "${WORKDIR}/git"
21
22 do_compile() {  
23         rm -Rf src/org/sprinkles/test
24         ant 
25         oe_jarinstall -s ${S}/Sprinkles.jar
26 }
27
28 do_install() {
29         install -d ${D}/${datadir}/osgi/bundle
30         install -m ${BUNDLE_PERM} ${S}/Sprinkles.jar ${D}/${datadir}/osgi/bundle/Sprinkles.jar
31 }