Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: java-vm-2.eclass
Date: Fri, 29 Aug 2008 19:10:23
Message-Id: E1KZ9MS-0005AB-CI@stork.gentoo.org
1 caster 08/08/29 19:10:20
2
3 Modified: java-vm-2.eclass
4 Log:
5 Add a 'variant' parameter to install_mozilla_plugin() to allow installing multiple nsplugin variants of one JRE, bug #235869.
6
7 Revision Changes Path
8 1.23 eclass/java-vm-2.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-vm-2.eclass?rev=1.23&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-vm-2.eclass?rev=1.23&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-vm-2.eclass?r1=1.22&r2=1.23
13
14 Index: java-vm-2.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v
17 retrieving revision 1.22
18 retrieving revision 1.23
19 diff -u -r1.22 -r1.23
20 --- java-vm-2.eclass 7 Jul 2008 16:54:56 -0000 1.22
21 +++ java-vm-2.eclass 29 Aug 2008 19:10:19 -0000 1.23
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.22 2008/07/07 16:54:56 betelgeuse Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.23 2008/08/29 19:10:19 caster Exp $
27
28 # -----------------------------------------------------------------------------
29 # @eclass-begin
30 @@ -230,15 +230,20 @@
31 }
32
33 install_mozilla_plugin() {
34 - local plugin=${1}
35 + local plugin="${1}"
36 + local variant="${2}"
37
38 - if [ ! -f "${D}/${plugin}" ] ; then
39 + if [[ ! -f "${D}/${plugin}" ]]; then
40 die "Cannot find mozilla plugin at ${D}/${plugin}"
41 fi
42
43 - local plugin_dir=/usr/share/java-config-2/nsplugin
44 - dodir ${plugin_dir}
45 - dosym ${plugin} ${plugin_dir}/${VMHANDLE}-javaplugin.so
46 + if [[ -n "${variant}" ]]; then
47 + variant="-${variant}"
48 + fi
49 +
50 + local plugin_dir="/usr/share/java-config-2/nsplugin"
51 + dodir "${plugin_dir}"
52 + dosym "${plugin}" "${plugin_dir}/${VMHANDLE}${variant}-javaplugin.so"
53 }
54
55 java_mozilla_clean_() {