2 ;;; Time-stamp: <2010-10-10 16:04:08 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 -- BUT we need to ensure that we sync
15 ;; properly with the new ASDF! Maybe we should make the git repo a
16 ;; submodule, and tag a particular version to use, pulling that
19 #-asdf(load (pathname (concatenate 'string (namestring *cls-external-dir*) "asdf")))
23 ;;(pushnew *cls-asdf-dir* asdf:*central-registry*)
24 ;;(pushnew #p"C:/Lisp/libs/" asdf-util:*source-dirs* :test #'equal) ; eg for Microsoft
26 (cl:defpackage #:cls-system
27 (:use :common-lisp :asdf))
29 (in-package #:cls-system)
31 ;;; To avoid renaming everything from *.lsp to *.lisp... borrowed
32 ;;; from Cyrus Harmon's work, for example for the ch-util. NOT secure
33 ;;; against serving multiple architectures/hardwares from the same
34 ;;; file system (i.e. PPC and x86 would not be differentiated).
35 ;;; However, this might be more of a solution for quicklisp?
37 (defclass cls-lsp-source-file (cl-source-file) ())
38 (defparameter *fasl-directory*
39 (make-pathname :directory '(:relative
45 #-(or sbcl openmcl clisp cmucl) "fasl"
48 ;;; Handle Luke's *.lsp suffix
49 (defmethod source-file-type ((c cls-lsp-source-file) (s module)) "lsp")
50 (defmethod asdf::output-files :around ((operation compile-op)
51 (c cls-lsp-source-file))
52 (list (merge-pathnames *fasl-directory*
53 (compile-file-pathname (component-pathname c)))))
54 ;;; again, thanks to Cyrus for saving me time...
58 :version #.(with-open-file
59 (vers (merge-pathnames "version.lisp-expr" *load-truename*))
61 :author "A.J. Rossini <blindglobe@gmail.com>"
63 :description "Common Lisp Statistics (CLS): A System for Statistical
64 Computing with Common Lisp; based on Common LispStat (CLS alpha1) by
65 Luke Tierney <luke@stat.uiowa.edu> (apparently originally written
66 when Luke was at CMU, on leave at Bell Labs?). Last touched by him
67 in 1991, then by AJR starting in 2005."
71 :lisp-matrix ; on fnv, cl-blapack, ffa
75 ;; :cl-random ;; or cl-variates, or...?
78 :components ((:static-file "version" :pathname #p"version.lisp-expr")
79 (:static-file "LICENSE.mit")
80 (:static-file "README")
92 :pathname "src/objsys/"
94 :depends-on ("packaging")
96 ((:cls-lsp-source-file "lsobjects")))
99 :pathname "src/basics/"
101 :depends-on ("packaging" "proto-objects")
103 ((:cls-lsp-source-file "lstypes")
104 (:cls-lsp-source-file "lsfloat")
106 (:cls-lsp-source-file "compound")
107 (:cls-lsp-source-file "lsmacros"
108 :depends-on ("compound"))
110 (:cls-lsp-source-file "lsmath"
111 :depends-on ("compound"
117 :pathname "src/numerics/"
118 :depends-on ("packaging" "proto-objects" "cls-core")
120 ((:cls-lsp-source-file "cffiglue")
121 (:cls-lsp-source-file "dists"
122 :depends-on ("cffiglue"))
124 (:cls-lsp-source-file "matrices"
125 :depends-on ("cffiglue"))
126 (:cls-lsp-source-file "ladata"
127 :depends-on ("cffiglue"
130 :depends-on ("cffiglue"
137 ;; Dataframes and statistical structures.
140 :pathname "src/data/"
141 :depends-on ("packaging"
147 (:file "dataframe-array")
148 (:file "dataframe-matrixlike")
149 (:file "dataframe-listoflist")
151 (:file "data-xls-compat")
156 :pathname "src/basics/"
157 :depends-on ("packaging"
163 ((:cls-lsp-source-file "lsbasics")))
169 :pathname "src/describe/"
170 :depends-on ("packaging"
177 ((:cls-lsp-source-file "statistics")))
181 :pathname "src/visualize/"
182 :depends-on ("cls-core")
188 :pathname "src/numerics/"
189 :depends-on ("packaging"
196 ((:file "optimize")))
202 :pathname "src/stat-models/"
203 :depends-on ("packaging"
211 ((:file "regression")
212 ;; (:cls-lsp-source-file "nonlin"
213 ;; :depends-on ("regression"))
214 ;; (:cls-lsp-source-file "bayes"
215 ;; :depends-on ("regression"))
222 :depends-on ("packaging"
231 (:cls-lsp-source-file "absorbtion")
232 (:cls-lsp-source-file "diabetes")
233 (:cls-lsp-source-file "leukemia")
234 (:cls-lsp-source-file "randu")
235 (:cls-lsp-source-file "aircraft")
236 (:cls-lsp-source-file "metabolism")
237 (:cls-lsp-source-file "book")
238 (:cls-lsp-source-file "heating")
239 (:cls-lsp-source-file "oxygen")
240 (:cls-lsp-source-file "stackloss")
241 (:cls-lsp-source-file "car-prices")
242 (:cls-lsp-source-file "iris")
243 (:cls-lsp-source-file "puromycin")
244 (:cls-lsp-source-file "tutorial")))
248 :depends-on ("packaging" "proto-objects"
257 :pathname "src/unittests/"
258 :components ((:file "unittests")
259 (:file "unittests-lstypes" :depends-on ("unittests"))
260 (:file "unittests-specfn" :depends-on ("unittests"))
261 (:file "unittests-prob" :depends-on ("unittests"))
262 (:file "unittests-proto" :depends-on ("unittests"))
263 (:file "unittests-regression" :depends-on ("unittests"))
264 (:file "unittests-listoflist" :depends-on ("unittests"))
265 (:file "unittests-arrays" :depends-on ("unittests"))
266 (:file "unittests-dataframe" :depends-on ("unittests"))))))
269 (defmethod perform ((o test-op) (c (eql (find-system :cls))))
270 (describe (lift:run-tests :suite 'lisp-stat-unittests::lisp-stat-ut)))