Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (60 sloc) 2.41 KB
;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;; See the file LICENCE for licence information.
(in-package #:cl-user)
(defpackage #:cl-store.system
(:use #:cl #:asdf)
(:export #:non-required-file))
(in-package #:cl-store.system)
#-(or lispworks mcl cmu clisp sbcl allegro ecl openmcl abcl)
(error "This is an unsupported lisp implementation.
Currently only MCL, OpenMCL, Lispworks, CMUCL, SBCL,
CLISP, ECL and AllegroCL are supported.")
(defclass non-required-file (cl-source-file) ()
"File containing implementation dependent code which may or may not be there."))
(defun lisp-system-shortname ()
#+mcl :mcl #+lispworks :lispworks #+cmu :cmucl #+clisp :clisp #+sbcl :sbcl
#+allegro :acl #+ecl :ecl #+openmcl :openmcl #+abcl :abcl)
(defmethod component-pathname ((component non-required-file))
(let ((pathname (call-next-method))
(name (string-downcase (lisp-system-shortname))))
(make-pathname :directory (list :relative name))
(defmethod perform ((op compile-op) (component non-required-file))
(when (probe-file (component-pathname component))
(defmethod perform ((op load-op) (component non-required-file))
(when (probe-file (component-pathname component))
(defmethod operation-done-p ((o operation) (c non-required-file))
(when (probe-file (component-pathname c))
(defsystem cl-store
:name "CL-STORE"
:author "Sean Ross <>"
:maintainer "Sean Ross <>"
:version "0.8.11"
:description "Serialization package"
:long-description "Portable CL Package to serialize data"
:licence "MIT"
:serial t
:components ((:file "package")
(:file "utils")
#+(and clisp (not mop))
(:file "mop")
(:file "backends")
(:file "plumbing")
(:file "circularities")
(:file "default-backend")
#-ecl (:non-required-file "custom")))
(defmethod perform :after ((o load-op) (c (eql (find-system :cl-store))))
(funcall (find-symbol "SETUP-SPECIAL-FLOATS" :cl-store))
(provide 'cl-store))
(defmethod perform ((op test-op) (sys (eql (find-system :cl-store))))
(oos 'load-op :cl-store-tests)
(oos 'test-op :cl-store-tests))
(defsystem cl-store-tests
:depends-on (rt cl-store)
:components ((:file "tests")))
;; EOF
Something went wrong with that request. Please try again.