climacs.asd 2.54 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
;;; -*- Mode: Lisp; Package: COMMON-LISP-USER -*-

;;;  (c) copyright 2004 by
;;;           Robert Strandh (strandh@labri.u-bordeaux.fr)

;;; This library is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU Library General Public
;;; License as published by the Free Software Foundation; either
;;; version 2 of the License, or (at your option) any later version.
;;;
;;; This library is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;;; Library General Public License for more details.
;;;
;;; You should have received a copy of the GNU Library General Public
;;; License along with this library; if not, write to the
;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;;; Boston, MA  02111-1307  USA.

;;; ASDF system definition for Climacs.

(in-package :common-lisp-user)

(defparameter *climacs-directory* (directory-namestring *load-truename*))

(defmacro climacs-defsystem ((module &key depends-on) &rest components)
  `(progn
    #+mk-defsystem
    (mk:defsystem ,module
	:source-pathname *climacs-directory*
	,@(and depends-on `(:depends-on ,depends-on))
	:components (:serial ,@components))
    #+asdf
    (asdf:defsystem ,module
	,@(and depends-on `(:depends-on ,depends-on))
	:serial t
	:components (,@(loop for c in components
			     for p = (merge-pathnames
				      (parse-namestring c)
				      (make-pathname :type "lisp"
						     :defaults *climacs-directory*))
			     collect `(:file ,(pathname-name p) :pathname ,p))))))

45
(climacs-defsystem (:climacs :depends-on (:clim-clx :flexichain))
46 47 48
   "Persistent/binseq-package"
   "Persistent/binseq"
   "Persistent/obinseq"
49
   "translate"
50 51
   "packages"
   "buffer"
52
   "Persistent/persistent-buffer"
53
   "base"
54
   "io"
strandh's avatar
strandh committed
55
   "abbrev"
56
   "syntax"
57
   "text-syntax"
58
   "cl-syntax"
59
   "kill-ring"
Robert Strandh's avatar
Robert Strandh committed
60
   "undo"
61
   "delegating-buffer"
62
   "pane"
63
   "html-syntax"
64 65 66
   "gui"
   ;;---- optional ----
   "testing/rt"
67
   "buffer-test"
Aleksandar Bakic's avatar
Aleksandar Bakic committed
68
   "base-test")
69 70 71 72 73

#+asdf
(defmethod asdf:perform :around ((o asdf:compile-op)
                                 (c (eql (asdf:find-component (asdf:find-system :climacs) "skiplist-package"))))
  (cond
74
    ((null (probe-file (first (asdf::input-files o c))))
75 76 77 78 79 80
     (cerror "Retry loading climacs."
             "~@<You need to download & install Flexichain ~
               separately! See the file INSTALL in the Climacs distribution ~
               for instructions.~@:>" nil)
     (asdf:perform o c))
    (t (call-next-method o c))))