summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-07-23 09:38:21 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-07-23 09:38:21 +0000
commit499236d10e516358b4f8f3807731e8c7c4eca04f (patch)
treecfce28ebd178baaa31de40dd903afaaad410a15b /eclass
parentAdd other keywords. (diff)
downloadgentoo-2-499236d10e516358b4f8f3807731e8c7c4eca04f.tar.gz
gentoo-2-499236d10e516358b4f8f3807731e8c7c4eca04f.tar.bz2
gentoo-2-499236d10e516358b4f8f3807731e8c7c4eca04f.zip
Update to have install and symlink functions.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/nsplugins.eclass20
1 files changed, 17 insertions, 3 deletions
diff --git a/eclass/nsplugins.eclass b/eclass/nsplugins.eclass
index d7829d873b38..7a5c4e1b9866 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.20 2005/07/23 09:17:17 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.21 2005/07/23 09:38:21 azarah Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -15,10 +15,24 @@ DESCRIPTION="Based on the ${ECLASS} eclass"
NSPLUGINS_DIR="/usr/$(get_libdir)/nsplugins"
NSBROWSERS_DIR="${NSPLUGINS_DIR}/nsbrowsers"
-# This function installs a plugin with dosym to NSPLUGINS_DIR.
-# First argument should be the plugin file.
+
+# This function installs a plugin in ${S} to NSPLUGINS_DIR.
+# First argument should be the plugin file. This is for stuff like
+# mplayerplug-in that you can move the plugin to any directory ...
install_nsplugin() {
local plugin=$1
+
+ dodir "${NSPLUGINS_DIR}"
+ exeinto "${NSPLUGINS_DIR}"
+ doexe "${plugin}"
+}
+
+# This function installs a plugin with dosym to NSPLUGINS_DIR.
+# First argument should be the plugin file. This is for stuff like
+# the java plugins that should be symlinked, and not moved from the VM
+# directory ...
+symlink_nsplugin() {
+ local plugin=$1
dodir "${NSPLUGINS_DIR}"
dosym "${plugin}" "${NSPLUGINS_DIR}"