diff options
author | Aron Griffis <agriffis@gentoo.org> | 2005-06-28 19:07:33 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2005-06-28 19:07:33 +0000 |
commit | fa309f5b24ab57eda5ba99a4d8c92fffc563ae76 (patch) | |
tree | 2a056d68c059d8d450d883cf699ee47d29ae388d /eclass | |
parent | Added patch to compile with -fPIC the library, and unset $SYMLINK_LIB which i... (diff) | |
download | historical-fa309f5b24ab57eda5ba99a4d8c92fffc563ae76.tar.gz historical-fa309f5b24ab57eda5ba99a4d8c92fffc563ae76.tar.bz2 historical-fa309f5b24ab57eda5ba99a4d8c92fffc563ae76.zip |
Add function install_mozilla_launcher_stub
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mozilla-launcher.eclass | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/eclass/mozilla-launcher.eclass b/eclass/mozilla-launcher.eclass index 6904780e83ab..c23d32d019f3 100644 --- a/eclass/mozilla-launcher.eclass +++ b/eclass/mozilla-launcher.eclass @@ -1,12 +1,13 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla-launcher.eclass,v 1.4 2005/03/21 19:15:46 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla-launcher.eclass,v 1.5 2005/06/28 19:07:33 agriffis Exp $ ECLASS=mozilla-launcher INHERITED="$INHERITED $ECLASS" -# This eclass serves a single function: Create or remove the following -# symlinks in /usr/bin: +# update_mozilla_launcher_symlinks +# -------------------------------- +# Create or remove the following symlinks in /usr/bin: # # firefox -> firefox-bin # thunderbird -> thunderbird-bin @@ -29,7 +30,7 @@ INHERITED="$INHERITED $ECLASS" # when a -bin package is installed and the corresponding from-source # package is not installed. The usual stubs are actually installed in # src_install so they are included in the package inventory. - +# update_mozilla_launcher_symlinks() { local f browsers="mozilla firefox thunderbird sunbird" cd ${ROOT}/usr/bin @@ -52,3 +53,25 @@ update_mozilla_launcher_symlinks() { fi done } + +# install_mozilla_launcher_stub name +# ---------------------------------- +# Install a stub called /usr/bin/$name that executes mozilla-launcher +# +install_mozilla_launcher_stub() { + [[ -n $1 ]] || die "install_launcher_stub requires an argument" + declare name=$1 + + dodir /usr/bin + cat <<EOF >${D}/usr/bin/${name} +#!/bin/sh +# +# Stub script to run mozilla-launcher. We used to use a symlink here +# but OOo brokenness makes it necessary to use a stub instead: +# http://bugs.gentoo.org/show_bug.cgi?id=78890 + +export MOZILLA_LAUNCHER=${name} +exec /usr/libexec/mozilla-launcher "\$@" +EOF + chmod 0755 ${D}/usr/bin/${name} +} |