*** empty log message ***
authorMatthew Kennedy <mkennedy@gentoo.org>
Mon, 1 Nov 2004 08:07:25 +0000 (08:07 +0000)
committerMatthew Kennedy <mkennedy@gentoo.org>
Mon, 1 Nov 2004 08:07:25 +0000 (08:07 +0000)
18 files changed:
dev-lisp/cl-trivial-sockets/ChangeLog
dev-lisp/cl-trivial-sockets/Manifest
dev-lisp/cl-trivial-sockets/cl-trivial-sockets-0.2.ebuild [new file with mode: 0644]
dev-lisp/cl-trivial-sockets/files/0.2-asdf-depends-gentoo.patch [new file with mode: 0644]
dev-lisp/cl-trivial-sockets/files/digest-cl-trivial-sockets-0.2 [new file with mode: 0644]
dev-lisp/sbcl/ChangeLog
dev-lisp/sbcl/Manifest
dev-lisp/sbcl/files/0.8.16/README.Gentoo [new file with mode: 0644]
dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp [new file with mode: 0644]
dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp.no-threads [new file with mode: 0644]
dev-lisp/sbcl/files/0.8.16/install-clc.lisp [new file with mode: 0644]
dev-lisp/sbcl/files/0.8.16/sbcl-gentoo.patch [new file with mode: 0644]
dev-lisp/sbcl/files/0.8.16/sbcl-no-tests-gentoo.patch [new file with mode: 0644]
dev-lisp/sbcl/files/0.8.16/sbcl.sh [new file with mode: 0644]
dev-lisp/sbcl/files/0.8.16/sbclrc [new file with mode: 0644]
dev-lisp/sbcl/files/digest-sbcl-0.8.16 [new file with mode: 0644]
dev-lisp/sbcl/sbcl-0.8.15.ebuild
dev-lisp/sbcl/sbcl-0.8.16.ebuild [new file with mode: 0644]

index 39fc736b7557e9affad6f11621dadd562070adb6..20ea83d4fb98329f4a5b04c76a3452d0c4979bcd 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-lisp/cl-trivial-sockets
 # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-trivial-sockets/ChangeLog,v 1.1 2004/10/27 06:11:53 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-trivial-sockets/ChangeLog,v 1.2 2004/11/01 08:05:25 mkennedy Exp $
+
+*cl-trivial-sockets-0.2 (01 Nov 2004)
+
+  01 Nov 2004; Matthew Kenendy <mkennedy@gentoo.org>
+  +files/0.2-asdf-depends-gentoo.patch, +cl-trivial-sockets-0.2.ebuild:
+  New upstream version.
 
 *cl-trivial-sockets-0.1 (27 Oct 2004)
 
index 4f55e5752839e64a7be2d90888265f0a3b7dd070..0d2f682fad4e4f084a5892fcf2ddc379f318cdfd 100644 (file)
@@ -1,5 +1,7 @@
 MD5 1945589d27e6cf5de44b87098be6ef4e cl-trivial-sockets-0.1.ebuild 894
+MD5 1945589d27e6cf5de44b87098be6ef4e cl-trivial-sockets-0.2.ebuild 894
 MD5 30342eac64da7401df8b5eb3fff7bd7f metadata.xml 407
 MD5 52f69d4f474256ce3d5e5e928608dd62 ChangeLog 486
 MD5 a6246943c8c30fe35619555a700cd8bb files/digest-cl-trivial-sockets-0.1 69
 MD5 1c2b22740946716fe3045a2ffe92bd6d files/0.1-asdf-depends-gentoo.patch 520
