dependency cleanup.
[CommonLispStat.git] / lispstat.asd
blobdf33d7cba4fbe2630dbd12234e639ad307767b88
1 ;;  -*- mode: lisp -*-
3 ;;; Copyright (c) 2005--2006, by AJ Rossini <blindglobe@gmail.com>
4 ;;; ASDF packaging for CommonLispStat
5 ;;; Provided under a BSD license.
7 ;;(asdf:oos 'asdf:load-op 'cffi)
9 (defpackage #:lispstat-system
10   (:use :asdf :common-lisp))
12 (in-package #:lispstat-system)
14 ;;; To avoid renaming everything from *.lsp to *.lisp...
15 ;;; borrowed from Cyrus Harmon's work, for example for the ch-util.
16 (defclass lispstat-lsp-source-file (cl-source-file) ())
17 (defparameter *fasl-directory*
18    (make-pathname :directory '(:relative #+sbcl "sbcl-fasl"
19                               #+openmcl "openmcl-fasl"
20                               #-(or sbcl openmcl) "fasl")))
22 (defmethod source-file-type ((c lispstat-lsp-source-file) (s module)) "lsp")
23 (defmethod asdf::output-files :around ((operation compile-op)
24                                        (c lispstat-lsp-source-file))
25   (list (merge-pathnames *fasl-directory*
26                          (compile-file-pathname (component-pathname c)))))
27 ;;; again, thanks to Cyrus for saving me time...
30 (defsystem "lispstat"
31   :version #.(with-open-file
32                  (vers (merge-pathnames "version.lisp-expr" *load-truename*))
33                (read vers))
34   :author "A.J. Rossini <blindglobe@gmail.com>"
35   :license "BSD"
36   :description "CommonLispStat (CLS): A System for Statistical Computing with Common Lisp;
37 based on CLS by Luke Tierney <luke@stat.uiowa.edu> (originally written when Luke was at CMU, apparently).
38 Last touched 1991, then in 2005--2007."
39   :serial t
40   :depends-on (:cffi :lift) ;;  :clem) not yet but soon!
41   :components ((:static-file "version" :pathname #p"version.lisp-expr")
42                (:lispstat-lsp-source-file "lsobjects")
43                (:lispstat-lsp-source-file "cffiglue")
44                (:lispstat-lsp-source-file "defsys")
45                (:lispstat-lsp-source-file "fastmap")
46                (:lispstat-lsp-source-file "lstypes")
47                (:lispstat-lsp-source-file "lsfloat")
48                (:lispstat-lsp-source-file "sequence")
50                (:lispstat-lsp-source-file "compound" 
51                                           :depends-on ("lsobjects"
52                                                        "fastmap"
53                                                        "sequence"))
54                (:lispstat-lsp-source-file "lsmacros" 
55                                           :depends-on ("compound"))
56                (:lispstat-lsp-source-file "lsmath"
57                                           :depends-on ("lsobjects"
58                                                        "lsmacros"
59                                                        "lsfloat"))
60                (:lispstat-lsp-source-file "matrices"
61                                           :depends-on ("cffiglue"
62                                                        "sequence"))
64                (:lispstat-lsp-source-file "linalg"
65                                           :depends-on ("cffiglue"
66                                                        "lsmath"
67                                                        "matrices"))
69                (:lispstat-lsp-source-file "dists"
70                                           :depends-on ("cffiglue"))
72                (:lispstat-lsp-source-file "lsbasics"
73                                           :depends-on ("lsobjects"
74                                                        "lstypes"
75                                                        "lsmacros"
76                                                        "sequence"
77                                                        "lsfloat"
78                                                        "matrices"
79                                                        "linalg"
80                                                        "dists"))
82                (:lispstat-lsp-source-file "ladata"
83                                           :depends-on ("defsys"
84                                                        "lsbasics"))
86                (:file "optimize" :depends-on ("lsobjects"
87                                               "cffiglue"
88                                               "lstypes"
89                                               "lsbasics"
90                                               "linalg" "matrices"))
92                ;; mix/match lsp vs. lisp in next 2.
93                (:file "data" :depends-on ("lsobjects"
94                                           "compound"))
95                
96                ;; Applications
97                (:lispstat-lsp-source-file "regression"
98                                           :depends-on ("lsobjects"
99                                                        "lsbasics"))
100                (:lispstat-lsp-source-file "nonlin"
101                                           :depends-on ("regression"))
102                (:lispstat-lsp-source-file "statistics"
103                                           :depends-on ("lsobjects"
104                                                        "lsmath"
105                                                        "data" ))
106                (:lispstat-lsp-source-file "bayes"
107                                           :depends-on ("lsobjects"
108                                                        "lsmath"
109                                                        "dists"))
112                (:file "ls-user" :depends-on ("lsobjects"
113                                              "lsbasics"
114                                              ;; and more!
115                                              ))
116                ))