summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2005-03-21 19:15:46 +0000
committerAron Griffis <agriffis@gentoo.org>2005-03-21 19:15:46 +0000
commitf9d79f01897e4a2a3b5bc8d867496f45eb2fca7f (patch)
tree3e8e45968fa714ee4cdd5857c7cce6ae9be54b8d /eclass
parentDowngrading tcl for ppc. (diff)
downloadgentoo-2-f9d79f01897e4a2a3b5bc8d867496f45eb2fca7f.tar.gz
gentoo-2-f9d79f01897e4a2a3b5bc8d867496f45eb2fca7f.tar.bz2
gentoo-2-f9d79f01897e4a2a3b5bc8d867496f45eb2fca7f.zip
Add descriptive comment
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mozilla-launcher.eclass38
1 files changed, 27 insertions, 11 deletions
diff --git a/eclass/mozilla-launcher.eclass b/eclass/mozilla-launcher.eclass
index 8b0d057f4184..6904780e83ab 100644
--- a/eclass/mozilla-launcher.eclass
+++ b/eclass/mozilla-launcher.eclass
@@ -1,10 +1,35 @@
# 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.3 2004/08/20 03:15:21 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla-launcher.eclass,v 1.4 2005/03/21 19:15:46 agriffis Exp $
ECLASS=mozilla-launcher
INHERITED="$INHERITED $ECLASS"
+# This eclass serves a single function: Create or remove the following
+# symlinks in /usr/bin:
+#
+# firefox -> firefox-bin
+# thunderbird -> thunderbird-bin
+# mozilla -> mozilla-bin
+# sunbird -> sunbird-bin
+#
+# The symlinks are removed if they're found to be dangling. They are
+# created according to the following rules:
+#
+# - If there's a -bin symlink in /usr/bin, and no corresponding
+# non-bin symlink, then create one.
+#
+# - Can't do this in src_install otherwise it overwrites the one
+# for the non-bin package.
+#
+# - Link to the -bin symlink so it's easier to detect when to
+# remove the symlink.
+#
+# NOTE: This eclass does *not* manage the launcher stubs in /usr/bin except
+# 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
@@ -18,16 +43,7 @@ update_mozilla_launcher_symlinks() {
fi
done
- # Create symlinks
- #
- # - If there's a -bin symlink in /usr/bin, and no corresponding
- # non-bin symlink, then create one.
- #
- # - Can't do this in src_install otherwise it overwrites the one
- # for the non-bin package.
- #
- # - Link to the -bin symlink so it's easier to detect when to
- # remove the symlink.
+ # Create new symlinks
for f in ${browsers}; do
if [[ -L ${f}-bin && ! -e ${f} ]]; then