| 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.22 2008/07/07 16:54:56 betelgeuse Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.23 2008/08/29 19:10:19 caster 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 |
| … | |
… | |
| 228 | java_get_plugin_dir_() { |
228 | java_get_plugin_dir_() { |
| 229 | echo /usr/$(get_libdir)/nsbrowser/plugins |
229 | echo /usr/$(get_libdir)/nsbrowser/plugins |
| 230 | } |
230 | } |
| 231 | |
231 | |
| 232 | install_mozilla_plugin() { |
232 | install_mozilla_plugin() { |
| 233 | local plugin=${1} |
233 | local plugin="${1}" |
|
|
234 | local variant="${2}" |
| 234 | |
235 | |
| 235 | if [ ! -f "${D}/${plugin}" ] ; then |
236 | if [[ ! -f "${D}/${plugin}" ]]; then |
| 236 | die "Cannot find mozilla plugin at ${D}/${plugin}" |
237 | die "Cannot find mozilla plugin at ${D}/${plugin}" |
| 237 | fi |
238 | fi |
| 238 | |
239 | |
|
|
240 | if [[ -n "${variant}" ]]; then |
|
|
241 | variant="-${variant}" |
|
|
242 | fi |
|
|
243 | |
| 239 | local plugin_dir=/usr/share/java-config-2/nsplugin |
244 | local plugin_dir="/usr/share/java-config-2/nsplugin" |
| 240 | dodir ${plugin_dir} |
245 | dodir "${plugin_dir}" |
| 241 | dosym ${plugin} ${plugin_dir}/${VMHANDLE}-javaplugin.so |
246 | dosym "${plugin}" "${plugin_dir}/${VMHANDLE}${variant}-javaplugin.so" |
| 242 | } |
247 | } |
| 243 | |
248 | |
| 244 | java_mozilla_clean_() { |
249 | java_mozilla_clean_() { |
| 245 | # Because previously some ebuilds installed symlinks outside of pkg_install |
250 | # Because previously some ebuilds installed symlinks outside of pkg_install |
| 246 | # and are left behind, which forces you to manualy remove them to select the |
251 | # and are left behind, which forces you to manualy remove them to select the |