summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2003-06-10 04:53:04 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2003-06-10 04:53:04 +0000
commit617b5ce9977eeb5a7a7977ef4c6974bf0aecf19f (patch)
treebcfe11291f5c920da39dfc65ba00f51356086a04 /dev-lisp/cl-db-sockets/files
parentDEPEND on sed >= 4 (diff)
downloadhistorical-617b5ce9977eeb5a7a7977ef4c6974bf0aecf19f.tar.gz
historical-617b5ce9977eeb5a7a7977ef4c6974bf0aecf19f.tar.bz2
historical-617b5ce9977eeb5a7a7977ef4c6974bf0aecf19f.zip
initial common lisp import
Diffstat (limited to 'dev-lisp/cl-db-sockets/files')
-rw-r--r--dev-lisp/cl-db-sockets/files/db-sockets.asd55
-rw-r--r--dev-lisp/cl-db-sockets/files/digest-cl-db-sockets-0.57.11
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-lisp/cl-db-sockets/files/db-sockets.asd b/dev-lisp/cl-db-sockets/files/db-sockets.asd
new file mode 100644
index 000000000000..d63764e62fc3
--- /dev/null
+++ b/dev-lisp/cl-db-sockets/files/db-sockets.asd
@@ -0,0 +1,55 @@
+;;; -*- Lisp -*-
+
+(defpackage #:db-sockets-system (:use #:asdf #:cl))
+(in-package #:db-sockets-system)
+
+;;; constants.lisp requires special treatment
+
+(defclass shared-library-file (source-file)
+ ((loaded :initform nil)))
+
+(defmethod perform ((o load-op) (c shared-library-file))
+ (unless (slot-value c 'loaded)
+ (let ((filename (make-pathname
+ :name (pathname-name (component-pathname c))
+ :type "so"
+ :directory '(:absolute "usr" "lib" "db-sockets"))))
+ #+(or cmu scl) (ext:load-foreign filename)
+ #+sbcl (sb-alien:load-1-foreign filename))
+ (setf (slot-value c 'loaded) t)))
+
+(defmethod operation-done-p ((o load-op) (c shared-library-file))
+ (slot-value c 'loaded))
+
+(defmethod operation-done-p ((o compile-op) (c shared-library-file))
+ t)
+
+(defmethod source-file-type ((c shared-library-file) (s module))
+ "so")
+
+#+(or sbcl cmu scl)
+(defsystem db-sockets
+ :version "0.57.1"
+ :perform (load-op :after (op db-sockets)
+ (pushnew :db-sockets cl:*features*))
+ :depends-on (:rt)
+ :components ((:file "defpackage")
+ (:file "split" :depends-on ("defpackage"))
+ (:file "array-data" :depends-on ("defpackage"))
+ (:shared-library-file "alien")
+ (:file "malloc" :depends-on ("defpackage"))
+ (:file "foreign-glue" :depends-on ("defpackage" "malloc"))
+ (:file "constants-arch" :depends-on ("defpackage"))
+ (:file "sockets" :depends-on ("constants-arch"))
+ #+ignore
+ (:file "sockets"
+ :in-order-to ((compile-op
+ (load-op "constants-arch"))))
+ (:file "sockopt" :depends-on ("sockets"))
+ (:file "inet" :depends-on ("sockets" "split" "constants-arch" ))
+ (:file "unix" :depends-on ("sockets" "split" "constants-arch" ))
+ (:file "name-service" :depends-on ("sockets" "constants-arch" "alien"))
+ (:file "misc" :depends-on ("sockets" "constants-arch"))
+ (:file "def-to-lisp")
+ (:file "tests" :depends-on ("inet" "sockopt"))
+ ))
diff --git a/dev-lisp/cl-db-sockets/files/digest-cl-db-sockets-0.57.1 b/dev-lisp/cl-db-sockets/files/digest-cl-db-sockets-0.57.1
new file mode 100644
index 000000000000..094c7b8294ab
--- /dev/null
+++ b/dev-lisp/cl-db-sockets/files/digest-cl-db-sockets-0.57.1
@@ -0,0 +1 @@
+MD5 a03aab1d6f9b03f817d62f6c447272cd cl-db-sockets_0.57.1.orig.tar.gz 33246