;;; -*- Lisp -*- (defpackage :geiriadur-system (:use #:asdf #:cl)) (in-package :geiriadur-system) ; Machinery for automatic IDL compilation via ASDF ; Unfortunately, CLORB's IDL compiler works rather strangely in CLISP ; and in Clozure CL since 1.7 :( #| #-clisp (eval-when (:compile-toplevel :load-toplevel :execute) (unless (find-package 'clorb) (asdf:operate 'asdf:load-op 'clorb))) #-clisp (defclass idl-file (source-file) ()) #-clisp (defmethod source-file-type ((c idl-file) (s module)) "idl") #-clisp (defmethod perform ((o compile-op) (c idl-file)) (unless (corba:idl (component-pathname c) :eval nil :output (car (output-files o c))) (error 'compile-error :component c :operation o))) #-clisp (defmethod perform ((operation load-op) (c idl-file)) nil) #-clisp (defmethod output-files ((operation compile-op) (c idl-file)) (list (merge-pathnames (make-pathname :type "lisp" :name (format nil "~a-ss" (pathname-name (component-pathname c)))) (component-pathname c)))) |# (defsystem geiriadur :depends-on (clorb pg coeden md5 cl-ppcre drakma closure-html cxml-stp xpath aspellisp) :name "Geiriadur" :author "Dmitri Hrapof " :maintainer "Dmitri Hrapof " :licence "GPL" :description "Dictionary engine" :components ((:file "cyffredin") (:file "cronfa-generic" :depends-on ("cyffredin")) (:file "cronfa-pg" :depends-on ("cronfa-generic")) #| #-clisp (:idl-file "dictionary") #-clisp (:file "dictionary-ss" :depends-on ("dictionary")) #+clisp (:file "dictionary-ss") |# (:file "dictionary-ss") (:file "utf8-unmarshal" :depends-on ("dictionary-ss")) (:file "geiriadur" :depends-on ("cronfa-pg" "utf8-unmarshal")) (:file "gweithdy" :depends-on ("geiriadur")) (:file "cynaniad" :depends-on ("cyffredin"))))