removed unused infrastructure.
[CommonLispStat.git] / cls.asd
blobd839593e4306c60e4a2c40513143b8cf9b3f2fc2
1 ;;  -*- mode: lisp -*-
2 ;;; Time-stamp: <2010-02-09 08:33:51 tony>
3 ;;; Created:    <2005-05-30 17:09:47 blindglobe>
4 ;;; File:       cls.asd
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")))
17 (in-package :cl-user)
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
31 ;;; differentiated). 
33 (defclass cls-lsp-source-file (cl-source-file) ())
34 (defparameter *fasl-directory*
35    (make-pathname :directory '(:relative
36                                #+sbcl "fasl-sbcl"
37                                #+openmcl "fasl-ccl"
38                                #+openmcl "fasl-ccl"
39                                #+cmu "fasl-cmucl"
40                                #+clisp "fasl-clisp"
41                                #-(or sbcl openmcl clisp cmucl) "fasl"
42                                )))
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...
54 (defsystem "cls"
55   :version #.(with-open-file
56                  (vers (merge-pathnames "version.lisp-expr" *load-truename*))
57                (read vers))
58   :author "A.J. Rossini <blindglobe@gmail.com>"
59   :license "BSD"
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."
65   :serial t
66   :depends-on (:cffi
67                :xarray
68                :lisp-matrix ; on fnv, cl-blapack, ffa
69                :listoflist
70                :lift
71                :rsm-string
72                ;;    :cl-cairo2  :cl-2d
73                )
74   :components ((:static-file "version" :pathname #p"version.lisp-expr")
75                (:static-file "LICENSE.mit")
76                (:static-file "README")
78                (:module
79                 "packaging"
80                 :pathname #p"src/"
81                 :components
82                 ((:file "packages")
83                  (:file "config")))
85                (:module
86                 "proto-objects"
87                 :pathname "src/objsys/"
88                 :serial t
89                 :depends-on ("packaging")
90                 :components
91                 ((:cls-lsp-source-file "lsobjects")))
93                (:module "cls-core"
94                         :pathname "src/basics/"
95                         :serial t
96                         :depends-on ("packaging" "proto-objects")
97                         :components
98                         ((:cls-lsp-source-file "lstypes")
99                          (:cls-lsp-source-file "lsfloat")
100                          
101                          (:cls-lsp-source-file "compound")
102                          (:cls-lsp-source-file "lsmacros" 
103                                                     :depends-on ("compound"))
104                          
105                          (:cls-lsp-source-file "lsmath"
106                                                     :depends-on ("compound"
107                                                                  "lsmacros"
108                                                                  "lsfloat"))))
110                (:module
111                 "numerics-internal"
112                 :pathname "src/numerics/"
113                 :depends-on ("packaging" "proto-objects" "cls-core")
114                 :components
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"
123                                                          "matrices"))
124                  (:file "linalg"
125                         :depends-on ("cffiglue"
126                                      "matrices"
127                                      "ladata"))
129                  ))
132                ;; Dataframes and statistical structures.
133                (:module
134                 "stat-data"
135                 :pathname "src/data/"
136                 :depends-on ("packaging"
137                              "proto-objects"
138                              "cls-core"
139                              "numerics-internal")
140                 :components
141                 ((:file "dataframe")
142                  (:file "dataframe-array")
143                  (:file "dataframe-matrixlike")
144                  (:file "dataframe-listoflist")
145                  (:file "data")
146                  (:file "data-xls-compat")
147                  (:file "import")))
149                (:module
150                 "cls-basics"
151                 :pathname "src/basics/"
152                 :depends-on ("packaging"
153                              "proto-objects"
154                              "cls-core"
155                              "numerics-internal"
156                              "stat-data")
157                 :components
158                 ((:cls-lsp-source-file "lsbasics")))
161                
162                (:module
163                 "descriptives"
164                 :pathname "src/describe/"
165                 :depends-on ("packaging"
166                              "proto-objects"
167                              "cls-core"
168                              "numerics-internal"
169                              "stat-data"
170                              "cls-basics")
171                 :components
172                 ((:cls-lsp-source-file "statistics")))
174                (:module
175                 "visualize"
176                 :pathname "src/visualize/"
177                 :depends-on ("cls-core")
178                 :components
179                 ((:file "plot")))
181                (:module
182                 "optimization"
183                 :pathname "src/numerics/"
184                 :depends-on ("packaging"
185                              "proto-objects"
186                              "cls-core"
187                              "numerics-internal"
188                              "stat-data"
189                              "cls-basics")
190                 :components
191                 ((:file "optimize")))
192                  
193                
194                ;; Applications
195                (:module
196                 "stat-models"
197                 :pathname "src/stat-models/"
198                 :depends-on ("packaging"
199                              "proto-objects"
200                              "cls-core"
201                              "numerics-internal"
202                              "cls-basics"
203                              "descriptives"
204                              "optimization")
205                 :components
206                 ((:file "regression")
207                  ;; (:cls-lsp-source-file "nonlin"
208                  ;;       :depends-on ("regression"))
209                  ;; (:cls-lsp-source-file "bayes"
210                  ;;       :depends-on ("regression"))
211                  ))
213                ;; Applications
214                (:module
215                 "example-data"
216                 :pathname "Data/"
217                 :depends-on ("packaging"
218                              "proto-objects"
219                              "cls-core"
220                              "numerics-internal"
221                              "cls-basics"
222                              "descriptives"
223                              "optimization")
224                 :components
225                 ((:file "examples")
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")))
241                (:module
242                  "lisp-stat-unittest"
243                 :depends-on  ("packaging" "proto-objects"
244                               "cls-core"
245                               "numerics-internal" 
246                               "stat-data"
247                               "cls-basics"
248                               "descriptives"
249                               "optimization"
250                               "stat-models"
251                               "example-data")
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)))