diff options
author | Rene Wagner <rw@handhelds.org> | 2004-08-11 19:23:27 +0000 |
---|---|---|
committer | Rene Wagner <rw@handhelds.org> | 2004-08-11 19:23:27 +0000 |
commit | d661b6189c28dbd0e3d8e3008767d4c32bd57504 (patch) | |
tree | 1fcf9f912f6df8b09a128ee4cc28a7a3e36d38bb /sablevm/sablevm_1.1.6.oe | |
parent | 647b61088356113cfe2b52701d073679354ddaf7 (diff) |
sablevm: invoke update-alternatives in postinst/postrm
BKrev: 411a722fQEfOqglRbF3F0_gMwKqcTQ
Diffstat (limited to 'sablevm/sablevm_1.1.6.oe')
-rw-r--r-- | sablevm/sablevm_1.1.6.oe | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sablevm/sablevm_1.1.6.oe b/sablevm/sablevm_1.1.6.oe index e69de29bb2..a3954c28d4 100644 --- a/sablevm/sablevm_1.1.6.oe +++ b/sablevm/sablevm_1.1.6.oe @@ -0,0 +1,37 @@ +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" +PR = "r1" + +SRC_URI = "${SOURCEFORGE_MIRROR}/sablevm/sablevm-${PV}.tar.gz" + +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 +} |