[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/89: guix: Add archive support for bioconductor-uri.
From: |
Ricardo Wurmus |
Subject: |
04/89: guix: Add archive support for bioconductor-uri. |
Date: |
Tue, 7 Nov 2017 02:44:46 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 25e51b1c45374ca0dd1898fd5acaefe4fc3cd815
Author: Ricardo Wurmus <address@hidden>
Date: Mon Nov 6 17:49:47 2017 +0100
guix: Add archive support for bioconductor-uri.
* guix/build-system/r.scm (bioconductor-uri): Also return the archive URL.
* guix/import/cran.scm (latest-bioconductor-release, fetch-description):
Adjust because bioconductor-uri now returns a list.
---
guix/build-system/r.scm | 9 ++++++---
guix/import/cran.scm | 4 ++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/guix/build-system/r.scm b/guix/build-system/r.scm
index 2c8a89f..6bdb706 100644
--- a/guix/build-system/r.scm
+++ b/guix/build-system/r.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2015 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2015, 2017 Ricardo Wurmus <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -50,8 +50,11 @@ available via the first URI, the second URI points to the
archived version."
(define (bioconductor-uri name version)
"Return a URI string for the R package archive on Bioconductor for the
release corresponding to NAME and VERSION."
- (string-append "https://bioconductor.org/packages/release/bioc/src/contrib/"
- name "_" version ".tar.gz"))
+ (list (string-append
"https://bioconductor.org/packages/release/bioc/src/contrib/"
+ name "_" version ".tar.gz")
+ ;; TODO: use %bioconductor-version from (guix import cran)
+ (string-append
"https://bioconductor.org/packages/3.6/bioc/src/contrib/Archive/"
+ name "_" version ".tar.gz")))
(define %r-build-system-modules
;; Build-side modules imported by default.
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index 5622f75..ec2b7e6 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -182,7 +182,7 @@ from ~s: ~a (~s)~%"
;; package's DESCRIPTION file over HTTP, so we determine the version,
;; download the source tarball, and then extract the DESCRIPTION file.
(let* ((version (latest-bioconductor-package-version name))
- (url (bioconductor-uri name version))
+ (url (car (bioconductor-uri name version)))
(tarball (with-store store (download-to-store store url))))
(call-with-temporary-directory
(lambda (dir)
@@ -469,7 +469,7 @@ dependencies."
(upstream-source
(package (package-name package))
(version version)
- (urls (list (bioconductor-uri upstream-name version))))))
+ (urls (bioconductor-uri upstream-name version)))))
(define (cran-package? package)
"Return true if PACKAGE is an R package from CRAN."
- 02/89: import: cran: Add support for Bioconductor 3.6., (continued)
- 02/89: import: cran: Add support for Bioconductor 3.6., Ricardo Wurmus, 2017/11/07
- 09/89: gnu: r-dnacopy: Update to 1.52.0., Ricardo Wurmus, 2017/11/07
- 06/89: gnu: Add r-stringdist., Ricardo Wurmus, 2017/11/07
- 07/89: gnu: r-bioccheck: Update to 1.14.0., Ricardo Wurmus, 2017/11/07
- 08/89: gnu: r-biocviews: Update to 1.46.0., Ricardo Wurmus, 2017/11/07
- 12/89: gnu: r-genefilter: Update to 1.60.0., Ricardo Wurmus, 2017/11/07
- 17/89: gnu: r-rhtslib: Update to 1.10.0., Ricardo Wurmus, 2017/11/07
- 20/89: gnu: r-tximport: Update to 1.6.0., Ricardo Wurmus, 2017/11/07
- 23/89: gnu: r-copywriter: Update to 2.10.0., Ricardo Wurmus, 2017/11/07
- 25/89: gnu: r-sva: Update to 3.26.0., Ricardo Wurmus, 2017/11/07
- 04/89: guix: Add archive support for bioconductor-uri.,
Ricardo Wurmus <=
- 10/89: gnu: r-annotate: Update to 1.56.0., Ricardo Wurmus, 2017/11/07
- 14/89: gnu: r-dexseq: Update to 1.24.0., Ricardo Wurmus, 2017/11/07
- 15/89: gnu: r-annotationforge: Update to 1.20.0., Ricardo Wurmus, 2017/11/07
- 18/89: gnu: r-zlibbioc: Update to 1.24.0., Ricardo Wurmus, 2017/11/07
- 13/89: gnu: r-deseq2: Update to 1.18.0., Ricardo Wurmus, 2017/11/07
- 22/89: gnu: r-annotationfilter: Update to 1.2.0., Ricardo Wurmus, 2017/11/07
- 24/89: gnu: r-methylkit: Update to 1.4.0., Ricardo Wurmus, 2017/11/07
- 27/89: gnu: r-systempiper: Update to 1.12.0., Ricardo Wurmus, 2017/11/07
- 28/89: gnu: r-shortread: Update to 1.36.0., Ricardo Wurmus, 2017/11/07
- 29/89: gnu: r-grohmm: Update to 1.12.0., Ricardo Wurmus, 2017/11/07