r2572: Auto commit for Debian build
[uffi.git] / uffi.asd
index 1fc30bc1cf55ae98936c0ba19d95af95b62ed7b5..a170bde945566bcd4dad7faeb14c82378ea79d1c 100644 (file)
--- a/uffi.asd
+++ b/uffi.asd
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: uffi.asd,v 1.4 2002/08/23 19:21:54 kevin Exp $
+;;;; $Id: uffi.asd,v 1.8 2002/09/06 11:00:49 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -17,7 +17,7 @@
 ;;;; *************************************************************************
 
 (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
-(in-package :cl-user)
+(in-package :asdf)
 
 ;; For use with non-Common Lisp Controller installations
 #-common-lisp-controller
                    :device (pathname-device *load-truename*)
                    :directory (pathname-directory *load-truename*)))))
 
-(defconstant +clsql-logical-host+
-  #+common-lisp-controller "cl-library"
-  #-common-lisp-controller "clsql"
-  "Logical hostname for loading system")
-
-(in-package :asdf)
-
-(defclass uffi-cl-source-file (cl-source-file) ())
-(defmethod source-file-type ((c uffi-cl-source-file) (s module)) 
-  "cl")
+(eval-when (:compile-toplevel :load-toplevel :execute)
+  (defconstant +uffi-logical-host+
+    #+common-lisp-controller "cl-library"
+    #-common-lisp-controller "uffi"
+    "Logical hostname for loading system"))
 
 (defsystem uffi
   :name "cl-uffi"
@@ -53,8 +48,8 @@
   
   :default-component-class uffi-cl-source-file
   :pathname 
-  #-mcl #.(format nil "~A:uffi;" cl-user:+clsql-logical-host+)
-  #+mcl  #.(format nil "~A:uffi;mcl;" cl-user:+clsql-logical-host+)
+  #-mcl #.(format nil "~A:uffi;" +uffi-logical-host+)
+  #+mcl #.(format nil "~A:uffi;mcl;" +uffi-logical-host+)
   :perform (load-op :after (op uffi)
                    (pushnew :uffi cl:*features*))
   :components 
@@ -67,3 +62,7 @@
    (:file "libraries" :depends-on ("package")))
   )
 
+
+(defmethod source-file-type  ((c cl-source-file) (s (eql (find-system 'uffi)))) 
+   "cl")
+