export the right API for listoflist. Whoops!
[CommonLispStat.git] / lispstat.asd
bloba229eb40f949f05d927db7d087db69c2515d7785
1 ;;  -*- mode: lisp -*-
2 ;;; Time-stamp: <2009-04-15 08:50:46 tony>
3 ;;; Created:    <2005-05-30 17:09:47 blindglobe>
4 ;;; File:       lispstat.asd
5 ;;; Author:     AJ Rossini <blindglobe@gmail.com>
6 ;;; Copyright:  (c) 2005--2008, by AJ Rossini <blindglobe@gmail.com>
7 ;;; License:    BSD, see the top level directory file LICENSE for details.
8 ;;; Purpose:    ASDF packaging for CommonLisp Stat
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 (in-package :cl-user)
16 (defpackage :lisp-stat-config
17   (:use :common-lisp)
18   (:export *default-path*
19            *lsos-files* *basic-files* *ls-files*
20            *lispstat-home-dir*
21            *lispstat-data-dir* *lispstat-examples-dir*))
23 (in-package :lisp-stat-config)
25 (defparameter *lispstat-home-dir*
26   (directory-namestring
27    (truename (asdf:system-definition-pathname :lispstat)))
28   "Value considered \"home\" for our data")
31   (setf *lispstat-home-dir*
32       (directory-namestring (truename (asdf:system-definition-pathname
33                                        :lispstat))))
36 (macrolet ((ls-dir (root-str)
37              `(pathname (concatenate 'string
38                                      (namestring *lispstat-home-dir*) ,root-str)))
40            (ls-defdir (target-dir-var  root-str)
41              `(defvar ,target-dir-var (ls-dir ,root-str))))
43   ;; reminder of testing
44   ;;(macroexpand '(ls-defdir *lispstat-asdf-dir* "ASDF"))
45   ;;(macroexpand-1 '(ls-defdir *lispstat-asdf-dir* "ASDF"))
46   ;;(macroexpand-1 '(ls-dir "ASDF"))
48   (ls-defdir *lispstat-asdf-dir* "ASDF/")
49   (ls-defdir *lispstat-data-dir* "Data/")
50   (ls-defdir *lispstat-external-dir* "external/")
53 ;;(pushnew *lispstat-asdf-dir* asdf:*central-registry*)
56 ;; (pushnew #p"C:/Lisp/libs/" asdf-util:*source-dirs* :test #'equal) ; eg for Microsoft
58 ;;; back to our regularly scheduled work...
59 ;;; We should not need these, I think, but?
60 ;; (asdf:oos 'asdf:compile-op :cffi)            ;; FFI
61 ;; (asdf:oos 'asdf:compile-op :lift)            ;; Unit Testing 
62 ;; (asdf:oos 'asdf:load-op :cffi)            ;; FFI
63 ;; (asdf:oos 'asdf:load-op :lift)            ;; Unit Testing 
65 ;;; MAJOR HACK, FIXME!
66 ;;(load "/media/disk/Desktop/sandbox/matlisp.git/start.lisp")
68 (in-package :cl-user)
70 (defpackage #:lispstat-system
71     (:use :common-lisp :asdf))
73 (in-package #:lispstat-system)
75 ;;; To avoid renaming everything from *.lsp to *.lisp...
76 ;;; borrowed from Cyrus Harmon's work, for example for the ch-util.
77 ;;; NOT secure against serving multiple architectures/hardwares from
78 ;;; the same file system (i.e. PPC and x86 would not be
79 ;;; differentiated). 
81 (defclass lispstat-lsp-source-file (cl-source-file) ())
82 (defparameter *fasl-directory*
83    (make-pathname :directory '(:relative
84                                #+sbcl "sbcl-fasl"
85                                #+openmcl "openmcl-fasl"
86                                #+cmu "cmucl-fasl"
87                                #+clisp "clisp-fasl"
88                                #-(or sbcl openmcl clisp cmucl) "fasl"
89                                )))
92 ;;; Handle Luke's *.lsp suffix
93 (defmethod source-file-type ((c lispstat-lsp-source-file) (s module)) "lsp")
94 (defmethod asdf::output-files :around ((operation compile-op)
95                                        (c lispstat-lsp-source-file))
96   (list (merge-pathnames *fasl-directory*
97                          (compile-file-pathname (component-pathname c)))))
98 ;;; again, thanks to Cyrus for saving me time...
101 (defsystem "lispstat"
102   :version #.(with-open-file
103                  (vers (merge-pathnames "version.lisp-expr" *load-truename*))
104                (read vers))
105   :author "A.J. Rossini <blindglobe@gmail.com>"
106   :license "BSD"
107   :description "CommonLispStat (CLS): A System for Statistical
108   Computing with Common Lisp; based on CLS alpha1 by Luke Tierney
109   <luke@stat.uiowa.edu> (apparently originally written when Luke was
110   at CMU, on leave somewhere?).   Last touched by him in 1991, then in
111   2005--2009." 
112   :serial t
113   :depends-on (:cffi
114                :cl-plplot  ;; FIXME: conditionally load only, not always simple to install?
115                :lisp-matrix
116                :lift)
117   :components ((:static-file "version" :pathname #p"version.lisp-expr")
118                (:static-file "LICENSE")
119                (:static-file "README")
121                ;; reading in DSV files for data access
122                (:module 
123                 "csv-data"
124                 :pathname "src/data/"
125                 :components
126                 ((:file "test-cybertiggyr")
127                  (:file "dsv-cybertiggyr" :depends-on ( "test-cybertiggyr"))))
128                
129                (:module
130                 "packaging"
131                 :pathname #p"src/"
132                 :depends-on ("csv-data")
133                 :components
134                 ((:file "packages")))
136                (:module
137                 "proto-objects"
138                 :pathname "src/objsys/"
139                 :serial t
140                 :depends-on ("packaging")
141                 :components
142                 ((:lispstat-lsp-source-file "lsobjects")))
144                (:module "lispstat-core"
145                         :pathname "src/basics/"
146                         :serial t
147                         :depends-on ("packaging" "proto-objects")
148                         :components
149                         (; (:lispstat-lsp-source-file "defsys")
150                          (:lispstat-lsp-source-file "lstypes")
151                          (:lispstat-lsp-source-file "lsfloat")
152                          
153                          (:lispstat-lsp-source-file "compound")
154                          (:lispstat-lsp-source-file "lsmacros" 
155                                                     :depends-on ("compound"))
156                          
157                          (:lispstat-lsp-source-file "lsmath"
158                                                     :depends-on ("compound"
159                                                                  "lsmacros"
160                                                                  "lsfloat"))))
162                (:module
163                 "numerics-internal"
164                 :pathname "src/numerics/"
165                 :depends-on ("packaging" "proto-objects" "lispstat-core")
166                 :components
167                 ((:lispstat-lsp-source-file "cffiglue")
168                  (:lispstat-lsp-source-file "dists"
169                                             :depends-on ("cffiglue"))
171                  (:lispstat-lsp-source-file "matrices"
172                                             :depends-on ("cffiglue"))
173                  (:lispstat-lsp-source-file "ladata"
174                                             :depends-on ("cffiglue"
175                                                          "matrices"))
176                  (:file "linalg"
177                         :depends-on ("cffiglue"
178                                      "matrices"
179                                      "ladata"))
181                  ))
184                ;; prototype and CLOS approaches.
185                (:module
186                 "stat-data"
187                 :pathname "src/data/"
188                 :depends-on ("packaging"
189                              "proto-objects"
190                              "lispstat-core"
191                              "numerics-internal")
192                 :components
193                 ((:file "dataframe")
194                  (:file "data")
195                  (:file "listoflist")))
197                (:module
198                 "lispstat-basics"
199                 :pathname "src/basics/"
200                 :depends-on ("packaging"
201                              "proto-objects"
202                              "lispstat-core"
203                              "numerics-internal"
204                              "stat-data")
205                 :components
206                 ((:lispstat-lsp-source-file "lsbasics")))
209                
210                (:module
211                 "descriptives"
212                 :pathname "src/describe/"
213                 :depends-on ("packaging"
214                              "proto-objects"
215                              "lispstat-core"
216                              "numerics-internal"
217                              "stat-data"
218                              "lispstat-basics")
219                 :components
220                 ((:lispstat-lsp-source-file "statistics")))
222                (:module
223                 "visualize"
224                 :pathname "src/visualize/"
225                 :depends-on ("lispstat-core")
226                 :components
227                 ((:file "plot")))
229                (:module
230                 "optimization"
231                 :pathname "src/numerics/"
232                 :depends-on ("packaging"
233                              "proto-objects"
234                              "lispstat-core"
235                              "numerics-internal"
236                              "stat-data"
237                              "lispstat-basics")
238                 :components
239                 ((:file "optimize")))
240                  
241                
242                ;; Applications
243                (:module
244                 "stat-models"
245                 :pathname "src/stat-models/"
246                 :depends-on ("packaging"
247                              "proto-objects"
248                              "lispstat-core"
249                              "numerics-internal"
250                              "lispstat-basics"
251                              "descriptives"
252                              "optimization")
253                 :components
254                 ((:file "regression")
255                  ;; (:lispstat-lsp-source-file "nonlin"
256                  ;;       :depends-on ("regression"))
257                  ;; (:lispstat-lsp-source-file "bayes"
258                  ;;       :depends-on ("regression"))
259                  ))
261                ;; Applications
262                (:module
263                 "example-data"
264                 :pathname "Data/"
265                 :depends-on ("packaging"
266                              "proto-objects"
267                              "lispstat-core"
268                              "numerics-internal"
269                              "lispstat-basics"
270                              "descriptives"
271                              "optimization")
272                 :components
273                 ((:file "examples")
274                  (:lispstat-lsp-source-file "absorbtion")
275                  (:lispstat-lsp-source-file "diabetes")
276                  (:lispstat-lsp-source-file "leukemia")
277                  (:lispstat-lsp-source-file "randu")
278                  (:lispstat-lsp-source-file "aircraft")
279                  (:lispstat-lsp-source-file "metabolism")
280                  (:lispstat-lsp-source-file "book")
281                  (:lispstat-lsp-source-file "heating")
282                  (:lispstat-lsp-source-file "oxygen")
283                  (:lispstat-lsp-source-file "stackloss") 
284                  (:lispstat-lsp-source-file "car-prices")
285                  (:lispstat-lsp-source-file "iris")
286                  (:lispstat-lsp-source-file "puromycin")
287                  (:lispstat-lsp-source-file "tutorial")))
289                (:module
290                  "lisp-stat-unittest"
291                 :depends-on  ("packaging" "proto-objects"
292                               "lispstat-core"
293                               "numerics-internal" 
294                               "stat-data"
295                               "lispstat-basics"
296                               "descriptives"
297                               "optimization"
298                               "stat-models"
299                               "example-data")
300                  :pathname "src/unittests/"
301                  :components ((:file "unittests")
302                               (:file "unittests-lstypes" :depends-on ("unittests"))
303                               (:file "unittests-specfn" :depends-on ("unittests"))
304                               (:file "unittests-prob" :depends-on ("unittests"))
305                               (:file "unittests-proto" :depends-on ("unittests"))
306                               (:file "unittests-regression" :depends-on ("unittests"))
307                               (:file "unittests-listoflist" :depends-on ("unittests"))
308                               (:file "unittests-arrays" :depends-on ("unittests"))
309                               (:file "unittests-dataframe" :depends-on ("unittests"))))))