+MD5 60cf13adb9e901bd8df2cf844fde2fd8 files/digest-cl-trivial-sockets-0.2 70
diff --git a/dev-lisp/cl-trivial-sockets/cl-trivial-sockets-0.2.ebuild b/dev-lisp/cl-trivial-sockets/cl-trivial-sockets-0.2.ebuild
new file mode 100644 (file)
index 0000000..1604224
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-trivial-sockets/cl-trivial-sockets-0.2.ebuild,v 1.1 2004/11/01 08:05:25 mkennedy Exp $
+
+inherit common-lisp
+
+DESCRIPTION="A portable Common Lisp networking library for undemanding Internet clients"
+HOMEPAGE="http://www.cliki.net/trivial-sockets
+       http://cvs.telent.net/cgi-bin/viewcvs.cgi/trivial-sockets/"
+SRC_URI="http://ftp.linux.org.uk/pub/lisp/cclan/trivial-sockets_${PV}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND="dev-lisp/common-lisp-controller
+       virtual/commonlisp"
+
+S=${WORKDIR}/trivial-sockets_${PV}
+
+CLPACKAGE=trivial-sockets
+
+src_unpack() {
+       unpack ${A}
+       epatch ${FILESDIR}/${PV}-asdf-depends-gentoo.patch || die
+}
+
+src_install() {
+       common-lisp-install *.lisp *.asd
+       common-lisp-system-symlink
+       dodoc README
+}
diff --git a/dev-lisp/cl-trivial-sockets/files/0.2-asdf-depends-gentoo.patch b/dev-lisp/cl-trivial-sockets/files/0.2-asdf-depends-gentoo.patch
new file mode 100644 (file)
index 0000000..c51b950
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ur trivial-sockets_0.2.orig/trivial-sockets.asd trivial-sockets_0.2/trivial-sockets.asd
+--- trivial-sockets_0.2.orig/trivial-sockets.asd       2004-10-30 13:52:07.000000000 -0500
++++ trivial-sockets_0.2/trivial-sockets.asd    2004-11-01 02:00:45.729547000 -0600
+@@ -16,5 +16,6 @@
+                 #+armedbear "abcl"
+                 :depends-on ("defpackage"))
+                (:file "server")
+-               ))
++               )
++    :depends-on (#+sbcl sb-bsd-sockets))
+ 
+Only in trivial-sockets_0.2: trivial-sockets.asd.~1.9.~
diff --git a/dev-lisp/cl-trivial-sockets/files/digest-cl-trivial-sockets-0.2 b/dev-lisp/cl-trivial-sockets/files/digest-cl-trivial-sockets-0.2
new file mode 100644 (file)
index 0000000..7d21816
--- /dev/null
@@ -0,0 +1 @@
+MD5 9f819bde43ada45545ddce7d48f367fb trivial-sockets_0.2.tar.gz 10017
index db5b5aca5118cb6eb47b948dae7b214f6ef210ec..d6f7230c496455fcb7fb026e9bc6a6ac593a781c 100644 (file)
@@ -1,6 +1,16 @@
 # ChangeLog for dev-lisp/sbcl
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.43 2004/10/05 01:47:01 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.44 2004/11/01 08:07:25 mkennedy Exp $
+
+*sbcl-0.8.16 (01 Nov 2004)
+
+  01 Nov 2004; Matthew Kenendy <mkennedy@gentoo.org>
+  +files/0.8.16/README.Gentoo, +files/0.8.16/customize-target-features.lisp,
+  +files/0.8.16/customize-target-features.lisp.no-threads,
+  +files/0.8.16/install-clc.lisp, +files/0.8.16/sbcl-gentoo.patch,
+  +files/0.8.16/sbcl-no-tests-gentoo.patch, +files/0.8.16/sbcl.sh,
+  +files/0.8.16/sbclrc, sbcl-0.8.15.ebuild, +sbcl-0.8.16.ebuild:
+  New upstream version; Marking 0.8.15 stable for x86
 
   04 Oct 2004; <mkennedy@gentoo.org> sbcl-0.8.14.ebuild:
   Marking 0.8.14 for stable x86
index 1925779fe6f9fbab596b43816843adc6d3a99780..7c8d27ea90ddbcc54a469e7f3486ad5ca6a5a7ec 100644 (file)
@@ -2,7 +2,7 @@ MD5 93b7c03dd1e5952d45e61a1b9c31c7de sbcl-0.8.13.ebuild 3882
 MD5 bfec86129246e3243821520419058139 sbcl-0.8.12.ebuild 3823
 MD5 139b862b968e7e93728adc4635eb28ca sbcl-0.8.11.ebuild 3868
 MD5 452bd315ab639d1e2738c73c498be1ed sbcl-0.8.12-r1.ebuild 3878
-MD5 0c1474757c08a0a91a42aef1f4021211 sbcl-0.8.15.ebuild 3883
+MD5 bfbc78db3494e67387c1f7ef16c5e269 sbcl-0.8.15.ebuild 3882
 MD5 09ca7de40173206338891e2a9723c6f7 sbcl-0.8.7-r1.ebuild 4236
 MD5 88838d899eb117390ec723d3a00c5805 sbcl-0.8.9.ebuild 3569
 MD5 ac7500d912d63c8a62b0116b2948b995 sbcl-0.8.8.ebuild 3489
@@ -11,6 +11,7 @@ MD5 d2fdff94a4bf5f38a2aab37a8bde1c99 sbcl-0.8.14.ebuild 3882
 MD5 35329bbe93e1b1d0ac162f8ee2ea9914 sbcl-0.8.7.ebuild 4076
 MD5 14d94fc6ef42dfddf4d657aa864ec9d2 ChangeLog 10604
 MD5 c93195a12a4bb997ca623db927bb6676 metadata.xml 997
+MD5 0c1474757c08a0a91a42aef1f4021211 sbcl-0.8.16.ebuild 3883
 MD5 6e40a080b566cc78dfe522ae34eec0a7 files/install-clc.lisp 1338
 MD5 74f94f11c31e6e9395b26994ebc70aa7 files/digest-sbcl-0.8.15 469
 MD5 5bb7b04d0735d7a7bd968381fd1ea095 files/digest-sbcl-0.8.9 467
@@ -26,6 +27,7 @@ MD5 69afd15544b984478ca6de7cac998145 files/digest-sbcl-0.8.12 468
 MD5 3e968969b9da3f3637feb09076b819a2 files/sbcl.rc 640
 MD5 c79912580313a9a43b0b9fd2aa794ba2 files/digest-sbcl-0.8.14 468
 MD5 69afd15544b984478ca6de7cac998145 files/digest-sbcl-0.8.12-r1 468
+MD5 a621450046a89b58ac8f124228282bac files/digest-sbcl-0.8.16 222
 MD5 ab7a8d4c4cdc70154ab5aaec9cdacb6d files/0.8.10/install-clc.lisp 1463
 MD5 35e2f72a0d987cbc1e659368ad33827c files/0.8.10/README.Gentoo 696
 MD5 a0edd1aecd1416792590693e5a6d2cb3 files/0.8.10/customize-target-features.lisp.no-threads 577
@@ -98,3 +100,11 @@ MD5 6f05f494b80fa25732a658deec4133c8 files/0.8.15/customize-target-features.lisp
 MD5 071f286575536d58bd93efe2f77cd24c files/0.8.15/sbcl.sh 2168
 MD5 653f804ebcd167d167f8163756b7da17 files/0.8.15/sbclrc 639
 MD5 66c1d6e9283f69ec6c29831aff873535 files/0.8.15/sbcl-gentoo.patch 1172
+MD5 609c9b36f4cf130059aa63b41dfa9017 files/0.8.16/README.Gentoo 941
+MD5 6f05f494b80fa25732a658deec4133c8 files/0.8.16/customize-target-features.lisp 574
+MD5 a0edd1aecd1416792590693e5a6d2cb3 files/0.8.16/customize-target-features.lisp.no-threads 577
+MD5 a816917795a2edb435b9d3831646eef1 files/0.8.16/install-clc.lisp 1360
+MD5 476020b6b9b159a66445f36672d419ce files/0.8.16/sbcl-gentoo.patch 1172
+MD5 65ef367ba954a6980aeccb4c553fe4ca files/0.8.16/sbcl-no-tests-gentoo.patch 2609
+MD5 071f286575536d58bd93efe2f77cd24c files/0.8.16/sbcl.sh 2168
+MD5 653f804ebcd167d167f8163756b7da17 files/0.8.16/sbclrc 639
diff --git a/dev-lisp/sbcl/files/0.8.16/README.Gentoo b/dev-lisp/sbcl/files/0.8.16/README.Gentoo
new file mode 100644 (file)
index 0000000..045bf81
--- /dev/null
@@ -0,0 +1,25 @@
+-*- outline -*- $Id: README.Gentoo,v 1.1 2004/11/01 08:07:25 mkennedy Exp $
+
+Gentoo GNU/Linux specific notes for SBCL
+----------------------------------------
+
+This is the README.Gentoo file from /usr/share/doc/@PF@/
+directory.
+
+  * The Gentoo port uses patches from the Debian project's SBCL port.
+
+  * An SBCL with support for multi-threading on GNU/Linux for x86 is
+    available with 'USE="threads" emerge dev-lisp/sbcl'
+
+  * asdf-install is installed as sbcl-asdf-install (the man-page is
+    similarly named).
+
+  * Support for the Common Lisp Controller is available.
+
+  * If "nosource" is not in your USE flags, then SBCL's source will
+    also be installed (in /usr/lib/sbcl/src).  This is handy with
+    ILISP or SLIME's `edit-definition' functions.
+
+If you encounter any problems or have suggestions, use
+http://bugs.gentoo.org.  Please don't bother the upstream authors
+unless you are absolutely certain it is not Gentoo-related.
diff --git a/dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp b/dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp
new file mode 100644 (file)
index 0000000..7663f48
--- /dev/null
@@ -0,0 +1,19 @@
+;;;; -*- Lisp -*-
+
+;;;; This is the features customization lambda form we will use if the
+;;;; user has "threads" in USE *and* they are building for the x86
+;;;; architecture.
+
+;;;; :sb-futex is dependent on the presence of a Linux 2.6.x kernel.
+;;;; For users of Linux 2.4.x kernels, this is still okay to enable,
+;;;; as SBCL will fall back if the futex system-call is not present.
+
+(lambda (list)
+  (flet ((enable (x)
+          (pushnew x list))
+        (disable (x)
+          (setf list (remove x list))))
+    (enable :sb-thread)
+    (enable :sb-futex)
+    (disable :sb-test))
+  list)
diff --git a/dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp.no-threads b/dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp.no-threads
new file mode 100644 (file)
index 0000000..100d840
--- /dev/null
@@ -0,0 +1,19 @@
+;;;; -*- Lisp -*- 
+
+;;;; This is the features customization lambda form we will use if the
+;;;; user has "threads" in USE *and* they are building for the x86
+;;;; architecture.
+
+;;;; :sb-futex is dependent on the presence of a Linux 2.6.x kernel.
+;;;; For users of Linux 2.4.x kernels, this is still okay to enable,
+;;;; as SBCL will fall back if the futex system-call is not present.
+
+(lambda (list)
+  (flet ((enable (x)
+          (pushnew x list))
+        (disable (x)
+          (setf list (remove x list))))
+    (disable :sb-thread)
+    (disable :sb-futex)
+    (disable :sb-test))
+  list)
diff --git a/dev-lisp/sbcl/files/0.8.16/install-clc.lisp b/dev-lisp/sbcl/files/0.8.16/install-clc.lisp
new file mode 100644 (file)
index 0000000..98bf4f5
--- /dev/null
@@ -0,0 +1,64 @@
+;;; -*- Mode: LISP; Package: CL-USER -*-
+;;;
+;;; Copyright (C) Peter Van Eynde 2001 and Kevin Rosenberg 2002-2003
+;;;
+;;; License: LGPL v2
+;;;
+;;; Some modifications for Gentoo, Matthew Kennedy <mkennedy@gentoo.org>
+;;;
+
+(in-package "COMMON-LISP-USER")
+
+(unless (ignore-errors
+         (load "/usr/share/common-lisp/source/common-lisp-controller/common-lisp-controller.lisp"))
+  (sb-unix:unix-exit 1))
+
+(unless (ignore-errors
+         (common-lisp-controller:init-common-lisp-controller
+          "/usr/lib/common-lisp/sbcl/" 
+          :version 3)
+         t)
+  (format t "~%Error during init of common-lisp-controller~%")
+  (sb-unix:unix-exit 1))
+
+(in-package :common-lisp-controller)
+
+(defun send-clc-command (command package)
+  (let ((process
+        (sb-ext:run-program "/usr/bin/clc-send-command"
+                            (list (ecase command
+                                    (:recompile "recompile")
+                                    (:remove "remove"))
+                                  (format nil "~A" package)
+                                  "sbcl"
+                                  "--quiet")
+                            :wait t)))
+    (if (= (sb-ext:process-exit-code process) 0)
+       (values)
+        (error "An error happened during ~A of ~A for ~A"
+              (ecase command
+                     (:recompile "recompilation")
+                     (:remove "removal"))
+              package
+              "sbcl"))))
+
+(in-package :common-lisp-user)
+
+(progn
+  (format t "~%Saving to sbcl-new.core...")
+  (sb-ext:gc :full t)
+  (sb-ext:save-lisp-and-die "sbcl-new.core" :purify t))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dev-lisp/sbcl/files/0.8.16/sbcl-gentoo.patch b/dev-lisp/sbcl/files/0.8.16/sbcl-gentoo.patch
new file mode 100644 (file)
index 0000000..c07d82d
--- /dev/null
@@ -0,0 +1,32 @@
+diff -ru sbcl-0.8.16.orig/contrib/sb-posix/posix-tests.lisp sbcl-0.8.16/contrib/sb-posix/posix-tests.lisp
+--- sbcl-0.8.16.orig/contrib/sb-posix/posix-tests.lisp 2004-03-15 09:24:53.000000000 -0600
++++ sbcl-0.8.16/contrib/sb-posix/posix-tests.lisp      2004-04-28 14:47:50.179460512 -0500
+@@ -96,7 +96,7 @@
+       (sb-posix:syscall-errno c)))
+   #.sb-posix::eexist)
+ 
+-(deftest mkdir.error.2
++#+nil (deftest mkdir.error.2
+   (handler-case
+       (sb-posix:mkdir "/" 0)
+     (sb-posix:syscall-error (c)
+@@ -149,7 +149,7 @@
+       (sb-posix:syscall-errno c)))
+   #.sb-posix::enotdir)
+ 
+-(deftest rmdir.error.3
++#+nil (deftest rmdir.error.3
+   (handler-case
+       (sb-posix:rmdir "/")
+     (sb-posix:syscall-error (c)
+diff -ru sbcl-0.8.16.orig/src/runtime/GNUmakefile sbcl-0.8.16/src/runtime/GNUmakefile
+--- sbcl-0.8.16.orig/src/runtime/GNUmakefile   2004-04-10 08:37:23.000000000 -0500
++++ sbcl-0.8.16/src/runtime/GNUmakefile        2004-04-28 14:46:29.556717032 -0500
+@@ -33,6 +33,7 @@
+ # symlink to Config-foo.
+ include Config
+ 
++CFLAGS += -DSBCL_HOME='"/usr/lib/sbcl"'
+ 
+ C_SRCS = alloc.c backtrace.c breakpoint.c coreparse.c \
+       dynbind.c gc-common.c globals.c interr.c interrupt.c \
diff --git a/dev-lisp/sbcl/files/0.8.16/sbcl-no-tests-gentoo.patch b/dev-lisp/sbcl/files/0.8.16/sbcl-no-tests-gentoo.patch
new file mode 100644 (file)
index 0000000..4eee8a3
--- /dev/null
@@ -0,0 +1,56 @@
+diff -ur sbcl-0.8.16.orig/contrib/sb-bsd-sockets/sb-bsd-sockets.asd sbcl-0.8.16/contrib/sb-bsd-sockets/sb-bsd-sockets.asd
+--- sbcl-0.8.16.orig/contrib/sb-bsd-sockets/sb-bsd-sockets.asd 2004-02-11 05:00:40.000000000 -0600
++++ sbcl-0.8.16/contrib/sb-bsd-sockets/sb-bsd-sockets.asd      2004-07-11 15:30:52.230966464 -0500
+@@ -103,14 +103,3 @@
+ (defmethod perform :after ((o load-op) (c (eql (find-system :sb-bsd-sockets))))
+   (provide 'sb-bsd-sockets))
+ 
+-(defmethod perform ((o test-op) (c (eql (find-system :sb-bsd-sockets))))
+-  (operate 'load-op 'sb-bsd-sockets-tests)
+-  (operate 'test-op 'sb-bsd-sockets-tests))
+-
+-(defsystem sb-bsd-sockets-tests
+-  :depends-on (sb-rt sb-bsd-sockets sb-posix)
+-  :components ((:file "tests")))
+-
+-(defmethod perform ((o test-op) (c (eql (find-system :sb-bsd-sockets-tests))))
+-  (or (funcall (intern "DO-TESTS" (find-package "SB-RT")))
+-      (error "test-op failed")))
+diff -ur sbcl-0.8.16.orig/contrib/sb-posix/sb-posix.asd sbcl-0.8.16/contrib/sb-posix/sb-posix.asd
+--- sbcl-0.8.16.orig/contrib/sb-posix/sb-posix.asd     2003-11-29 14:41:47.000000000 -0600
++++ sbcl-0.8.16/contrib/sb-posix/sb-posix.asd  2004-07-11 15:52:38.766342896 -0500
+@@ -86,34 +86,3 @@
+                 "constants"
+                 :package :sb-posix :depends-on  ("defpackage"))
+                (:file "interface" :depends-on ("constants" "macros" "designator" "alien"))))
+-
+-(defsystem sb-posix-tests
+-    :depends-on (sb-rt)
+-    :components ((:file "posix-tests")))
+-
+-(defmethod perform :after ((o load-op) (c (eql (find-system :sb-posix))))
+-  (provide 'sb-posix))
+-
+-(defmethod perform ((o test-op) (c (eql (find-system :sb-posix))))
+-  (operate 'load-op 'sb-posix-tests)
+-  (operate 'test-op 'sb-posix-tests))
+-
+-(defmethod perform ((o test-op) (c (eql (find-system :sb-posix-tests))))
+-  (funcall (intern "DO-TESTS" (find-package "SB-RT")))
+-  (let ((failures (funcall (intern "PENDING-TESTS" "SB-RT")))
+-      (ignored-failures (loop for sym being the symbols of :sb-posix-tests
+-                              if (search ".ERROR" (symbol-name sym))
+-                              collect sym)))
+-    (cond
+-      ((null failures)
+-       t)          
+-      ((null (set-difference failures ignored-failures))
+-       (warn "~@<some POSIX implementations return incorrect error values for ~
+-              failing calls, but there is legitimate variation between ~
+-              implementations too.  If you think the errno ~
+-              from your platform is valid, please contact the sbcl ~
+-              developers; otherwise, please submit a bug report to your ~
+-              kernel distributor~@:>")
+-       t)
+-      (t
+-       (error "non-errno tests failed!")))))
diff --git a/dev-lisp/sbcl/files/0.8.16/sbcl.sh b/dev-lisp/sbcl/files/0.8.16/sbcl.sh
new file mode 100644 (file)
index 0000000..d0ebaf8
--- /dev/null
@@ -0,0 +1,80 @@
+#!/bin/sh
+
+if [ ! -f /usr/share/common-lisp/source/common-lisp-controller/common-lisp-controller.lisp ] ; then
+  cat <<EOF
+$0: cannot find the common-lisp-controller source.
+EOF
+  exit 0
+fi
+
+build_error()
+{
+    echo "Build failure $1"
+    exit 1
+}
+
+case $1 in
+    rebuild)
+           echo $0 rebuilding...
+           shift
+           echo rebuilding $1
+           sbcl --noinform --sysinit /etc/sbclrc --userinit /dev/null \
+                --disable-debugger \
+                --eval \
+"(handler-case
+     (progn
+       (c-l-c:compile-library (quote $1))
+       (sb-unix:unix-exit 0))
+    (error (e)
+      (ignore-errors (format t \"~&Build error: ~A~%\" e))
+      (finish-output)
+      (sb-unix:unix-exit 1)))" || build_error
+           ;;
+     remove)
+           echo $0 removing packages...
+           shift
+           while [ ! -z "$1" ] ; do
+               rm -rf "/usr/lib/common-lisp/sbcl/$1"
+               shift
+           done
+           ;;
+    install-defsystem | install-clc)
+           echo $0 loading and dumping clc.
+           ( cd /usr/lib/sbcl
+             sbcl --core /usr/lib/sbcl/sbcl-dist.core \
+                  --noinform --sysinit /etc/sbclrc --userinit /dev/null \
+                  --load "/usr/lib/sbcl/install-clc.lisp" 2> /dev/null
+              mv sbcl-new.core sbcl.core || (echo FAILED ; cp sbcl-dist.core sbcl.core ) )
+           ;;
+    remove-defsystem | remove-clc)
+           echo $0 removing clc-enabled image
+           cp /usr/lib/sbcl/sbcl-dist.core /usr/lib/sbcl/sbcl.core
+           ;;
+    make-user-image)
+       if [ ! -f "$2" ] ; then 
+           echo "Trying to make-user image, but can not find file $2" >&2
+           exit 1
+       fi 
+       sbcl --core /usr/lib/sbcl/sbcl-dist.core \
+           --noinform --sysinit /dev/null --userinit /dev/null \
+           --eval \
+"(handler-case
+  (progn    
+    (load \"$2\") 
+    (sb-ext:gc :full t)
+    (sb-ext:save-lisp-and-die \"/usr/lib/sbcl/sbcl-new.core\" :purify t))
+    (sb-unix:unix-exit 0))
+  (error (e)
+    (ignore-errors (format t \"make-user-image error: ~A~%\" e))
+    (finish-output)
+    (sb-unix:unix-exit 1)))"
+            mv sbcl-new.core sbcl.core || (echo FAILED ; cp sbcl-dist.core sbcl.core ) 
+           ;;
+    *)
+           echo $0 unkown command $1
+           echo known commands: rebuild, remove, make-user-image, install-clc and remove-clc
+           exit 1
+           ;;
+esac
+
+exit 0
diff --git a/dev-lisp/sbcl/files/0.8.16/sbclrc b/dev-lisp/sbcl/files/0.8.16/sbclrc
new file mode 100644 (file)
index 0000000..91f3172
--- /dev/null
@@ -0,0 +1,18 @@
+;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Package: CL-USER -*-
+
+;;; This file is installed as /etc/sbcl.rc and run on every invocation
+;;; of SBCL
+
+(if (probe-file "/etc/lisp-config.lisp")
+    (load "/etc/lisp-config.lisp")
+    (format t "~%;;; Warning: there is no /etc/lisp-config.lisp file"))
+
+;;; The following is required if you want source location functions to
+;;; work (such as those called when you use M-. (edit definition) in
+;;; ILISP or SLIME)
+
+(setf (logical-pathname-translations "SYS")
+      '(("SYS:SRC;**;*.*.*" #p"/usr/lib/sbcl/src/**/*.*")
+       ("SYS:CONTRIB;**;*.*.*" #p"/usr/lib/sbcl/**/*.*")))
+
+;;; sbclrc ends here
diff --git a/dev-lisp/sbcl/files/digest-sbcl-0.8.16 b/dev-lisp/sbcl/files/digest-sbcl-0.8.16
new file mode 100644 (file)
index 0000000..548abfd
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 ae305cbc7a018f45c119282aebf43c90 sbcl-0.8.16-source.tar.bz2 2342519
+MD5 096adea4e54463761e4d08f8067611ff sbcl-0.8.16-html.tar.bz2 108443
+MD5 6c193e328cdb472787ef78401ee5294c sbcl-0.8.1-x86-linux-binary.tar.bz2 6348098
index 12faefc8ede5a99a109caa355435dab850329c40..f04dddadc1f48148ab336964e9f0e6a60929147d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-0.8.15.ebuild,v 1.1 2004/10/05 01:44:19 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-0.8.15.ebuild,v 1.2 2004/11/01 08:07:25 mkennedy Exp $
 
 inherit common-lisp-common eutils
 
@@ -19,7 +19,7 @@ SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~mips"
+KEYWORDS="x86 ~ppc ~sparc ~mips"
 IUSE="threads doc nosource"
 
 DEPEND=">=dev-lisp/common-lisp-controller-3.91
diff --git a/dev-lisp/sbcl/sbcl-0.8.16.ebuild b/dev-lisp/sbcl/sbcl-0.8.16.ebuild
new file mode 100644 (file)
index 0000000..2787b1d
--- /dev/null
@@ -0,0 +1,131 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-0.8.16.ebuild,v 1.1 2004/11/01 08:07:25 mkennedy Exp $
+
+inherit common-lisp-common eutils
+
+BV_X86=0.8.1
+BV_PPC=0.8.8
+BV_SPARC=0.7.13
+BV_MIPS=0.7.10
+DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp."
+HOMEPAGE="http://sbcl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
+       mirror://sourceforge/sbcl/${P}-html.tar.bz2
+       x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
+       ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-ppc-linux-binary.tar.bz2 )
+       sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
+       mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.gz )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~mips"
+IUSE="threads doc nosource"
+
+DEPEND=">=dev-lisp/common-lisp-controller-3.91
+       sys-apps/texinfo
+       doc? ( virtual/tetex )"
+
+PROVIDE="virtual/commonlisp"
+
+src_unpack() {
+       if use x86; then
+               unpack ${PN}-${BV_X86}-x86-linux-binary.tar.bz2
+               mv ${PN}-${BV_X86} x86-binary
+       elif use ppc; then
+               unpack ${PN}-${BV_PPC}-ppc-linux-binary.tar.bz2
+               mv ${PN}-${BV_PPC}-ppc-linux ppc-binary
+       elif use sparc; then
+               unpack ${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2
+               echo mv ${PN}-${BV_SPARC} sparc-binary || die
+               mv ${PN}-${BV_SPARC} sparc-binary || die
+       elif use mips; then
+               unpack ${PN}-${BV_SPARC}-mips-linux-binary.tar.gz
+               mv ${PN}-${BV_SPARC}-mips-linux mips-binary
+       fi
+
+       unpack ${P}-source.tar.bz2
+       epatch ${FILESDIR}/${PV}/sbcl-gentoo.patch
+       epatch ${FILESDIR}/${PV}/sbcl-no-tests-gentoo.patch
+
+       # Currently, thread support is only available for x86.  These
+       # features expressions also disable :sb-test.
+       if use x86 && use threads; then
+               cp ${FILESDIR}/${PV}/customize-target-features.lisp \
+                       ${S}/customize-target-features.lisp
+       else
+               cp ${FILESDIR}/${PV}/customize-target-features.lisp.no-threads \
+                       ${S}/customize-target-features.lisp
+       fi
+
+       find ${S} -type f -name .cvsignore -exec rm -f '{}' \;
+       find ${S} -type d -name CVS \) -exec rm -rf '{}' \;
+       find ${S} -type f -name \*.c -exec chmod 644 '{}' \;
+}
+
+src_compile() {
+       local bindir
+       use x86 && bindir=../x86-binary
+       use ppc && bindir=../ppc-binary
+       use sparc && bindir=../sparc-binary
+       use mips && bindir=../mips-binary
+
+       # TODO: allow the user to chose between SBCL, CMUCL and CLISP for bootstrapping
+       # build with previous SBCL
+       PATH=${bindir}/src/runtime:${PATH} SBCL_HOME=${bindir}/output GNUMAKE=make \
+               ./make.sh 'sbcl --sysinit /dev/null --userinit /dev/null --no-debugger --core ${bindir}/output/sbcl.core' \
+               || die
+
+       # build with CMUCL
+#      GNUMAKE=make ./make.sh 'lisp -batch'
+
+       # Generation texinfo documentation
+       cd ${S}/doc/manual
+       make info
+       use doc && make ps pdf
+
+}
+
+src_install() {
+       unset SBCL_HOME
+
+       insinto /etc/
+       doins ${FILESDIR}/${PV}/sbclrc  # Gentoo specific (from Debian)
+
+       exeinto /usr/lib/common-lisp/bin
+       doexe ${FILESDIR}/${PV}/sbcl.sh # Gentoo specific (from Debian)
+
+       dodir /usr/share/man
+       INSTALL_ROOT=${D}/usr sh install.sh
+       mv ${D}/usr/lib/sbcl/sbcl.core ${D}/usr/lib/sbcl/sbcl-dist.core
+
+       insinto /usr/lib/sbcl
+       doins ${FILESDIR}/${PV}/install-clc.lisp        # Gentoo specific (from Debian)
+
+       doman doc/sbcl-asdf-install.1
+
+       dodoc BUGS COPYING CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README STYLE SUPPORT TLA TODO
+       dodoc ${FILESDIR}/${PV}/README.Gentoo
+       dohtml doc/html/*
+
+       doinfo ${S}/doc/manual/*.info
+       use doc && dodoc ${S}/doc/manual/*.{pdf,ps}
+
+       keepdir /usr/lib/common-lisp/sbcl
+
+       if ! use nosource; then
+               # install the SBCL source
+               find ${S}/src -type f -name \*.fasl |xargs rm -f
+               mv ${S}/src ${D}/usr/lib/sbcl/
+       fi
+
+       impl-save-timestamp-hack sbcl || die
+}
+
+pkg_postinst() {
+       standard-impl-postinst sbcl
+}
+
+pkg_postrm() {
+       standard-impl-postrm sbcl /usr/bin/sbcl
+}