merged from ansiClib
[CommonLispStat.git] / lispstat.asd
blobd5278ed0a4b33261639af742adde8202f0a89b2e
1 ;;  -*- mode: lisp -*-
3 ;;; Copyright (c) 2005--2006, by AJ Rossini <blindglobe@gmail.com>
4 ;;; ASDF packaging for CommonLispStat
6 ;;(asdf:oos 'asdf:load-op 'cffi)
9 (defpackage #:lispstat-system
10   (:use :asdf :common-lisp))
12 (in-package #:lispstat-system)
15 ;;; To avoid renaming everything from *.lsp to *.lisp...
16 ;;; borrowed from Cyrus Harmon's work, for example for the ch-util.
17 (defclass lispstat-lsp-source-file (cl-source-file) ())
18 (defparameter *fasl-directory*
19    (make-pathname :directory '(:relative #+sbcl "sbcl-fasl"
20                               #+openmcl "openmcl-fasl"
21                               #-(or sbcl openmcl) "fasl")))
23 (defmethod source-file-type ((c lispstat-lsp-source-file) (s module)) "lsp")
24 (defmethod asdf::output-files :around ((operation compile-op)
25                                        (c lispstat-lsp-source-file))
26   (list (merge-pathnames *fasl-directory*
27                          (compile-file-pathname (component-pathname c)))))
28 ;;; again, thanks to Cyrus for saving me time...
32 (defsystem "lispstat"
33   :version #.(with-open-file
34                  (vers (merge-pathnames "version.lisp-expr" *load-truename*))
35                (read vers))
36   :author "A.J. Rossini <blindglobe@gmail.com>"
37   :license "BSD"
38   :description "CommonLispStat (CLS): A System for Statistical Computing with Common Lisp;
39 based on CLS by Luke Tierney <luke@stat.uiowa.edu> (originally written when Luke was at CMU, apparently).
40 Last touched 1991, then in 2005--2007."
42   :depends-on (:cffi )
43   
44   ;; FFI systems:
45   ;; kclglue.lsp  kclpatch.lsp exclglue.lsp mclglue.lsp 
47   :components ((:static-file "version" :pathname #p"version.lisp-expr")
48                (:lispstat-lsp-source-file "lsobjects")
49                (:lispstat-lsp-source-file "fastmap")
50                ;; ls-basisc
51                (:lispstat-lsp-source-file "compound" 
52                                           :depends-on ("lsobjects"
53                                                        "fastmap"))
54                (:lispstat-lsp-source-file "sequence"
55                                           :depends-on ("compound"))
56                (:lispstat-lsp-source-file "lsmacros" 
57                                           :depends-on ("compound"))
59                (:lispstat-lsp-source-file "lsfloat")
60 ;;                                        :depends-on ("lsbasics")) ;; in lisp-stat-basics
61                (:lispstat-lsp-source-file "lsmath"
62                                           :depends-on ("lsbasics"
63                                                        "lsmacros"
64                                                        "lsfloat"))
65                (:lispstat-lsp-source-file "lsbasics"
66                                           :depends-on ("lsobjects"
67                                                        "lsmacros"
68                                                        "sequence"
69                                                        "lsfloat")) 
70                (:lispstat-lsp-source-file "dists"
71                                           :depends-on ("lsbasics"))
72                (:lispstat-lsp-source-file "matrices"
73                                           :depends-on ("lsbasics"))
74                (:lispstat-lsp-source-file "ladata"
75                                           :depends-on ("lsbasics")) ;; in lisp-stat-basics
76                (:lispstat-lsp-source-file "linalg"
77                                           :depends-on ("ladata"
78                                                        "matrices")) ;; in lisp-stat-basics
80                
81                ;; Applications
82                (:lispstat-lsp-source-file "regression"
83                                           :depends-on ("lsbasics"
84                                                        "lsobjects"))
85                (:lispstat-lsp-source-file "nonlin"
86                                           :depends-on ("regression"))
87                (:lispstat-lsp-source-file "statistics"
88                                           :depends-on ("lsobjects"))
89                (:lispstat-lsp-source-file "maximize"
90                                           :depends-on ("lsobjects"))
91                (:lispstat-lsp-source-file "bayes"
92                                           :depends-on ("lsobjects"
93                                                        "dists")) ; in lisp-stat
94                
95                ;;(:lispstat-lsp-source-file "numlib") ;; do we need this?
96                (:lispstat-lsp-source-file "defsys")
97                (:lispstat-lsp-source-file "lstoplevel")
99                (:lispstat-lsp-source-file "lspackages"
100                                           :depends-on ("lstoplevel"
101                                                        "fastmap"
102                                                        "lsobjects"
103                                                        "lsmath"
104                                                        "lsfloat"))))