X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=umlisp.asd;h=44aa906dffbc12ad96fe5e3370f4aafe496aa289;hb=3624cc56e888df9ff9398810dc2b404cb0a1ce79;hp=db42aed0eeb920764dc07d123d35cdd237e4fd5f;hpb=188873f068b0c53febe4ee0ededbc755fce4869d;p=umlisp.git diff --git a/umlisp.asd b/umlisp.asd index db42aed..44aa906 100644 --- a/umlisp.asd +++ b/umlisp.asd @@ -10,7 +10,7 @@ ;;;; $Id$ ;;;; ;;;; This file, part of UMLisp, is -;;;; Copyright (c) 2000-2004 by Kevin M. Rosenberg, M.D. +;;;; Copyright (c) 2000-2006 by Kevin M. Rosenberg, M.D. ;;;; ;;;; UMLisp users are granted the rights to distribute and use this software ;;;; as governed by the terms of the GNU General Public License. @@ -19,7 +19,11 @@ (defpackage #:umlisp-system (:use #:asdf #:cl)) (in-package #:umlisp-system) -#+(or allegro lispworks cmu sbcl openmcl scl) +;; need to load uffi for below perform :after method +(eval-when (:compile-toplevel :load-toplevel :execute) + (unless (find-package 'uffi) + (asdf:operate 'asdf:load-op 'uffi))) + (defsystem umlisp :components ((:file "package") @@ -34,9 +38,22 @@ (:file "classes" :depends-on ("sql-classes")) (:file "class-support" :depends-on ("classes")) (:file "composite" :depends-on ("sql-classes"))) - :depends-on (clsql clsql-postgresql-socket kmrcl hyperobject)) + :depends-on (clsql clsql-mysql kmrcl hyperobject)) -#+(or allegro lispworks cmu sbcl openmcl scl) (defmethod perform ((o test-op) (c (eql (find-system 'umlisp)))) (operate 'load-op 'umlisp-tests) (operate 'test-op 'umlisp-tests :force t)) + +(defmethod perform :after ((o load-op) (c (eql (find-system 'umlisp)))) + (let* ((init-var (uffi:getenv "UMLISPRC")) + (init-file (or (when init-var (probe-file init-var)) + (probe-file + (merge-pathnames + (make-pathname :name ".umlisprc") + (user-homedir-pathname))) + #+(or mswin windows win32) + (probe-file "c:\\etc\\umlisp-init.lisp")))) + (when init-file + (format t "loading umlisp init file ~A~%" init-file) + (load init-file)))) +