2 ;;; Time-stamp: <2010-02-13 15:24:47 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
72 ;; :cl-random ;; or cl-variates, or...?
75 :components ((:static-file "version" :pathname #p"version.lisp-expr")
76 (:static-file "LICENSE.mit")
77 (:static-file "README")
88 :pathname "src/objsys/"
90 :depends-on ("packaging")
92 ((:cls-lsp-source-file "lsobjects")))
95 :pathname "src/basics/"
97 :depends-on ("packaging" "proto-objects")
99 ((:cls-lsp-source-file "lstypes")
100 (:cls-lsp-source-file "lsfloat")
102 (:cls-lsp-source-file "compound")
103 (:cls-lsp-source-file "lsmacros"
104 :depends-on ("compound"))
106 (:cls-lsp-source-file "lsmath"
107 :depends-on ("compound"
113 :pathname "src/numerics/"
114 :depends-on ("packaging" "proto-objects" "cls-core")
116 ((:cls-lsp-source-file "cffiglue")
117 (:cls-lsp-source-file "dists"
118 :depends-on ("cffiglue"))
120 (:cls-lsp-source-file "matrices"
121 :depends-on ("cffiglue"))
122 (:cls-lsp-source-file "ladata"
123 :depends-on ("cffiglue"
126 :depends-on ("cffiglue"
133 ;; Dataframes and statistical structures.
136 :pathname "src/data/"
137 :depends-on ("packaging"
143 (:file "dataframe-array")
144 (:file "dataframe-matrixlike")
145 (:file "dataframe-listoflist")
147 (:file "data-xls-compat")
152 :pathname "src/basics/"
153 :depends-on ("packaging"
159 ((:cls-lsp-source-file "lsbasics")))
165 :pathname "src/describe/"
166 :depends-on ("packaging"
173 ((:cls-lsp-source-file "statistics")))
177 :pathname "src/visualize/"
178 :depends-on ("cls-core")
184 :pathname "src/numerics/"
185 :depends-on ("packaging"
192 ((:file "optimize")))
198 :pathname "src/stat-models/"
199 :depends-on ("packaging"
207 ((:file "regression")
208 ;; (:cls-lsp-source-file "nonlin"
209 ;; :depends-on ("regression"))
210 ;; (:cls-lsp-source-file "bayes"
211 ;; :depends-on ("regression"))
218 :depends-on ("packaging"
227 (:cls-lsp-source-file "absorbtion")
228 (:cls-lsp-source-file "diabetes")
229 (:cls-lsp-source-file "leukemia")
230 (:cls-lsp-source-file "randu")
231 (:cls-lsp-source-file "aircraft")
232 (:cls-lsp-source-file "metabolism")
233 (:cls-lsp-source-file "book")
234 (:cls-lsp-source-file "heating")
235 (:cls-lsp-source-file "oxygen")
236 (:cls-lsp-source-file "stackloss")
237 (:cls-lsp-source-file "car-prices")
238 (:cls-lsp-source-file "iris")
239 (:cls-lsp-source-file "puromycin")
240 (:cls-lsp-source-file "tutorial")))
244 :depends-on ("packaging" "proto-objects"
253 :pathname "src/unittests/"
254 :components ((:file "unittests")
255 (:file "unittests-lstypes" :depends-on ("unittests"))
256 (:file "unittests-specfn" :depends-on ("unittests"))
257 (:file "unittests-prob" :depends-on ("unittests"))
258 (:file "unittests-proto" :depends-on ("unittests"))
259 (:file "unittests-regression" :depends-on ("unittests"))
260 (:file "unittests-listoflist" :depends-on ("unittests"))
261 (:file "unittests-arrays" :depends-on ("unittests"))
262 (:file "unittests-dataframe" :depends-on ("unittests"))))))
265 (defmethod perform ((o test-op) (c (eql (find-system :cls))))
266 (describe (lift:run-tests :suite 'lisp-stat-unittests::lisp-stat-ut)))