summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2004-03-21 07:08:03 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2004-03-21 07:08:03 +0000
commit7c8db873b487d19239df16dcc05256732719cf1d (patch)
tree281cd1c8949fe99e661b8ff9fe270c2a623f7412 /eclass
parentversion bump (Manifest recommit) (diff)
downloadgentoo-2-7c8db873b487d19239df16dcc05256732719cf1d.tar.gz
gentoo-2-7c8db873b487d19239df16dcc05256732719cf1d.tar.bz2
gentoo-2-7c8db873b487d19239df16dcc05256732719cf1d.zip
dont hack for clisp
Diffstat (limited to 'eclass')
-rw-r--r--eclass/common-lisp-common.eclass22
1 files changed, 18 insertions, 4 deletions
diff --git a/eclass/common-lisp-common.eclass b/eclass/common-lisp-common.eclass
index 0d6a3a0be199..bbea1e6b5261 100644
--- a/eclass/common-lisp-common.eclass
+++ b/eclass/common-lisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/common-lisp-common.eclass,v 1.4 2004/02/27 03:38:25 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/common-lisp-common.eclass,v 1.5 2004/03/21 07:08:03 mkennedy Exp $
#
# Author Matthew Kennedy <mkennedy@gentoo.org>
#
@@ -164,11 +164,24 @@ impl-remove-timestamp-hack() {
rm -rf /usr/lib/${impl} &>/dev/null || true
}
+test-in() {
+ local symbol=$1
+ shift
+ for i in $@; do
+ if [ $i == ${symbol} ]; then
+ return 0 # true
+ fi
+ done
+ false
+}
+
standard-impl-postinst() {
local impl=$1
rm -rf /usr/lib/common-lisp/${impl}/* &>/dev/null || true
chown cl-builder:cl-builder /usr/lib/common-lisp/${impl}
- impl-restore-timestamp-hack ${impl}
+ if test-in ${impl} cmucl sbcl; then
+ impl-restore-timestamp-hack ${impl}
+ fi
chown -R root:root /usr/lib/${impl}
/usr/bin/clc-autobuild-impl ${impl} yes
register-common-lisp-implementation ${impl}
@@ -179,12 +192,13 @@ standard-impl-postrm() {
# Since we keep our own time stamps we must manually remove them
# here.
if [ ! -x ${impl_binary} ]; then
- impl-remove-timestamp-hack ${impl}
+ if test-in ${impl} cmucl sbcl; then
+ impl-remove-timestamp-hack ${impl}
+ fi
rm -rf /usr/lib/common-lisp/${impl}/*
fi
}
-
# Local Variables: ***
# mode: shell-script ***
# tab-width: 4 ***