mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-26 04:06:49 +01:00
import/cran: Process all vignette builders.
* guix/import/cran.scm (needs-knitr?): Remove procedure. (vignette-builders): New procedure. (description->package): Use vignette-builders instead of needs-knitr?.
This commit is contained in:
parent
c0507e9f1e
commit
271c0bfcf2
1 changed files with 3 additions and 4 deletions
|
@ -502,8 +502,8 @@ (define (source->dependencies source tarball?)
|
|||
(source-dir->dependencies dir)))
|
||||
(source-dir->dependencies source)))
|
||||
|
||||
(define (needs-knitr? meta)
|
||||
(member "knitr" (listify meta "VignetteBuilder")))
|
||||
(define (vignette-builders meta)
|
||||
(map cran-guix-name (listify meta "VignetteBuilder")))
|
||||
|
||||
(define* (description->package repository meta #:key (license-prefix identity)
|
||||
(download-source download))
|
||||
|
@ -617,8 +617,7 @@ (define* (description->package repository meta #:key (license-prefix identity)
|
|||
,@(maybe-inputs (map cran-guix-name propagate) 'propagated-inputs)
|
||||
,@(maybe-inputs
|
||||
`(,@source-native-inputs
|
||||
,@(if (needs-knitr? meta)
|
||||
'("r-knitr") '()))
|
||||
,@(vignette-builders meta))
|
||||
'native-inputs)
|
||||
(home-page ,(if (string-null? home-page)
|
||||
(string-append base-url name)
|
||||
|
|
Loading…
Reference in a new issue