summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lisp/common-lisp-controller/common-lisp-controller-3.82.ebuild')
-rw-r--r--dev-lisp/common-lisp-controller/common-lisp-controller-3.82.ebuild109
1 files changed, 109 insertions, 0 deletions
diff --git a/dev-lisp/common-lisp-controller/common-lisp-controller-3.82.ebuild b/dev-lisp/common-lisp-controller/common-lisp-controller-3.82.ebuild
new file mode 100644
index 000000000000..6da486a436aa
--- /dev/null
+++ b/dev-lisp/common-lisp-controller/common-lisp-controller-3.82.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# 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.82.ebuild,v 1.1 2004/01/28 09:52:32 mkennedy Exp $
+
+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 ~ppc ~mips"
+
+DEPEND="dev-lisp/cl-defsystem3
+ dev-lisp/cl-asdf
+ app-admin/realpath
+ virtual/logger"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}/${PN}-gentoo.patch
+}
+
+src_install() {
+ dobin clc-autobuild* clc-register-user-package clc-unregister-user-package
+
+ dobin ${FILESDIR}/${PV}/clc-send-command
+
+ dosbin register-common-lisp-source unregister-common-lisp-source
+
+ 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
+ # autobuild by default
+ touch ${D}/etc/common-lisp/autobuild
+
+ for i in \
+ clc-autobuild-check \
+ clc-autobuild-only \
+ clc-autobuild-impl \
+ clc-autobuild-library \
+ clc-unregister-user-package \
+ clc-register-user-package
+ do doman man/$i.1
+ done
+
+ einfo ">>> Creating /etc/lisp-config.lisp"
+ dodir /etc
+ cat >${D}/etc/lisp-config.lisp <<EOF
+
+(in-package :common-lisp-user)
+
+#+(or cmu scl)
+(setf system:*short-site-name* "Unknown"
+ system:*long-site-name* "Unknown")
+
+#+sbcl
+(setf sb-sys:*short-site-name* "Unknown"
+ sb-sys:*long-site-name* "Unknown")
+
+EOF
+ dodoc ${FILESDIR}/README.Gentoo
+ keepdir /usr/lib/common-lisp /usr/lib/common-lisp/bin
+}
+
+pkg_postinst() {
+ userdel cl-builder &>/dev/null || true
+ groupdel cl-builder &>/dev/null || true
+ enewgroup cl-builder
+ enewuser cl-builder -1 /bin/sh /usr/lib/common-lisp cl-builder
+ chown root:root /usr/lib/common-lisp
+ for compiler in /usr/lib/common-lisp/bin/*.sh
+ do
+ if [ -f "${compiler}" -a -r "${compiler}" -a -x "${compiler}" ] ; then
+ i=${compiler##*/}
+ i=${i%.sh}
+ einfo ">>> Recompiling Common Lisp Controller for $i"
+ bash "$compiler" install-clc || true
+ einfo ">>> Done rebuilding"
+ chown -R cl-builder:cl-builder /usr/lib/common-lisp/${i} &>/dev/null || true
+ fi
+ done
+ echo
+ while read line; do einfo "${line}"; done <${FILESDIR}/README.Gentoo
+}
+
+# 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
+# }