summaryrefslogtreecommitdiff
blob: a27aad06d0f65b66e99d1514fc1f0e6b5d8d43b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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.eclass,v 1.4 2003/10/14 03:07:44 mkennedy Exp $
#
# Author Matthew Kennedy <mkennedy@gentoo.org>
#
# This eclass supports the common-lisp-controller installation of many
# Common Lisp libraries

inherit common-lisp-common
ECLASS=common-lisp
INHERITED="$INHERITED $ECLASS"

CLPACKAGE=
newdepend "dev-lisp/common-lisp-controller"

pkg_postinst() {
	/usr/sbin/register-common-lisp-source $CLPACKAGE
}

pkg_prerm() {
	/usr/sbin/unregister-common-lisp-source $CLPACKAGE
}

common-lisp-install() {
	insinto /usr/share/common-lisp/source/$CLPACKAGE
	doins $@
}

common-lisp-system-symlink() {
	dodir /usr/share/common-lisp/systems/`dirname $CLPACKAGE`
	if [ $# -eq 0 ]; then
		dosym /usr/share/common-lisp/source/$CLPACKAGE/$CLPACKAGE.asd \
			/usr/share/common-lisp/systems/$CLPACKAGE.asd
	else
		for p in $@ ; do
			dosym /usr/share/common-lisp/source/$CLPACKAGE/$p.asd \
				/usr/share/common-lisp/systems/$p.asd
		done
	fi
}

# Local Variables: ***
# mode: shell-script ***
# tab-width: 4 ***
# End: ***