From 2d3bf6a2a33fae685c03320f289d73ba3e7275f6 Mon Sep 17 00:00:00 2001 From: "zero@fedora" Date: Wed, 10 Jan 2024 04:29:56 +0300 Subject: import: cpan: Support recursive imports. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * guix/import/cpan.scm (cpan-module->sexp): Return two values. (cpan->guix-package): Add #:version. Return two values. (cpan-recursive-import): New procedure. * guix/scripts/import/cpan.scm (show-help, %options): Add ‘-r’. (guix-import-cpan): Adjust accordingly. Change-Id: Id167c7ddd079f4e04650ce7cc1692a9de36cd8fe Signed-off-by: Ludovic Courtès --- doc/guix.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index 454dd66c18..8297ad2ca6 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -14207,6 +14207,17 @@ The command below imports metadata for the Acme::Boolean Perl module: guix import cpan Acme::Boolean @end example +Like many other importers, the @code{cpan} importer supports recursive +imports: + +@table @code +@item --recursive +@itemx -r +Traverse the dependency graph of the given upstream package recursively +and generate package expressions for all those packages that are not yet +in Guix. +@end table + @item cran @cindex CRAN @cindex Bioconductor -- cgit v1.2.3