[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: import cran: Move guix-name to top-level.
From: |
Ricardo Wurmus |
Subject: |
05/07: import cran: Move guix-name to top-level. |
Date: |
Sat, 17 Dec 2016 17:41:25 +0000 (UTC) |
rekado pushed a commit to branch master
in repository guix.
commit bfa0c752bc19810f7b4908c3d0f4a1dd7832c1b6
Author: Ricardo Wurmus <address@hidden>
Date: Wed Jul 6 12:42:38 2016 +0200
import cran: Move guix-name to top-level.
* guix/import/cran.scm (guix-name): Move to top-level.
---
guix/import/cran.scm | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index ee34ead..c98ab88 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -148,16 +148,17 @@ empty list when the FIELD cannot be found."
(string-any char-set:whitespace item)))
(map string-trim-both items))))))
+(define (guix-name name)
+ "Return a Guix package name for a given R package name."
+ (string-append "r-" (string-map (match-lambda
+ (#\_ #\-)
+ (#\. #\-)
+ (chr (char-downcase chr)))
+ name)))
+
(define (description->package repository meta)
"Return the `package' s-expression for an R package published on REPOSITORY
from the alist META, which was derived from the R package's DESCRIPTION file."
- (define (guix-name name)
- (string-append "r-" (string-map (match-lambda
- (#\_ #\-)
- (#\. #\-)
- (chr (char-downcase chr)))
- name)))
-
(let* ((base-url (case repository
((cran) %cran-url)
((bioconductor) %bioconductor-url)))
- branch master updated (aaee461 -> b26abe4), Ricardo Wurmus, 2016/12/17
- 05/07: import cran: Move guix-name to top-level.,
Ricardo Wurmus <=
- 03/07: import cran: Handle BSD licenses with LICENSE file., Ricardo Wurmus, 2016/12/17
- 07/07: import cran: Ignore default R packages., Ricardo Wurmus, 2016/12/17
- 06/07: import cran: description->package: Also return package dependencies., Ricardo Wurmus, 2016/12/17
- 01/07: import cran: Do not use "or later" licenses by default., Ricardo Wurmus, 2016/12/17
- 04/07: import cran: Remove more invalid characters from package names., Ricardo Wurmus, 2016/12/17
- 02/07: import cran: Translate MIT to the Expat license., Ricardo Wurmus, 2016/12/17