pax_global_header00006660000000000000000000000064121124500240014501gustar00rootroot0000000000000052 comment=54d05888ce4e2535850e851ac6cbf4bf2355a244 asdf-system-connections-20140211-git/000077500000000000000000000000001211245002400172755ustar00rootroot00000000000000asdf-system-connections-20140211-git/.gitignore000066400000000000000000000003661211245002400212720ustar00rootroot00000000000000# 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-reportasdf-system-connections-20140211-git/COPYING000066400000000000000000000021161211245002400203300ustar00rootroot00000000000000Copyright (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. asdf-system-connections-20140211-git/asdf-system-connections.asd000066400000000000000000000012501211245002400245430ustar00rootroot00000000000000;;; -*- 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"))))))) asdf-system-connections-20140211-git/common-lisp.net000066400000000000000000000000001211245002400222300ustar00rootroot00000000000000asdf-system-connections-20140211-git/dev/000077500000000000000000000000001211245002400200535ustar00rootroot00000000000000asdf-system-connections-20140211-git/dev/asdf-system-connections.lisp000066400000000000000000000045521211245002400255310ustar00rootroot00000000000000(in-package #:asdf) (eval-when (:compile-toplevel :load-toplevel) (export '(map-system-connections defsystem-connection)) (when (find-package '#:asdf/interface) (export '(map-system-connections defsystem-connection) '#:asdf/interface))) ;;; --------------------------------------------------------------------------- ;;; 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) (maphash (lambda (k v) (declare (ignore k)) (when (typep (cdr v) 'system-connection) (funcall fn (cdr v)))) *defined-systems*)) ;;; --------------------------------------------------------------------------- (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)))) (asdf:load-system (component-name connection)))))) (defun required-systems-loaded-p (connection) (every #'system-loaded-p (systems-required connection))) ;;; --------------------------------------------------------------------------- (defun system-loaded-p (system-name) (let ((it (cdr (system-registered-p system-name)))) (and it (component-operation-time (make-instance 'load-op) it)))) ;;; --------------------------------------------------------------------------- (defmethod operate :after (operation-class system &key &allow-other-keys) (declare (ignorable operation-class system)) (load-connected-systems)) ;;; --------------------------------------------------------------------------- (pushnew :asdf-system-connections *features*) asdf-system-connections-20140211-git/dev/notes.text000066400000000000000000000011151211245002400221070ustar00rootroot00000000000000(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 (make-instance '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 (make-instance 'asdf:load-op) (asdf::find-system 'bind-and-metatilities)) asdf-system-connections-20140211-git/init-lisp.lisp000066400000000000000000000004721211245002400221010ustar00rootroot00000000000000(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) asdf-system-connections-20140211-git/make/000077500000000000000000000000001211245002400202125ustar00rootroot00000000000000asdf-system-connections-20140211-git/make/build000066400000000000000000000000001211245002400212220ustar00rootroot00000000000000asdf-system-connections-20140211-git/make/clean000066400000000000000000000000001211245002400212050ustar00rootroot00000000000000asdf-system-connections-20140211-git/make/test000066400000000000000000000000001211245002400211020ustar00rootroot00000000000000asdf-system-connections-20140211-git/make/website000066400000000000000000000000001211245002400215650ustar00rootroot00000000000000asdf-system-connections-20140211-git/version000066400000000000000000000000041211245002400206770ustar00rootroot000000000000000.1 asdf-system-connections-20140211-git/website/000077500000000000000000000000001211245002400207375ustar00rootroot00000000000000asdf-system-connections-20140211-git/website/source/000077500000000000000000000000001211245002400222375ustar00rootroot00000000000000asdf-system-connections-20140211-git/website/source/index.md000066400000000000000000000045701211245002400236760ustar00rootroot00000000000000{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} asdf-system-connections-20140211-git/website/source/resources/000077500000000000000000000000001211245002400242515ustar00rootroot00000000000000asdf-system-connections-20140211-git/website/source/resources/footer.md000066400000000000000000000026171211245002400260770ustar00rootroot00000000000000 asdf-system-connections-20140211-git/website/source/resources/header.md000066400000000000000000000015261211245002400260270ustar00rootroot00000000000000{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
asdf-system-connections-20140211-git/website/source/resources/navigation.md000066400000000000000000000000351211245002400267300ustar00rootroot00000000000000 asdf-system-connections-20140211-git/website/website.tmproj000066400000000000000000000034771211245002400236510ustar00rootroot00000000000000 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}}