aboutsummaryrefslogtreecommitdiff
path: root/recipes/concierge/service-tracker_1.0-rc3.bb
blob: 68992328453710bff685abd5cef18bf24acdb6ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
DESCRIPTION = "OSGi R3 ServiceTracker classes"
HOMEPAGE = "http://concierge.sourceforge.net"
LICENSE = "BSD"
DEPENDS = "fastjar-native concierge"

SRCREV = "220"
PV = "1.0+svnr${SRCREV}"
PR = "r0"

SRC_URI = "svn://concierge.svn.sourceforge.net/svnroot/concierge/tags/Concierge/1.0.0.RC3/;module=bundles/service_tracker;proto=http;localdir=${PN} \
        file://files/service-tracker-MANIFEST.MF \
"

S = "${WORKDIR}/bundles/service_tracker"

inherit bug-java-library

do_compile() {
  mkdir -p build
  oe_makeclasspath cp -s ${DEPENDS} ${EXTRA_CP}
  echo "JAVAC CLASSPATH ---------------"
  echo $cp | awk 'BEGIN {FS=":"} {split($0,a,":"); for (i=1; i<=NF; i++) print a[i]; }'
  echo "-------------------------"
  javac -sourcepath src/main/java -cp $cp -d build `find src/main/java -name \*.java`
  fastjar -m ${WORKDIR}/files/service-tracker-MANIFEST.MF -C build -c -f ${JARFILENAME} .
  fastjar -C src/main/java -u -f ${JARFILENAME} .
}

PACKAGE_ARCH = "all"
# override java-library's naming conventions
PACKAGES = "${PN}"

FILES_${PN} += "${datadir_java}/${PN}.jar"
FILES_${PN} += "${datadir_java}/${P}.jar"