/[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.2 Revision 1.6
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.2 2006/06/25 16:28:09 nichoj Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.6 2006/08/01 12:23:57 nichoj Exp $
4# 4#
5# Author: Karl Trygve Kalleberg <karltk@gentoo.org> 5# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
6 6
7inherit eutils 7inherit eutils
8 8
9DEPEND=" 9DEPEND="
10 =dev-java/java-config-2.0* 10 =dev-java/java-config-2.0*
11 =dev-java/java-config-1.3*" 11 =dev-java/java-config-1.3*
12 >=sys-apps/portage-2.1"
12RDEPEND=" 13RDEPEND="
13 =dev-java/java-config-2.0* 14 =dev-java/java-config-2.0*
14 =dev-java/java-config-1.3*" 15 =dev-java/java-config-1.3*
16 >=sys-apps/bash-3"
15 17
16export WANT_JAVA_CONFIG=2 18export WANT_JAVA_CONFIG=2
17 19
18if [[ "${SLOT}" != "0" ]]; then 20if [[ "${SLOT}" != "0" ]]; then
19 VMHANDLE=${PN}-${SLOT} 21 VMHANDLE=${PN}-${SLOT}
42 elif [[ ${systemvm1} =~ "^${VMHANDLE}" ]]; then 44 elif [[ ${systemvm1} =~ "^${VMHANDLE}" ]]; then
43 einfo "Upgrading generation-1 system-vm... updating its env file" 45 einfo "Upgrading generation-1 system-vm... updating its env file"
44 java-config-1 --set-system-vm=${P} 46 java-config-1 --set-system-vm=${P}
45 fi 47 fi
46 # else... some other VM is being updated, so we don't have to worry 48 # else... some other VM is being updated, so we don't have to worry
49 fi
50
51 if has nsplugin ${IUSE} && use nsplugin; then
52 if [[ ! -f /usr/lib/nsbrowser/plugins/javaplugin.so ]]; then
53 eselect java-nsplugin set ${VMHANDLE}
54 fi
47 fi 55 fi
48 56
49 java_mozilla_clean_ 57 java_mozilla_clean_
50} 58}
51 59
127 135
128 if [ ! -f "${D}/${plugin}" ] ; then 136 if [ ! -f "${D}/${plugin}" ] ; then
129 die "Cannot find mozilla plugin at ${D}/${plugin}" 137 die "Cannot find mozilla plugin at ${D}/${plugin}"
130 fi 138 fi
131 139
132 local plugin_dir=$(java_get_plugin_dir_) 140 local plugin_dir=/usr/share/java-config-2/nsplugin
133 dodir ${plugin_dir} 141 dodir ${plugin_dir}
134 dosym ${plugin} ${plugin_dir}/javaplugin.so 142 dosym ${plugin} ${plugin_dir}/${VMHANDLE}-javaplugin.so
135} 143}
136 144
137java_mozilla_clean_() { 145java_mozilla_clean_() {
138 # Because previously some ebuilds installed symlinks outside of pkg_install 146 # Because previously some ebuilds installed symlinks outside of pkg_install
139 # and are left behind, which forces you to manualy remove them to select the 147 # and are left behind, which forces you to manualy remove them to select the

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20