2 ;;; Time-stamp: <2010-02-09 08:33:51 tony>
3 ;;; Created: <2005-05-30 17:09:47 blindglobe>
5 ;;; Author: AJ Rossini <blindglobe@gmail.com>
6 ;;; Copyright: (c) 2005--2010, by AJ Rossini <blindglobe@gmail.com>
7 ;;; License: MIT, see the file LICENSE.mit in this directory for details.
8 ;;; Purpose: ASDF specification for Common Lisp Statistics
10 ;;; What is this talk of 'release'? Klingons do not make software
11 ;;; 'releases'. Our software 'escapes', leaving a bloody trail of
12 ;;; designers and quality assurance people in its wake.
14 ;; Load ASDF if it isn't loaded
15 #-asdf(load (pathname (concatenate 'string (namestring *cls-external-dir*) "asdf")))
19 ;;(pushnew *cls-asdf-dir* asdf:*central-registry*)
20 ;;(pushnew #p"C:/Lisp/libs/" asdf-util:*source-dirs* :test #'equal) ; eg for Microsoft
22 (cl:defpackage #:cls-system
23 (:use :common-lisp :asdf))
25 (in-package #:cls-system)
27 ;;; To avoid renaming everything from *.lsp to *.lisp...
28 ;;; borrowed from Cyrus Harmon's work, for example for the ch-util.
29 ;;; NOT secure against serving multiple architectures/hardwares from
30 ;;; the same file system (i.e. PPC and x86 would not be
33 (defclass cls-lsp-source-file (cl-source-file) ())
34 (defparameter *fasl-directory*
35 (make-pathname :directory '(:relative
41 #-(or sbcl openmcl clisp cmucl) "fasl"
45 ;;; Handle Luke's *.lsp suffix
46 (defmethod source-file-type ((c cls-lsp-source-file) (s module)) "lsp")
47 (defmethod asdf::output-files :around ((operation compile-op)
48 (c cls-lsp-source-file))
49 (list (merge-pathnames *fasl-directory*
50 (compile-file-pathname (component-pathname c)))))
51 ;;; again, thanks to Cyrus for saving me time...
55 :version #.(with-open-file
56 (vers (merge-pathnames "version.lisp-expr" *load-truename*))
58 :author "A.J. Rossini <blindglobe@gmail.com>"
60 :description "Common Lisp Statistics (CLS): A System for Statistical
61 Computing with Common Lisp; based on Common LispStat (CLS alpha1) by
62 Luke Tierney <luke@stat.uiowa.edu> (apparently originally written
63 when Luke was at CMU, on leave at Bell Labs?). Last touched by him
64 in 1991, then by AJR starting in 2005."
68 :lisp-matrix ; on fnv, cl-blapack, ffa
74 :components ((:static-file "version" :pathname #p"version.lisp-expr")
75 (:static-file "LICENSE.mit")
76 (:static-file "README")
87 :pathname "src/objsys/"
89 :depends-on ("packaging")
91 ((:cls-lsp-source-file "lsobjects")))
94 :pathname "src/basics/"
96 :depends-on ("packaging" "proto-objects")
98 ((:cls-lsp-source-file "lstypes")
99 (:cls-lsp-source-file "lsfloat")
101 (:cls-lsp-source-file "compound")
102 (:cls-lsp-source-file "lsmacros"
103 :depends-on ("compound"))
105 (:cls-lsp-source-file "lsmath"
106 :depends-on ("compound"
112 :pathname "src/numerics/"
113 :depends-on ("packaging" "proto-objects" "cls-core")
115 ((:cls-lsp-source-file "cffiglue")
116 (:cls-lsp-source-file "dists"
117 :depends-on ("cffiglue"))
119 (:cls-lsp-source-file "matrices"
120 :depends-on ("cffiglue"))
121 (:cls-lsp-source-file "ladata"
122 :depends-on ("cffiglue"
125 :depends-on ("cffiglue"
132 ;; Dataframes and statistical structures.
135 :pathname "src/data/"
136 :depends-on ("packaging"
142 (:file "dataframe-array")
143 (:file "dataframe-matrixlike")
144 (:file "dataframe-listoflist")
146 (:file "data-xls-compat")
151 :pathname "src/basics/"
152 :depends-on ("packaging"
158 ((:cls-lsp-source-file "lsbasics")))
164 :pathname "src/describe/"
165 :depends-on ("packaging"
172 ((:cls-lsp-source-file "statistics")))
176 :pathname "src/visualize/"
177 :depends-on ("cls-core")
183 :pathname "src/numerics/"
184 :depends-on ("packaging"
191 ((:file "optimize")))
197 :pathname "src/stat-models/"
198 :depends-on ("packaging"
206 ((:file "regression")
207 ;; (:cls-lsp-source-file "nonlin"
208 ;; :depends-on ("regression"))
209 ;; (:cls-lsp-source-file "bayes"
210 ;; :depends-on ("regression"))
217 :depends-on ("packaging"
226 (:cls-lsp-source-file "absorbtion")
227 (:cls-lsp-source-file "diabetes")
228 (:cls-lsp-source-file "leukemia")
229 (:cls-lsp-source-file "randu")
230 (:cls-lsp-source-file "aircraft")
231 (:cls-lsp-source-file "metabolism")
232 (:cls-lsp-source-file "book")
233 (:cls-lsp-source-file "heating")
234 (:cls-lsp-source-file "oxygen")
235 (:cls-lsp-source-file "stackloss")
236 (:cls-lsp-source-file "car-prices")
237 (:cls-lsp-source-file "iris")
238 (:cls-lsp-source-file "puromycin")
239 (:cls-lsp-source-file "tutorial")))
243 :depends-on ("packaging" "proto-objects"
252 :pathname "src/unittests/"
253 :components ((:file "unittests")
254 (:file "unittests-lstypes" :depends-on ("unittests"))
255 (:file "unittests-specfn" :depends-on ("unittests"))
256 (:file "unittests-prob" :depends-on ("unittests"))
257 (:file "unittests-proto" :depends-on ("unittests"))
258 (:file "unittests-regression" :depends-on ("unittests"))
259 (:file "unittests-listoflist" :depends-on ("unittests"))
260 (:file "unittests-arrays" :depends-on ("unittests"))
261 (:file "unittests-dataframe" :depends-on ("unittests"))))))
264 (defmethod perform ((o test-op) (c (eql (find-system :cls))))
265 (describe (lift:run-tests :suite 'lisp-stat-unittests::lisp-stat-ut)))