cleanup; reduce bitrot
[cl-graph.git] / cl-graph.asd
1 ;;; -*- Mode: Lisp; package: cl-user; Syntax: Common-lisp; Base: 10 -*-
2
3 (in-package #:common-lisp-user)
4 (defpackage #:cl-graph-system (:use #:cl #:asdf))
5 (in-package #:cl-graph-system)
6
7 (unless (find-system 'asdf-system-connections nil)
8   (warn "The CL-Graph system would enjoy having asdf-system-connections 
9 around. See 
10 http://www.cliki.net/asdf-system-connections for details and download
11 instructions."))
12 (when (find-system 'asdf-system-connections nil)
13   (operate 'load-op 'asdf-system-connections))
14
15 (defsystem cl-graph
16   :version "0.8.4"
17   :author "Gary Warren King <gwking@metabang.com>"
18   :maintainer "Gary Warren King <gwking@metabang.com>"
19   :licence "MIT Style License"
20   :description "Graph manipulation utilities for Common Lisp"
21   :components ((:static-file "COPYING")
22                (:module 
23                 "dev"
24                 :components 
25                 ((:file "package")
26                  (:file "api"
27                         :depends-on ("package"))
28                  (:file "macros"
29                         :depends-on ("package"))
30                  (:file "graph"
31                         :depends-on ("api" "macros"))
32                  (:file "graph-container"
33                         :depends-on ("graph"))
34                  (:file "graph-matrix"
35                         :depends-on ("graph"))
36                  (:file "graph-metrics"
37                         :depends-on ("graph"))
38                  (:file "graph-algorithms"
39                         :depends-on ("graph"))
40                                      
41                  (:static-file "notes.text")
42
43                  (:module "graphviz" :depends-on ("graph")
44                           :components ((:file "graphviz-support")))))
45                (:module 
46                 "website"
47                 :components 
48                 ((:module "source"
49                           :components ((:static-file "index.md"))))))
50   :in-order-to ((test-op (load-op :cl-graph-test)))
51   :perform (test-op :after (op c)
52                     (funcall
53                       (intern (symbol-name '#:run-tests) :lift)
54                       :config :generic))
55   :depends-on (:metatilities 
56                :cl-containers
57                :metabang-bind
58                :cl-mathstats
59                ;; makes ASDF-Install get this automatically
60                :asdf-system-connections
61                ))
62
63 (defmethod operation-done-p 
64            ((o test-op) (c (eql (find-system 'cl-graph))))
65   (values nil))
66
67 #+asdf-system-connections
68 (asdf:defsystem-connection cl-graph-and-cl-variates
69   :requires (cl-graph cl-variates)
70   :components ((:module 
71                 "dev"
72                 :components
73                 ((:file "graph-and-variates")
74                  (:file "graph-generation"
75                         :depends-on ("graph-and-variates"))))))
76
77 #+asdf-system-connections
78 (asdf:defsystem-connection cl-graph-and-cl-graphviz
79   :requires (cl-graph cl-graphviz)
80   :components ((:module 
81                 "dev"
82                 :components
83                 ((:module "graphviz"
84                           :components
85                           ((:file "graphviz-support-optional")))))))
86
87 #+asdf-system-connections
88 (asdf:defsystem-connection cl-graph-and-metacopy
89   :requires (cl-graph metacopy)
90   :components ((:module 
91                 "dev"
92                 :components ((:file "copying")))))