summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2004-01-28 09:52:32 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2004-01-28 09:52:32 +0000
commitf132b7604e575cfff3ac6eeff89da0cae6005396 (patch)
tree13e1118b394131b16ee706cc9ca2dc0c6e1622a1 /dev-lisp/common-lisp-controller
parentBlocks app-i18n/uim (diff)
downloadhistorical-f132b7604e575cfff3ac6eeff89da0cae6005396.tar.gz
historical-f132b7604e575cfff3ac6eeff89da0cae6005396.tar.bz2
historical-f132b7604e575cfff3ac6eeff89da0cae6005396.zip
*** empty log message ***
Diffstat (limited to 'dev-lisp/common-lisp-controller')
-rw-r--r--dev-lisp/common-lisp-controller/ChangeLog10
-rw-r--r--dev-lisp/common-lisp-controller/Manifest5
-rw-r--r--dev-lisp/common-lisp-controller/common-lisp-controller-3.82.ebuild109
-rw-r--r--dev-lisp/common-lisp-controller/files/3.82/clc-send-command146
-rw-r--r--dev-lisp/common-lisp-controller/files/3.82/common-lisp-controller-gentoo.patch121
-rw-r--r--dev-lisp/common-lisp-controller/files/digest-common-lisp-controller-3.821
6 files changed, 390 insertions, 2 deletions
diff --git a/dev-lisp/common-lisp-controller/ChangeLog b/dev-lisp/common-lisp-controller/ChangeLog
index fea66a3e75c9..58bb0f7d2ea0 100644
--- a/dev-lisp/common-lisp-controller/ChangeLog
+++ b/dev-lisp/common-lisp-controller/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lisp/common-lisp-controller
-# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/common-lisp-controller/ChangeLog,v 1.9 2003/12/21 19:58:17 mkennedy Exp $
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/common-lisp-controller/ChangeLog,v 1.10 2004/01/28 09:52:32 mkennedy Exp $
+
+*common-lisp-controller-3.82 (28 Jan 2004)
+
+ 28 Jan 2004; <mkennedy@gentoo.org> common-lisp-controller-3.82.ebuild,
+ files/3.82/clc-send-command, files/3.82/common-lisp-controller-gentoo.patch:
+ Refactorying; New upstream.
*common-lisp-controller-3.76-r2 (21 Dec 2003)
diff --git a/dev-lisp/common-lisp-controller/Manifest b/dev-lisp/common-lisp-controller/Manifest
index 84a6eea33887..54961c07f6d0 100644
--- a/dev-lisp/common-lisp-controller/Manifest
+++ b/dev-lisp/common-lisp-controller/Manifest
@@ -3,7 +3,9 @@ MD5 db138ccd13431e8fff8e91a5e479b217 common-lisp-controller-3.64.ebuild 3595
MD5 9b65b0341efc8f4b29498aad23315229 metadata.xml 164
MD5 79afd738b20398ab8098fe9b00f8f3e3 common-lisp-controller-3.76.ebuild 2846
MD5 8729c2c63b353fd7594b42c522cb8cdf common-lisp-controller-3.76-r1.ebuild 3162
+MD5 8f3fb0c8c506d5421d1fee20877be07b common-lisp-controller-3.82.ebuild 3051
MD5 97223d03603dd433ae09ad5b9550aef3 common-lisp-controller-3.76-r2.ebuild 3159
+MD5 97223d03603dd433ae09ad5b9550aef3 common-lisp-controller-3.82.ebuild~ 3159
MD5 531ca5d802bb5b70c234532655bbfa91 files/digest-common-lisp-controller-3.64 80
MD5 e5d6d4f73e65082fae7961087dc7f681 files/digest-common-lisp-controller-3.76 80
MD5 68d7b210f93fc095db4ec27504b86784 files/clc-build-daemon 657
@@ -14,3 +16,6 @@ MD5 fd599fefe360bfff34b78fb6dbf69344 files/clc-gentoo-3.76.patch.gz 8398
MD5 e5d6d4f73e65082fae7961087dc7f681 files/digest-common-lisp-controller-3.76-r1 80
MD5 a28b04411f6963aa9b5ea21b77a67600 files/3.76-coreutils-gentoo.patch 1345
MD5 e5d6d4f73e65082fae7961087dc7f681 files/digest-common-lisp-controller-3.76-r2 80
+MD5 8cb955332f856e53d06a40ca2803a2e8 files/digest-common-lisp-controller-3.82 80
+MD5 921243e5d85f2160df66d30768b7fb6a files/3.82/clc-send-command 3932
+MD5 f8cf0241d3e21471ae74b72b572d7975 files/3.82/common-lisp-controller-gentoo.patch 6783
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
+# }
diff --git a/dev-lisp/common-lisp-controller/files/3.82/clc-send-command b/dev-lisp/common-lisp-controller/files/3.82/clc-send-command
new file mode 100644
index 000000000000..0b2c5818385c
--- /dev/null
+++ b/dev-lisp/common-lisp-controller/files/3.82/clc-send-command
@@ -0,0 +1,146 @@
+#!/bin/bash
+
+# {{{ Copyright
+
+# A shell version of the clc-send-command program.
+# Copyright (C) 2003 The Free Software Foundation
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+
+# Authors: Matthew Kennedy <mkennedy@gentoo.org>
+
+# }}}
+# {{{ Commentary...
+
+# Traditionally, the controller consisted of two programs:
+# clc-send-command and clc-build-daemon, The former invokes the later
+# via an Internet super-server such as inetd and xinetd.
+#
+# Why the contoller requires a Internet super-sever is beyond my
+# comprehension, hence this program.
+#
+# This program works exactly like the original clc-send-command
+# program, however it bypasses clc-build-daemon to call the controller
+# implementation scripts (/usr/lib/common-lisp/bin/*.sh) directly.
+
+# }}}
+# {{{ Utility functions
+
+function error {
+ echo "Error: $1"
+ exit 255
+}
+
+function warning {
+ echo "Warning: $1"
+ exit 0
+}
+
+function is_valid_impl {
+ local impl=$1
+ for i in /usr/lib/common-lisp/bin/*.sh; do
+ i=$(basename ${i} .sh)
+ if [ "x${i}" == "x${impl}" ]; then
+ return 0
+ fi
+ done
+ return 1
+}
+
+function is_valid_package {
+ local impl=$1 package=$2
+ test -d /usr/lib/common-lisp/${impl}/${package}
+}
+
+function su-maybe {
+ if [ "x`whoami`" == "xroot" ]; then
+ su - cl-builder -c "$@"
+ else
+ $@
+ fi
+}
+
+function remove_package {
+ local impl=$1 package=$2
+# su - cl-builder -c "/usr/lib/common-lisp/bin/${impl}.sh remove ${package}"
+ su-maybe "/usr/lib/common-lisp/bin/${impl}.sh remove ${package}"
+}
+
+function recompile_package {
+ local impl=$1 package=$2
+ su - cl-builder -c "/usr/lib/common-lisp/bin/${impl}.sh rebuild ${package}"
+}
+
+# }}}
+
+declare -a ARGS
+
+i=0; while [ ! -z "$1" ]; do
+ # collect the arguments we're interested in, discard all else
+ case $1 in
+ -d | --debug | -q | --quiet | -v | --verbose)
+ # ignore these for now
+ ;;
+ -? | --help | --usage)
+ cat <<EOF
+clc-send-command [OPTION...] recompile <package> <implementation>
+clc-send-command [OPTION...] remove <package> <implementation>
+EOF
+ exit 1
+ ;;
+ --verbose | -V)
+ # mimic the original clc-send-command program's output
+ echo 'version 1.0 for clc v3'
+ exit 1
+ ;;
+ *)
+ ARGS[$i]=$1 i=$[$i + 1]
+ ;;
+ esac
+ shift
+done
+
+if [ ${#ARGS[*]} -ne 3 ]; then
+ error 'Invalid number of arguments.'
+fi
+
+command=${ARGS[0]} package=${ARGS[1]} impl=${ARGS[2]}
+
+is_valid_impl ${impl} \
+ || error "Invalid implementaion: ${impl}"
+
+case ${command} in
+ remove)
+ is_valid_package ${impl} ${package} \
+ || warning "Package ${package} for implementation ${impl} does not exist or has not been compiled yet."
+ remove_package ${impl} ${package} \
+ || error "Cannot remove package: ${package} for implementation: ${impl}"
+ ;;
+ recompile)
+ recompile_package ${impl} ${package} \
+ || error "Cannot recompile package: ${package} for implementation: ${impl}"
+ ;;
+ *)
+ error "Unrecognized command: ${command}"
+ ;;
+esac
+
+exit 0
+
+# Local Variables: ***
+# mode: shell-script ***
+# indent-tabs-mode: nil ***
+# End: ***
diff --git a/dev-lisp/common-lisp-controller/files/3.82/common-lisp-controller-gentoo.patch b/dev-lisp/common-lisp-controller/files/3.82/common-lisp-controller-gentoo.patch
new file mode 100644
index 000000000000..752f1dd54e5c
--- /dev/null
+++ b/dev-lisp/common-lisp-controller/files/3.82/common-lisp-controller-gentoo.patch
@@ -0,0 +1,121 @@
+Index: clc-autobuild-check
+===================================================================
+RCS file: /home/mkennedy/cvsroot/common-lisp-controller/clc-autobuild-check,v
+retrieving revision 1.1.1.1
+diff -u -r1.1.1.1 clc-autobuild-check
+--- clc-autobuild-check 14 Jan 2004 17:41:13 -0000 1.1.1.1
++++ clc-autobuild-check 14 Jan 2004 19:11:24 -0000
+@@ -31,7 +31,7 @@
+ return
+ fi
+ if [ -r $file ]; then
+- first_line="$(cat $file | head -1)"
++ first_line="$(cat $file | head -n 1)"
+ if [ "$first_line" ]; then
+ first_line="$(echo "$first_line" | tr "[A-Z]" "[a-z]")"
+ if [ "$(expr "$first_line" : ".*\(yes\).*")" ]; then
+Index: post-sysdef-install.lisp
+===================================================================
+RCS file: /home/mkennedy/cvsroot/common-lisp-controller/post-sysdef-install.lisp,v
+retrieving revision 1.1.1.1
+diff -u -r1.1.1.1 post-sysdef-install.lisp
+--- post-sysdef-install.lisp 14 Jan 2004 17:41:13 -0000 1.1.1.1
++++ post-sysdef-install.lisp 14 Jan 2004 19:07:37 -0000
+@@ -146,75 +146,22 @@
+
+ (defun require-defsystem3 (module-name)
+ ;; if in the clc root:
+- (let ((system (mk:find-system module-name
+- :load-or-nil)))
+- (or
+- ;; try to load it
+- (progn
+- (mk:oos module-name
+- :load
+- :load-source-instead-of-binary nil
+- :load-source-if-no-binary nil
+- :bother-user-if-no-binary nil
+- :compile-during-load nil)
+- ;; did we load it?
+- (find module-name mk::*modules* :test #'string=))
+- (progn
+- (format t "~&;;;Please wait, recompiling library...")
+- (cond
+- (*recompiling-from-daemon*
+- (mk:oos module-name
+- :compile
+- :verbose nil))
+- (t
+- ;; first compile the sub-components!
+- (dolist (sub-system (make::component-depends-on system))
+- (when (stringp sub-system)
+- (setf sub-system (intern sub-system (find-package :keyword))))
+- (clc-require sub-system))
+- (common-lisp-controller:send-clc-command :recompile
+- (if (stringp module-name)
+- module-name
+- (string-downcase
+- (symbol-name
+- module-name))))))
+- (terpri)
+- (mk:oos module-name
+- :load
+- :load-source-instead-of-binary nil
+- :load-source-if-no-binary nil
+- :bother-user-if-no-binary nil
+- :compile-during-load nil)
+- t))))
++ (let ((system (mk:find-system module-name :load-or-nil)))
++ (mk:oos module-name
++ :load
++ :load-source-instead-of-binary nil
++ :load-source-if-no-binary nil
++ :bother-user-if-no-binary nil
++ :compile-during-load nil)
++ ;; did we load it?
++ (find module-name mk::*modules* :test #'string=)))
+
+
+ (defun require-asdf (module-name)
+ (let ((system (asdf:find-system module-name)))
+ (when system
+- (if (asdf-system-compiled-p system)
+- (asdf:oos 'asdf:load-op module-name)
+- (progn
+- (format t "~&;;; Please wait, recompiling library...")
+- (cond
+- (*recompiling-from-daemon*
+- (asdf:oos 'asdf:compile-op module-name))
+- (t
+- ;; first compile the depends-on
+- (dolist (sub-system
+- ;; skip asdf:load-op at beginning of first list
+- (cdar (asdf:component-depends-on
+- (make-instance 'asdf:compile-op) system)))
+- (clc-require sub-system))
+- (let ((module-name-str
+- (if (stringp module-name)
+- module-name
+- (string-downcase (symbol-name module-name)))))
+- ;; clc-build-daemon will report pkg built unless all components are removed
+- (common-lisp-controller:send-clc-command :remove module-name-str)
+- (common-lisp-controller:send-clc-command :recompile module-name-str))))
+- (terpri)
+- (asdf:oos 'asdf:load-op module-name)))
+- t)))
++ (asdf:oos 'asdf:load-op module-name)))
++ t)
+
+ ;; we need to hack the require to
+ ;; call clc-send-command on load failure...
+@@ -234,9 +181,7 @@
+
+ (defun compile-library (library)
+ "Recompiles the given library"
+- (let* (;; this is because of clc-build-daemon
+- (*recompiling-from-daemon* t)
+- (system (find-system-def library)))
++ (let ((system (find-system-def library)))
+ (case system
+ (:defsystem3
+ (mk:oos library :compile :verbose nil))
diff --git a/dev-lisp/common-lisp-controller/files/digest-common-lisp-controller-3.82 b/dev-lisp/common-lisp-controller/files/digest-common-lisp-controller-3.82
new file mode 100644
index 000000000000..140a1194f515
--- /dev/null
+++ b/dev-lisp/common-lisp-controller/files/digest-common-lisp-controller-3.82
@@ -0,0 +1 @@
+MD5 d86baa5aba313d1b1712ec44eaa25cba common-lisp-controller_3.82.tar.gz 1231728