# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/common-lisp-controller/common-lisp-controller-3.76.ebuild,v 1.8 2005/02/13 03:41:19 mkennedy Exp $ inherit eutils DESCRIPTION="Common Lisp Controller" HOMEPAGE="http://packages.debian.org/unstable/devel/common-lisp-controller.html" SRC_URI="http://ftp.debian.org/debian/pool/main/c/common-lisp-controller/${PN}_${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~sparc" IUSE="" DEPEND="dev-lisp/cl-defsystem3 dev-lisp/cl-asdf mail-client/mailx app-admin/realpath virtual/logger virtual/inetd" S=${WORKDIR}/${PN} src_compile() { make || die } src_install() { dobin clc-autobuild* \ clc-register-user-package \ clc-send-command \ clc-unregister-user-package dosbin clc-build-daemon \ clc-reregister-all-impl \ register-common-lisp-source \ register-common-lisp-implementation \ unregister-common-lisp-source \ unregister-common-lisp-implementation exeinto /usr/lib/common-lisp-controller doexe debug-daemon-problems.sh dodir /usr/share/common-lisp/source/common-lisp-controller insinto /usr/share/common-lisp/source/common-lisp-controller doins common-lisp-controller.lisp \ post-sysdef-install.lisp \ pre-sysdef-install.lisp dodir /usr/lib/common-lisp dodir /usr/lib/common-lisp/bin dodir /etc/common-lisp touch ${D}/etc/common-lisp/autobuild # autobuild by default dodoc *.txt README.* doman man/*.1 man/*.8 man/old/*.1 man/old/*.8 einfo ">>> Creating /etc/lisp-config.lisp" dodir /etc cat >${D}/etc/lisp-config.lisp <>> Reinstalling for $i" einfo ">>> Recompiling Common Lisp Controller for $i" bash "$compiler" install-clc || true echo Done rebuilding einfo ">>> Setting permissions for cl-builder in /usr/lib/common-lisp/${i}" chown -R cl-builder:cl-builder /usr/lib/common-lisp/${i} >/dev/null || true fi done } # pkg_prerm() { # for compiler in /usr/lib/common-lisp/bin/*.sh # do # if [ -f "$compiler" -a -r "$compiler}" ] ; then # i=${compiler##*/} # i=${i%.sh} # echo Deinstalling for ${i##*/} # echo Removing Common Lisp Controller for $i # if [ -x "$compiler"] ; then # bash "$compiler" remove-clc || true # fi # echo Done rebuilding # fi # done # }