1.0.22.19: Canonicalize whitespace in .asd files.
[sbcl.git] / contrib / sb-aclrepl / sb-aclrepl.asd
index 9cfaa2c..4fbae1d 100644 (file)
@@ -4,15 +4,26 @@
 (in-package #:sb-aclrepl-system)
 
 (defsystem sb-aclrepl
-    :version "0.6"
     :author "Kevin Rosenberg <kevin@rosenberg.net>"
     :description "An AllegroCL compatible REPL"
-    :depends-on (sb-rt)
-    :components ((:file "repl")
-                (:file "inspect" :depends-on ("repl"))
-                (:file "debug" :depends-on ("repl"))))
+    #+sb-building-contrib :pathname
+    #+sb-building-contrib "SYS:CONTRIB;SB-ACLREPL;"
+    :components ((:file "toplevel")
+                 (:file "repl" :depends-on ("toplevel"))
+                 (:file "inspect" :depends-on ("repl"))
+                 (:file "debug" :depends-on ("repl"))))
+
+(defmethod perform :after ((o load-op) (c (eql (find-system :sb-aclrepl))))
+  (provide 'sb-aclrepl))
 
 (defmethod perform ((o test-op) (c (eql (find-system :sb-aclrepl))))
-  (or (load "aclrepl-tests.lisp")
-      (error "test-op failed")))
+  (oos 'load-op 'sb-aclrepl-tests)
+  (oos 'test-op 'sb-aclrepl-tests))
 
+(defsystem sb-aclrepl-tests
+    :depends-on (sb-rt)
+    :components ((:file "tests")))
+
+(defmethod perform ((o test-op) (c (eql (find-system :sb-aclrepl-tests))))
+  (or (funcall (intern "DO-TESTS" (find-package "SB-RT")))
+      (error "test-op failed")))