forked from franzinc/aserve
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzaserve.asd
executable file
·84 lines (68 loc) · 2.23 KB
/
zaserve.asd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;;; ASD file contributed by james anderson <james.anderson@setf.de>
(in-package :cl-user)
(defvar *loadswitch* :compile-if-needed)
(defparameter *aserve-root* (directory-namestring *load-pathname*))
#+allegro
(defpackage #:acl-reader (:export #:cl-file))
#+allegro
(defclass acl-reader:cl-file (asdf:cl-source-file)
((type :initform "cl")))
#+allegro
(asdf:defsystem :zaserve
:name "AllegroServe (portable)"
:author "John K. Foderaro"
:version "1.3.65"
:licence "LLGPL"
:description "Trivial shim to load built-in aserve when running on Allegro CL"
:components ((acl-reader:cl-file "require-original-aserve")))
#-allegro
(defun check-platform-compatibilty ()
(unless (or (member :ccl *features*)
(member :sbcl *features*))
(error "
SORRY:
=====
This version of AllegroServe, which uses the `zacl' compatibility
layer (instead of this old acl-compat), is not currently supported on
~a. Please consider contributing, or requesting, a port of zacl for ~a.
"
(lisp-implementation-type) (lisp-implementation-type))))
#-(or zacl allegro)
(defpackage :zacl-reader (:export #:cl-file))
#-allegro
(asdf:defsystem
:zaserve
:depends-on (:zacl)
:defsystem-depends-on (:zacl)
:version "1.3.65"
:name "AllegroServe"
:author "John K. Foderaro"
:licence "LLGPL"
:components
;; this list is in load.cl as well... keep in sync
((:module "htmlgen" :components ((zacl-reader:cl-file "htmlgen")
(:static-file "ChangeLog")))
(zacl-reader:cl-file "packages")
(zacl-reader:cl-file "macs")
(zacl-reader:cl-file "queue")
(zacl-reader:cl-file "main")
(zacl-reader:cl-file "headers")
(zacl-reader:cl-file "parse")
(zacl-reader:cl-file "decode")
(zacl-reader:cl-file "publish")
(zacl-reader:cl-file "authorize")
(zacl-reader:cl-file "log" )
(zacl-reader:cl-file "cache")
(zacl-reader:cl-file "client")
(zacl-reader:cl-file "proxy")
(zacl-reader:cl-file "cgi")
(zacl-reader:cl-file "chunker")
#+include-playback (zacl-reader:cl-file "playback")
(:static-file "README.md")
(:static-file "ChangeLog")
(:static-file "license-lgpl.txt")
(:static-file "LICENSE")
(:static-file "load"))
:perform (asdf:load-op :before (op zaserve)
(check-platform-compatibilty))
:serial t)