[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: import: cran: Ignore invalid packages.
From: |
guix-commits |
Subject: |
01/01: import: cran: Ignore invalid packages. |
Date: |
Thu, 23 May 2019 10:10:48 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit e96619baf748c589c23eae1b61a38144177b7baf
Author: Ricardo Wurmus <address@hidden>
Date: Thu May 23 10:54:17 2019 +0200
import: cran: Ignore invalid packages.
* guix/import/cran.scm (invalid-packages): New variable.
(description->package): Use it.
---
guix/import/cran.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index f08ff61..4763fcc 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -237,6 +237,11 @@ empty list when the FIELD cannot be found."
"translations"
"utils"))
+;; The field for system dependencies is often abused to specify non-package
+;; dependencies (such as c++11). This list is used to ignore them.
+(define invalid-packages
+ (list "c++11"))
+
(define cran-guix-name (cut guix-name "r-" <>))
(define (needs-fortran? tarball)
@@ -310,7 +315,8 @@ from the alist META, which was derived from the R package's
DESCRIPTION file."
(if (needs-zlib? tarball) '("zlib") '())
(map string-downcase (listify meta
"SystemRequirements"))))
(propagate (filter (lambda (name)
- (not (member name default-r-packages)))
+ (not (member name (append default-r-packages
+ invalid-packages))))
(lset-union equal?
(listify meta "Imports")
(listify meta "LinkingTo")