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