/[gentoo-x86]/eclass/nsplugins.eclass
Gentoo

Diff of /eclass/nsplugins.eclass

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

Revision 1.5 Revision 1.6
1# Copyright 1999-2002 Gentoo Technologies, Inc. 1# Copyright 1999-2002 Gentoo Technologies, Inc.
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# Author: Martin Schlemmer <azarah@gentoo.org> 3# Author: Martin Schlemmer <azarah@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.5 2002/11/23 08:50:00 azarah Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.6 2002/12/13 20:50:33 phoenix Exp $
5# Just some re-usable functions for the netscape/moz plugins sharing 5# Just some re-usable functions for the netscape/moz plugins sharing
6 6
7ECLASS=nsplugins 7ECLASS=nsplugins
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
9 9
38} 38}
39 39
40# This function installs a plugin with dosym to PLUGINS_DIR. 40# This function installs a plugin with dosym to PLUGINS_DIR.
41# First argument should be the plugin file. 41# First argument should be the plugin file.
42inst_plugin() { 42inst_plugin() {
43 # Get the filename
44 MYFILE="`echo ${1} | gawk -F '/' '{ print $NF }'`"
45
46 # Install the plugin if none is installed
47 if [ ! -L /usr/lib/${PLUGINS_DIR}/${MYFILE} ]
48 then
43 dodir /usr/lib/${PLUGINS_DIR} 49 dodir /usr/lib/${PLUGINS_DIR}
44# $ROOT should only be used in pkg_*() functions ... 50 # $ROOT should only be used in pkg_*() functions ...
45# dosym ${1} ${ROOT}/usr/lib/${PLUGINS_DIR} 51 # dosym ${1} ${ROOT}/usr/lib/${PLUGINS_DIR}
52 echo dosym ${1} /usr/lib/${PLUGINS_DIR}
46 dosym ${1} /usr/lib/${PLUGINS_DIR} 53 dosym ${1} /usr/lib/${PLUGINS_DIR}
54 einfo "Symlinked the java plugin into the mozilla/phoenix/galeon plugin directory."
55 else
56 einfo "Not creating symlink for the java plugin, because there already is a java plugin installed."
57 fi
47} 58}
48 59

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

  ViewVC Help
Powered by ViewVC 1.1.20