source: branches/0.22.x/abcl/contrib/asdf-install/asdf-install.asd

Last change on this file was 12487, checked in by Mark Evenson, 15 years ago

Port of ASDF-INSTALL under 'contrib/asdf-install'.

'abcl.contrib' will package ASDF-INSTALL in dist/abcl-contrib.jar.

We only have one contrib 'asdf-install'. It is not expected to work
well under Windows at the moment.

To use ASDF-INSTALL, use the following in your ~/.abclrc:

(require 'asdf)
(pushnew "jar:file:${dist.dir}/abcl-contrib.jar!/asdf-install/" asdf:*central-registry*)

Then issuing

CL-USER> (require 'asdf-install)

will load ASDF-INSTALL.

A file ~/.asdf-install can contain customizations to help ASDF-INSTALL
find the programs 'tar' and 'gpg'. 'tar' is searched for in
asdf-install:*shell-search-paths*. The location of 'gpg' can be
customized by setting *gpg-command* to a string containing the file.
This behavior should be rationalized in the future.

ASDF-INSTALL tested under OSX.

File size: 1.8 KB
Line 
1;;; -*-  Lisp -*-
2
3;;; Portatble ASDF-Install is based on Dan Barlow's ASDF-Install
4;; (see the file COPYRIGHT for details). It is currently maintained
5;; by Gary King <gwking@metabang.com>.
6
7(defpackage #:asdf-install-system 
8  (:use #:cl #:asdf))
9
10(in-package #:asdf-install-system)
11
12(defsystem asdf-install
13  #+:sbcl :depends-on
14  #+:sbcl (sb-bsd-sockets)
15  :version "0.6.10-ABCL.0"
16  :author "Dan Barlow <dan@telent.net>, Edi Weitz <edi@agharta.de> and many others. See the file COPYRIGHT for more details."
17  :maintainer "Gary Warren King <gwking@metabang.com>"
18  :components ((:file "defpackage")
19               (:file "split-sequence" :depends-on ("defpackage"))
20               
21               (:file "port" :depends-on ("defpackage" "split-sequence"))
22               #+:digitool
23               (:file "digitool" :depends-on ("port"))
24               
25         (:file "conditions" :depends-on ("defpackage" "variables"))
26               (:file "variables" :depends-on ("port"))
27         (:file "installer"
28                      :depends-on ("port" "split-sequence" 
29            #+:digitool "digitool"
30            "conditions" "variables"))
31               (:file "deprecated" :depends-on ("installer")))
32  :in-order-to ((test-op (load-op test-asdf-install)))
33  :perform (test-op :after (op c)
34        (funcall
35          (intern (symbol-name '#:run-tests) :lift)
36          :config :generic)))
37     
38(defmethod perform :after ((o load-op) (c (eql (find-system :asdf-install))))
39  (let ((show-version (find-symbol
40                       (symbol-name '#:show-version-information)
41           '#:asdf-install)))
42    (when (and show-version (fboundp show-version)) 
43      (funcall show-version)))
44  (provide 'asdf-install))
45
46(defmethod operation-done-p 
47    ((o test-op) (c (eql (find-system :asdf-install))))
48  nil)
49
50#+(or)
51(defmethod perform ((o test-op) (c (eql (find-system :asdf-install))))
52  t)
Note: See TracBrowser for help on using the repository browser.