blob: 1b6ddb61b5f4822f17717a0d1d7e5be10eda88de (
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
35
36
37
38
39
|
DESCRIPTION = "A highly-portable Java virtual machine implementing the Java virtual machine specification, second edition."
HOMEPAGE = "http://sablevm.org"
PRIORITY = "optional"
MAINTAINER = "Rene Wagner <reenoo@gmx.de>"
DEPENDS = "libffi libtool popt \
sablevm-classpath"
# unzip"
RDEPENDS = "sablevm-classpath"
PR = "r3"
SRC_URI = "${SOURCEFORGE_MIRROR}/sablevm/sablevm-${PV}.tar.gz \
${DEBIAN_MIRROR}/main/s/sablevm/sablevm_${PV}-6.diff.gz;patch=1"
inherit autotools update-alternatives
PROVIDES = "virtual/java"
ALTERNATIVE_NAME = "java"
ALTERNATIVE_PATH = "${bindir}/java-sablevm"
ALTERNATIVE_PRIORITY = "350"
PACKAGES = "${PN} ${PN}-doc lib${PN} lib${PN}-dev"
FILES_${PN} = "${bindir} \
${libdir}/${PN}/bin"
FILES_lib${PN} = "${libdir}/lib${PN}-${PV}.so"
FILES_lib${PN}-dev = "${includedir}/jni* \
${libdir}/lib${PN}.so \
${libdir}/lib${PN}.la"
do_install_append() {
install -d ${D}/${datadir}/doc
mv ${D}/${datadir}/${PN} ${D}/${datadir}/doc/
# symlink only present in the deb...
install -d ${D}/${libdir}/${PN}/bin
cd ${D}/${libdir}/${PN}/bin && ln -sf ../../../bin/java-sablevm java
}
|