summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2005-03-18 09:30:50 +0000
committerStefan Schweizer <genstef@gentoo.org>2005-03-18 09:30:50 +0000
commit45be0e51899ff4c2ac17f57e310a269d59fa9418 (patch)
tree51681f84da3af9cbd4df90122b2e02684bbfcbe7 /eclass/nsplugins.eclass
parentStable on x86 and ppc. (diff)
downloadhistorical-45be0e51899ff4c2ac17f57e310a269d59fa9418.tar.gz
historical-45be0e51899ff4c2ac17f57e310a269d59fa9418.tar.bz2
historical-45be0e51899ff4c2ac17f57e310a269d59fa9418.zip
Simplify the inst_plugin and enable it to change the symlink destination if necessary.
Diffstat (limited to 'eclass/nsplugins.eclass')
-rw-r--r--eclass/nsplugins.eclass20
1 files changed, 3 insertions, 17 deletions
diff --git a/eclass/nsplugins.eclass b/eclass/nsplugins.eclass
index fd30322d7e31..ae80e454ee1a 100644
--- a/eclass/nsplugins.eclass
+++ b/eclass/nsplugins.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.15 2004/10/25 02:29:18 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.16 2005/03/18 09:30:50 genstef Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -45,20 +45,6 @@ pkg_mv_plugins() {
# This function installs a plugin with dosym to PLUGINS_DIR.
# First argument should be the plugin file.
inst_plugin() {
- # Get the filename
- MYFILE="`echo ${1} | gawk -F '/' '{ print $NF }'`"
-
- # Install the plugin if none is installed
- if [ ! -L "/usr/$(get_libdir)/${PLUGINS_DIR}/${MYFILE}" ]
- then
- dodir /usr/$(get_libdir)/${PLUGINS_DIR}
- # $ROOT should only be used in pkg_*() functions ...
- # dosym ${1} ${ROOT}/usr/$(get_libdir)/${PLUGINS_DIR}
- echo dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}
- dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}
- einfo "Symlinked the plugin into the mozilla/firebird/galeon plugin directory"
- else
- einfo "Not creating symlink for the plugin, because one already exists"
- fi
+ dodir /usr/$(get_libdir)/${PLUGINS_DIR}
+ dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}
}
-