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...
31 :version #.(with-open-file
32 (vers (merge-pathnames "version.lisp-expr" *load-truename*))
34 :author "A.J. Rossini <blindglobe@gmail.com>"
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."
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 "fastmap")
45 (:lispstat-lsp-source-file "lstypes")
46 (:lispstat-lsp-source-file "lsfloat")
47 (:lispstat-lsp-source-file "sequence")
49 (:lispstat-lsp-source-file "compound"
50 :depends-on ("lsobjects"
53 (:lispstat-lsp-source-file "lsmacros"
54 :depends-on ("compound"))
55 (:lispstat-lsp-source-file "lsmath"
56 :depends-on ("lsobjects"
59 (:lispstat-lsp-source-file "matrices"
60 :depends-on ("cffiglue"
63 (:lispstat-lsp-source-file "linalg"
64 :depends-on ("cffiglue"
68 (:lispstat-lsp-source-file "dists"
69 :depends-on ("cffiglue"))
71 (:lispstat-lsp-source-file "lsbasics"
72 :depends-on ("lsobjects"
81 (:lispstat-lsp-source-file "ladata"
82 :depends-on ("lsbasics"))
84 (:file "optimize" :depends-on ("lsobjects"
90 ;; mix/match lsp vs. lisp in next 2.
91 (:file "data" :depends-on ("lsobjects"
95 (:lispstat-lsp-source-file "regression"
96 :depends-on ("lsobjects"
98 (:lispstat-lsp-source-file "nonlin"
99 :depends-on ("regression"))
100 (:lispstat-lsp-source-file "statistics"
101 :depends-on ("lsobjects"
104 (:lispstat-lsp-source-file "bayes"
105 :depends-on ("lsobjects"
110 (:file "ls-user" :depends-on ("lsobjects"