import: cran: Add support for git repositories.
authorRicardo Wurmus <rekado@elephly.net>
Tue, 27 Aug 2019 22:38:31 +0000 (00:38 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Thu, 29 Aug 2019 09:38:12 +0000 (11:38 +0200)
commitad553ec4b12f24a0bbd25b547bac885ddb84776a
treeb35b066e980d6a5fb14fa08198fd6e0492befcaa
parentce82e8bf5ba561759f95f610b41a6c0f65766397
import: cran: Add support for git repositories.

* guix/import/cran.scm (vcs-file?): New procedure.
(download): Support downloading from git.
(fetch-description): Add a clause for the 'git repository type.
(files-match-pattern?): New procedure.
(tarball-files-match-pattern?): Implement in terms of FILES-MATCH-PATTERN?.
(directory-needs-fortran?, directory-needs-zlib?,
directory-needs-pkg-config?): New procedures.
(needs-fortran?, needs-zlib?, needs-pkg-config?): Rename these procedures...
(tarball-needs-fortran?, tarball-needs-zlib?, tarball-needs-pkg-config?):
...to this, and use them.
(file-hash): New procedure.
(description->package): Handle the 'git repository type.
* guix/import/utils.scm (package->definition): Handle package expression
inside of a let.
* guix/scripts/import.scm (guix-import): Handle let expressions.
* doc/guix.texi (Invoking guix import): Document it.
doc/guix.texi
guix/import/cran.scm
guix/import/utils.scm
guix/scripts/import.scm