/[gentoo-x86]/eclass/java-vm-2.eclass
Gentoo

Diff of /eclass/java-vm-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.16 2006/11/11 00:13:22 betelgeuse Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.17 2007/05/07 15:51:29 betelgeuse Exp $
4 4
5# ----------------------------------------------------------------------------- 5# -----------------------------------------------------------------------------
6# @eclass-begin 6# @eclass-begin
7# @eclass-shortdesc Java Virtual Machine eclass 7# @eclass-shortdesc Java Virtual Machine eclass
8# @eclass-maintainer java@gentoo.org 8# @eclass-maintainer java@gentoo.org
21 =dev-java/java-config-2.0* 21 =dev-java/java-config-2.0*
22 =dev-java/java-config-1.3*" 22 =dev-java/java-config-1.3*"
23 23
24export WANT_JAVA_CONFIG=2 24export WANT_JAVA_CONFIG=2
25 25
26if [[ "${SLOT}" != "0" ]]; then
27 VMHANDLE=${PN}-${SLOT}
28else
29 VMHANDLE=${PN}
30fi
31
32JAVA_VM_CONFIG_DIR="/usr/share/java-config-2/vm" 26JAVA_VM_CONFIG_DIR="/usr/share/java-config-2/vm"
33JAVA_VM_DIR="/usr/lib/jvm" 27JAVA_VM_DIR="/usr/lib/jvm"
34 28
35EXPORT_FUNCTIONS pkg_postinst pkg_prerm pkg_postrm 29EXPORT_FUNCTIONS pkg_setup pkg_postinst pkg_prerm pkg_postrm
30
31java-vm-2_pkg_setup() {
32 if [[ "${SLOT}" != "0" ]]; then
33 VMHANDLE=${PN}-${SLOT}
34 else
35 VMHANDLE=${PN}
36 fi
37}
36 38
37java-vm-2_pkg_postinst() { 39java-vm-2_pkg_postinst() {
38 # Set the generation-2 system VM, if it isn't set 40 # Set the generation-2 system VM, if it isn't set
39 if [[ -z "$(java-config-2 -f)" ]]; then 41 if [[ -z "$(java-config-2 -f)" ]]; then
40 java_set_default_vm_ 42 java_set_default_vm_

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20