X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=umlisp.asd;h=bc97895af25f5152d42fd18066799a1c63848518;hb=9b9c48233072a8f64c9677d9b92b5eb956f4079d;hp=db42aed0eeb920764dc07d123d35cdd237e4fd5f;hpb=188873f068b0c53febe4ee0ededbc755fce4869d;p=umlisp.git diff --git a/umlisp.asd b/umlisp.asd index db42aed..bc97895 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") @@ -36,7 +40,20 @@ (:file "composite" :depends-on ("sql-classes"))) :depends-on (clsql clsql-postgresql-socket 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)))) +