nix-archive-1(type directoryentry(namesharenode(type directoryentry(name common-lispnode(type directoryentry(namesourcenode(type directoryentry(namecl-asdf-system-connectionsnode(type directoryentry(name .gitignorenode(typeregularcontents# really this is private to my build process make/ common-lisp.net .vcs GNUmakefile init-lisp.lisp website/changelog.xml lift.tar.gz website/output/ test-results*/ lift-local.config *.dribble *.fasl # new ASDF stuff *.*-warnings *.build-report))entry(nameCOPYINGnode(typeregularcontentsNCopyright (c) 2004-2007 Gary Warren King (gwking@metabang.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ))entry(nameasdf-system-connections.asdnode(typeregularcontents;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*- (defpackage #:asdf-system-connections-system (:use #:cl #:asdf)) (in-package #:asdf-system-connections-system) (defsystem asdf-system-connections :version "0.8.4" :author "Gary Warren King " :maintainer "Gary Warren King " :licence "MIT Style License" :description "Allows for ASDF system to be connected so that auto-loading may occur." :components ((:module "dev" :components ((:file "asdf-system-connections"))) (:module "website" :components ((:module "source" :components ((:static-file "index.md"))))))) ))entry(namecommon-lisp.netnode(typeregularcontents))entry(namedevnode(type directoryentry(nameasdf-system-connections.lispnode(typeregularcontents(in-package :asdf) (eval-when (:compile-toplevel :load-toplevel :execute) (export '(map-system-connections defsystem-connection))) ;;; --------------------------------------------------------------------------- ;;; not particularly rich person's system interconnection facility ;;; --------------------------------------------------------------------------- (defclass system-connection (system) ((systems-required :initarg :systems-required :reader systems-required))) ;;; --------------------------------------------------------------------------- (defun map-system-connections (fn) (map-systems (lambda (s) (when (typep s 'system-connection) (funcall fn s))))) ;;; --------------------------------------------------------------------------- (defmacro defsystem-connection (name &body options) (let ((requires (getf options :requires)) (class (getf options :class 'system-connection))) (remf options :requires) (remf options :class) `(progn (defsystem ,name :class ,class :depends-on ,requires :systems-required ,requires ,@options) (values ',name)))) ;;; --------------------------------------------------------------------------- (defun load-connected-systems () (map-system-connections (lambda (connection) (when (and (required-systems-loaded-p connection) (not (system-loaded-p (component-name connection)))) (load-system (component-name connection)))))) (defun required-systems-loaded-p (connection) (every #'system-loaded-p (systems-required connection))) ;;; --------------------------------------------------------------------------- (unless (fboundp 'registered-system) (defun registered-system (system-name) (cdr (system-registered-p system-name)))) (defun system-loaded-p (system-name) (if-let (it (registered-system system-name)) (component-operation-time (make-operation 'load-op) it))) ;;; --------------------------------------------------------------------------- (defmethod operate :after ((operation t) (component t) &key &allow-other-keys) (load-connected-systems)) ;;; --------------------------------------------------------------------------- (pushnew :asdf-system-connections *features*) ))entry(name notes.textnode(typeregularcontents(ecs 'asdf) (load "user-home:darcs;asdf-system-connections;dev;asdf-system-connections") (mapcar #'load (directory "user-home:darcs;asdf-systems;*.asd")) "user-home:darcs;asdf-systems;metabang.bind.asd" (compute-applicable-methods #'asdf:operation-done-p (list (asdf:make-operation 'asdf:load-op) (asdf:find-system 'metabang.bind))) (asdf::component-name (asdf:find-system 'metabang.bind)) (asdf::map-system-connections #'print) (asdf::map-system-connections #'inspect) (asdf::traverse :load-op 'bind-and-metatilities) ))))entry(nameinit-lisp.lispnode(typeregularcontents:(defvar *break-on-warnings-p* t) (load "/Users/gwkkwg/repository/asdf-system-connections/../shared/shared-init.lisp") (load-asdf) (setup-asdf-central-registry "../asdf-systems/") (load-if "project-init.lisp") (asdf:oos 'asdf:load-op 'regenerate-websites) (rw:regenerate-website :asdf-system-connections :force? t) ))entry(namemakenode(type directoryentry(namebuildnode(typeregularcontents))entry(namecleannode(typeregularcontents))entry(nametestnode(typeregularcontents))entry(namewebsitenode(typeregularcontents))))entry(nameversionnode(typeregularcontents0.1 ))entry(namewebsitenode(type directoryentry(namesourcenode(type directoryentry(nameindex.mdnode(typeregularcontentsx {include resources/header.md}
### What it is ASDF-System-Connections provides auto-loading of systems that only make sense when several other systems are loaded. If I'm lucky, an example will make this clear! [CL-Containers][] and [CL-Variates][] are separate systems and can therefore be loaded independently. If both of them are loaded, however, then it makes sense to also load code that uses CL-Variates to sample random elements from containers. Rather than requiring you to remember to load that extra system (and to load it only after both Cl-Containers and CL-Variates are loaded), ASDF-System-Connections lets you set things up so that loading happens automatically. Here is a simple example from [metabang-bind][]'s system definition: (asdf:defsystem-connection bind-and-metatilities :requires (metabang-bind metatilities-base) :perform (load-op :after (op c) (use-package (find-package :metabang-bind) (find-package :metatilities)))) The _requires_ clause specifies the other systems that must be loaded before this connection will be activated. The rest of the system definition is regular [ASDF][]. ASDF-System-connections will be loaded as soon as the systems they require are all loaded and they will only be loaded once. Before loading a system that uses a system connection, you should load ASDF-System- Connections in the usual manner: (asdf:oos 'asdf:load-op 'asdf-system-connections) ### Mailing Lists Nope. Sorry, there isn't one. You can, however, contact [Gary King][gwking-mail]. The best way to keep updated is to follow the metabang weblog: [unClog][] ### Where is it the current ASDF-System-Connections repository is on [github][github-asdf-System-Connections] and you can clone it using: git clone git://github.com/gwkkwg/asdf-System-Connections Its CLiki home is right [where][cliki-home] you'd expect. {anchor news} ### What is happening
24 February 2013
Updates to make ASC happ(ier) with ASDF; website tweaks
19 October 2008
Website rework -- no fire, just smoke
{include resources/footer.md} ))entry(name resourcesnode(type directoryentry(name footer.mdnode(typeregularcontents ))entry(name header.mdnode(typeregularcontentsV{include shared-links.md} {set-property html yes} {set-property style-sheet "http://common-lisp.net/project/cl-containers/shared/style-200.css"} {set-property author "Gary Warren King"} {set-property title "ASDF-System-Connections"} {set-property project-name "ASDF-System-Connections"} [devel-list]: http://common-lisp.net/cgi-bin/mailman/listinfo/asdf-system-connections-devel [cliki-home]: http://www.cliki.net//asdf-system-connections [tarball]: http://common-lisp.net/project/asdf-system-connections/asdf-system-connections.tar.gz
## ASDF-System-Connections #### Sticking it together since 2005
))entry(name navigation.mdnode(typeregularcontents ))))))entry(namewebsite.tmprojnode(typeregularcontents? currentDocument resources/header.md documents expanded name source regexFolderFilter !.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$ sourceDirectory source fileHierarchyDrawerWidth 182 metaData index.md caret column 0 line 10 firstVisibleColumn 0 firstVisibleLine 2 resources/footer.md caret column 22 line 9 firstVisibleColumn 0 firstVisibleLine 0 resources/header.md caret column 0 line 16 firstVisibleColumn 0 firstVisibleLine 0 openDocuments index.md resources/footer.md resources/header.md showFileHierarchyDrawer windowFrame {{63, 28}, {578, 788}} ))))))))entry(namesystemsnode(type directoryentry(nameasdf-system-connections.asdnode(typesymlinktarget/gnu/store/007lrsjiws1h1blwl8n36bcw2bw3qdy2-cl-asdf-system-connections-0.8.4-1.9f08524/share/common-lisp/source/cl-asdf-system-connections/asdf-system-connections.asd))))))entry(namedocnode(type directoryentry(name*cl-asdf-system-connections-0.8.4-1.9f08524node(type directoryentry(nameCOPYINGnode(typeregularcontentsNCopyright (c) 2004-2007 Gary Warren King (gwking@metabang.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. )))))))))