summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-07-11 12:40:25 +0000
committerSven Wegener <swegener@gentoo.org>2005-07-11 12:40:25 +0000
commitc651d50d5540e9b9c34f0c2a2434040b3ec502c3 (patch)
tree1d01f9f8a6809f1b6563c25326116889101630a4 /eclass
parentkeyworded x86 (diff)
downloadhistorical-c651d50d5540e9b9c34f0c2a2434040b3ec502c3.tar.gz
historical-c651d50d5540e9b9c34f0c2a2434040b3ec502c3.tar.bz2
historical-c651d50d5540e9b9c34f0c2a2434040b3ec502c3.zip
QA: Use EXPORT_FUNCTIONS instead of creating our own wrapper functions.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/common-lisp.eclass18
1 files changed, 6 insertions, 12 deletions
diff --git a/eclass/common-lisp.eclass b/eclass/common-lisp.eclass
index 05f5b8e945d0..e7cebbc99ca0 100644
--- a/eclass/common-lisp.eclass
+++ b/eclass/common-lisp.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/common-lisp.eclass,v 1.11 2005/07/06 20:23:20 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/common-lisp.eclass,v 1.12 2005/07/11 12:40:25 swegener Exp $
#
# Author Matthew Kennedy <mkennedy@gentoo.org>
#
@@ -12,6 +12,8 @@ inherit common-lisp-common
CLPACKAGE=
DEPEND="dev-lisp/common-lisp-controller"
+EXPORT_FUNCTIONS pkg_postinst pkg_postrm
+
common-lisp_pkg_postinst() {
if [ -z "${CLPACKAGE}" ]; then
die "CLPACKAGE was empty or undefined upon call to pkg_prerm"
@@ -37,14 +39,6 @@ common-lisp_pkg_postrm() {
fi
}
-pkg_postinst() {
- common-lisp_pkg_postinst
-}
-
-pkg_postrm() {
- common-lisp_pkg_postrm
-}
-
#
# In pkg_preinst, we remove the FASL files for the previous version of
# the source.
@@ -61,7 +55,7 @@ pkg_preinst() {
}
common-lisp-install() {
- insinto ${CLSOURCEROOT}/$CLPACKAGE
+ insinto ${CLSOURCEROOT}/${CLPACKAGE}
doins $@
}
@@ -69,9 +63,9 @@ common-lisp-system-symlink() {
dodir ${CLSYSTEMROOT}/`dirname ${CLPACKAGE}`
if [ $# -eq 0 ]; then
dosym ${CLSOURCEROOT}/${CLPACKAGE}/${CLPACKAGE}.asd \
- ${CLSYSTEMROOT}/$CLPACKAGE.asd
+ ${CLSYSTEMROOT}/${CLPACKAGE}.asd
else
- for package in $@ ; do
+ for package in "$@" ; do
dosym ${CLSOURCEROOT}/$CLPACKAGE/${package}.asd \
${CLSYSTEMROOT}/${package}.asd
done