9ac0fde7b8a46e156f1b131a7793318b87b78cfc
[clsql.git] / clsql-base.asd
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          clsql-base.asd
6 ;;;; Purpose:       ASDF definition file for Base CLSQL
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; $Id: clsql-base.asd,v 1.14 2002/09/25 12:44:59 kevin Exp $
11 ;;;;
12 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; CLSQL users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
18
19 (in-package :asdf)
20
21 #+(or allegro lispworks cmu openmcl mcl)
22 (defsystem :clsql-base
23   :name "cl-sql-base"
24   :author "Kevin M. Rosenberg <kmr@debian.org>"
25   :version "0.9.2"
26   :maintainer "Kevin M. Rosenberg <kmr@debian.org>"
27   :licence "Lessor Lisp General Public License"
28   :description "Common Lisp SQL Base Package"
29   :long-description "cl-sql-base package provides the low-level interface for the database drivers."
30
31   :perform (load-op :after (op clsql-base)
32                     (pushnew :clsql-base cl:*features*))
33   :components
34   ((:module :base
35             :components
36             ((:file "cmucl-compat")
37              (:file "package")
38              (:file "utils" :depends-on ("package"))
39              (:file "classes" :depends-on ("package"))
40              (:file "conditions" :depends-on ("classes"))
41              (:file "db-interface" :depends-on ("conditions"))
42              (:file "initialize" :depends-on ("db-interface"))))))
43
44 #+(or allegro lispworks cmu openmcl mcl)
45 (defmethod source-file-type  ((c cl-source-file)
46                               (s (eql (find-system :clsql-base)))) 
47    "cl")
48
49 #+(or allegro lispworks cmu openmcl mcl)
50 (when (ignore-errors (find-class 'load-compiled-op))
51   (defmethod perform :after ((op load-compiled-op) (c (eql (find-system :clsql-base))))
52     (pushnew :clsql-base cl:*features*)))