pg.asd 1.35 KB
Newer Older
Eric Marsden's avatar
Eric Marsden committed
1 2 3
;;; -*- Mode: lisp -*-
;;

4 5 6
(defpackage #:pg-system (:use #:asdf #:cl))
(in-package #:pg-system)

Eric Marsden's avatar
Eric Marsden committed
7 8 9 10

(defclass pg-component (cl-source-file)
  ())

11 12
;; For CMUCL, ensure that the crypt library is loaded before
;; attempting to load the code. 
Eric Marsden's avatar
Eric Marsden committed
13 14
#+cmu
(defmethod perform :before ((o load-op) (c pg-component))
15
  (ext:load-foreign "/usr/lib/libcrypt.so"))
Eric Marsden's avatar
Eric Marsden committed
16 17 18 19

(defsystem :pg
    :name "Socket-level PostgreSQL interface"
    :author "Eric Marsden"
20
    :version "0.24"
21 22 23 24
    :depends-on (
              #+lispworks "comm"
              #+cormanlisp :sockets
              #+sbcl :sb-bsd-sockets
25
	      #+sbcl :sb-rotate-byte
26
              #+(and mcl (not openmcl)) "OPENTRANSPORT")
27 28
    :components ((:file "md5")
                 (:file "defpackage" :depends-on ("md5"))
Eric Marsden's avatar
Eric Marsden committed
29
                 (:pg-component "sysdep" :depends-on ("defpackage" "md5"))
Eric Marsden's avatar
Eric Marsden committed
30 31 32
                 (:file "meta-queries" :depends-on ("defpackage"))
                 (:file "parsers" :depends-on ("defpackage"))
                 (:file "utility" :depends-on ("defpackage"))
33
                 (:file "lowlevel" :depends-on ("defpackage"))
34
                 (:file "pg" :depends-on ("sysdep" "parsers"))
Eric Marsden's avatar
Eric Marsden committed
35 36 37
                 (:file "large-object" :depends-on ("pg"))
                 (:file "v2-protocol" :depends-on ("pg" "large-object" "utility"))
                 (:file "v3-protocol" :depends-on ("pg" "large-object" "utility"))))
Eric Marsden's avatar
Eric Marsden committed
38

39