summaryrefslogtreecommitdiff
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
commit94484aff4a6e892a64c6c46ad6d15e3f50f1e65f (patch)
treec28e202d3727be970664814f77dfff6b26d864e2 /eclass/nsplugins.eclass
parentAdd other keywords. (diff)
downloadhistorical-94484aff4a6e892a64c6c46ad6d15e3f50f1e65f.tar.gz
historical-94484aff4a6e892a64c6c46ad6d15e3f50f1e65f.tar.bz2
historical-94484aff4a6e892a64c6c46ad6d15e3f50f1e65f.zip
Update to have install and symlink functions.
Diffstat (limited to 'eclass/nsplugins.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}"