build-system/asdf: Handle all asdf dependency specifications.
authorAndy Patterson <ajpatter@uwaterloo.ca>
Thu, 30 Aug 2018 05:36:28 +0000 (01:36 -0400)
committerLudovic Courtès <ludo@gnu.org>
Wed, 19 Sep 2018 16:25:28 +0000 (18:25 +0200)
commit7b6b7cdcc5d50cb25c140145b30028c5569c62af
tree3e9266326e37ad50af6349f333b288e807d815c3
parent241358dc94b3c2039a4aa05bcb18b4d1ef6f6d35
build-system/asdf: Handle all asdf dependency specifications.

Add support for dependencies of the form (:version <name> <version>),
(:feature <feature> <dependency-specification>) and (:require <module-name>),
as defined by
<https://common-lisp.net/project/asdf/asdf.html#The-defsystem-grammar>.

* guix/build/lisp-utils.scm (normalize-dependency): New variable.
(make-asd-file)[dependencies]: Use it to generate dependencies with normalized
names.
[dependency-name]: New variable.
[registry]: Use it to flatten the normalized dependencies.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
guix/build/lisp-utils.scm