X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=clsql.asd;h=d469b95de3baa112122893ddc28e82080d75e93c;hp=0d564b67fdf89de8ab01cad74831a7948531d084;hb=906d7a71b35ee1cd6d281623694bc90ced22c339;hpb=b0d8b82d162436bf2a7406b4cea489084c232a85 diff --git a/clsql.asd b/clsql.asd index 0d564b6..d469b95 100644 --- a/clsql.asd +++ b/clsql.asd @@ -3,12 +3,10 @@ ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: clsql.asd -;;;; Purpose: System definition for CLSQL-CLASSIC +;;;; Purpose: ASDF System definition for CLSQL ;;;; Authors: Marcus Pearce and Kevin M. Rosenberg ;;;; Created: March 2004 ;;;; -;;;; $Id$ -;;;; ;;;; CLSQL users are granted the rights to distribute and use this software ;;;; as governed by the terms of the Lisp Lesser GNU Public License ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. @@ -18,14 +16,15 @@ (defpackage #:clsql-system (:use #:asdf #:cl)) (in-package #:clsql-system) -#+clisp -(progn - (asdf:operate 'asdf:load-op 'cffi) - (asdf:operate 'asdf:load-op 'cffi-uffi-compat) - (asdf:defsystem uffi :depends-on (cffi-uffi-compat))) +#+(and clisp (not :clsql-cffi)) +(asdf:operate 'asdf:load-op 'clsql-cffi) ;; need to load uffi for below perform :after method (eval-when (:compile-toplevel :load-toplevel :execute) + #+:clsql-cffi + (unless (find-package 'cffi-uffi-compat) + (asdf:operate 'asdf:load-op 'cffi-uffi-compat)) + #-:clsql-cffi (unless (find-package 'uffi) (asdf:operate 'asdf:load-op 'uffi))) @@ -36,9 +35,10 @@ :licence "Lessor Lisp General Public License" :description "Common Lisp SQL Interface library" :long-description "A Common Lisp interface to SQL RDBMS based on -the Xanalys CommonSQL interface for Lispworks. It depends on the -low-level database interfaces as well as a functional and an object +the Xanalys CommonSQL interface for Lispworks. It provides low-level +database interfaces as well as a functional and an object oriented interface." + :version "6.4" :components ((:module sql :components @@ -60,7 +60,7 @@ oriented interface." ((:file "initialize") (:file "database" :depends-on ("initialize")) (:file "recording" :depends-on ("database")) - (:file "pool")) + (:file "pool" :depends-on ("database"))) :depends-on (base)) (:module syntax :pathname "" @@ -88,7 +88,8 @@ oriented interface." :pathname "" :components ((:file "generic-postgresql") (:file "generic-odbc") - (:file "sequences")) + (:file "sequences") + (:file "command-object")) :depends-on (functional)))))) @@ -99,11 +100,12 @@ oriented interface." (defmethod perform :after ((o load-op) (c (eql (find-system 'clsql)))) (let* ((init-var (uffi:getenv "CLSQLINIT")) (init-file (or (when init-var (probe-file init-var)) - (merge-pathnames - (make-pathname :name ".clsql-init" :type "lisp") - (user-homedir-pathname)) + (probe-file + (concatenate 'string + (namestring (user-homedir-pathname)) + ".clsql-init.lisp")) (probe-file "/etc/clsql-init.lisp") - #+(or mswin windows win32) + #+(or mswin windows win32 win64 mswindows) (probe-file "c:\\etc\\clsql-init.lisp")))) (when init-file (load init-file))))