2 ;;; Time-stamp: <2012-10-05 04:09:33 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 Statistical System
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
17 ;; version? However, most "modern" CLs use the "new" (>=v2) ASDF.
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 :name "Common Lisp Statistical System"
59 :version #.(with-open-file
60 (vers (merge-pathnames "version.lisp-expr" *load-truename*))
62 :author "A.J. Rossini <blindglobe@gmail.com>"
64 :description "Common Lisp Statistics (CLS): A System for Statistical
65 Computing with Common Lisp; based on Common LispStat (CLS alpha1) by
66 Luke Tierney <luke@stat.uiowa.edu> (apparently originally written
67 when Luke was at CMU, on leave at Bell Labs?). Last touched by him
68 in 1991, then by AJR starting in 2005."
70 :depends-on (;; :cldoc ;; documentation tool? (not Lit Prog, but coding support)
71 ;; :cffi ;; only needed within lisp-matrix
73 :lisp-matrix ;; on fnv, cl-blapack, ffa
76 :rsm-string ;; need something for importing CSV files into listoflist or arrays.
77 ;;; need to select pRNG stream system
78 ;; :cl-random ;; or cl-variates, or...?
80 ;;; if graphics exist, then...
83 :components ((:static-file "version" :pathname #p"version.lisp-expr")
84 (:static-file "LICENSE.mit")
85 (:static-file "README")
97 :pathname "src/objsys/"
99 :depends-on ("packaging")
101 ((:cls-lsp-source-file "lsobjects")))
104 :pathname "src/basics/"
106 :depends-on ("packaging" "proto-objects")
108 ((:cls-lsp-source-file "lstypes")
109 (:cls-lsp-source-file "lsfloat")
111 (:cls-lsp-source-file "compound")
112 (:cls-lsp-source-file "lsmacros"
113 :depends-on ("compound"))
115 (:cls-lsp-source-file "lsmath"
116 :depends-on ("compound"
121 ;; "numerics-internal"
122 ;; :pathname "src/numerics/"
123 ;; :depends-on ("packaging" "proto-objects" "cls-core")
125 ;; ((:cls-lsp-source-file "cffiglue")
126 ;; (:cls-lsp-source-file "dists"
127 ;; :depends-on ("cffiglue"))
129 ;; (:cls-lsp-source-file "matrices"
130 ;; :depends-on ("cffiglue"))
131 ;; (:cls-lsp-source-file "ladata"
132 ;; :depends-on ("cffiglue"
135 ;; :depends-on ("cffiglue"
142 ;; Dataframes and statistical structures.
145 :pathname "src/data/"
146 :depends-on ("packaging"
149 ;; "numerics-internal"
153 (:file "dataframe-array")
154 (:file "dataframe-matrixlike")
155 (:file "dataframe-listoflist")
157 (:file "data-xls-compat")
162 :pathname "src/basics/"
163 :depends-on ("packaging"
166 ;; "numerics-internal"
169 ((:cls-lsp-source-file "lsbasics")))
175 :pathname "src/describe/"
176 :depends-on ("packaging"
179 ;; "numerics-internal"
183 ((:cls-lsp-source-file "statistics")))
187 :pathname "src/visualize/"
188 :depends-on ("cls-core")
195 ;;; FIXME: OPTIMIZE USES ORIG CLS CFFI-based LIBCODE, NEED TO REPLACE WITH ALT MINIMIZERS
198 :pathname "src/numerics/"
199 :depends-on ("packaging"
202 ;; "numerics-internal"
206 ((:file "optimize")))
212 :pathname "src/stat-models/"
213 :depends-on ("packaging"
216 ;; "numerics-internal"
221 ((:file "regression")
222 ;; (:cls-lsp-source-file "nonlin"
223 ;; :depends-on ("regression"))
224 ;; (:cls-lsp-source-file "bayes"
225 ;; :depends-on ("regression"))
233 :depends-on ("packaging"
236 ;; "numerics-internal"
243 (:cls-lsp-source-file "absorbtion")
244 (:cls-lsp-source-file "diabetes")
245 (:cls-lsp-source-file "leukemia")
246 (:cls-lsp-source-file "randu")
247 (:cls-lsp-source-file "aircraft")
248 (:cls-lsp-source-file "metabolism")
249 (:cls-lsp-source-file "book")
250 (:cls-lsp-source-file "heating")
251 (:cls-lsp-source-file "oxygen")
252 (:cls-lsp-source-file "stackloss")
253 (:cls-lsp-source-file "car-prices")
254 (:cls-lsp-source-file "iris")
255 (:cls-lsp-source-file "puromycin")
256 (:cls-lsp-source-file "tutorial")))
260 :depends-on ("packaging" "proto-objects"
262 ;; "numerics-internal"
269 :pathname "src/unittests/"
270 :components ((:file "unittests")
271 (:file "unittests-lstypes" :depends-on ("unittests"))
272 (:file "unittests-specfn" :depends-on ("unittests"))
273 ;; (:file "unittests-prob" :depends-on ("unittests"))
274 (:file "unittests-proto" :depends-on ("unittests"))
275 (:file "unittests-regression" :depends-on ("unittests"))
276 (:file "unittests-listoflist" :depends-on ("unittests"))
277 (:file "unittests-arrays" :depends-on ("unittests"))
278 (:file "unittests-dataframe" :depends-on ("unittests"))))))
282 ;;; NEED TO ADD A TEST OPERATION
283 (defmethod perform ((o test-op) (c (eql (find-system :cls))))
284 (describe (lift:run-tests :suite 'lisp-stat-unittests::lisp-stat-ut)))