X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fasdf-install%2Fasdf-install.asd;h=d36609ad1ad1b25e486146e83ff2d439d426e3f2;hb=daba25be05dd7b4089ed382368f9ff666d16c6fb;hp=cdcec0a910ab02d6521a732d56fcf804c3ce5540;hpb=08e218c9bd9fdfb1e4dcc5f5e245feea17762471;p=sbcl.git diff --git a/contrib/asdf-install/asdf-install.asd b/contrib/asdf-install/asdf-install.asd index cdcec0a..d36609a 100644 --- a/contrib/asdf-install/asdf-install.asd +++ b/contrib/asdf-install/asdf-install.asd @@ -4,29 +4,14 @@ (:use #:cl #:asdf)) (in-package #:asdf-install-system) -(require 'sb-executable) - -;;; this is appalling misuse of asdf. please don't treat it as any -;;; kind of example. this shouldn't be a compile-op, or if it is, should -;;; define output-files properly instead oif leaving it be the fasl -(defclass exe-file (cl-source-file) ()) -(defmethod perform ((o compile-op) (c exe-file)) - (call-next-method) - (sb-executable:make-executable - (make-pathname :name "asdf-install" - :type nil - :defaults (component-pathname c)) - (output-files o c) - :initial-function "RUN")) - -(defmethod perform ((o load-op) (c exe-file)) nil) (defsystem asdf-install :depends-on (sb-posix sb-bsd-sockets) :version "0.2" + #+sb-building-contrib :pathname + #+sb-building-contrib "SYS:CONTRIB;ASDF-INSTALL;" :components ((:file "defpackage") - (exe-file "loader") - (:file "installer"))) + (:file "installer" :depends-on ("defpackage")))) (defmethod perform :after ((o load-op) (c (eql (find-system :asdf-install)))) (provide 'asdf-install))