[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/158: gnu: r-opencpu: Update to 2.2.9.
From: |
guix-commits |
Subject: |
07/158: gnu: r-opencpu: Update to 2.2.9. |
Date: |
Sun, 19 Mar 2023 13:24:00 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 1b50213ad71a3d5c822c05158c0240d9325a9d2f
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Mar 17 15:14:21 2023 +0100
gnu: r-opencpu: Update to 2.2.9.
* gnu/packages/cran.scm (r-opencpu): Update to 2.2.9.
[source]: Remove two minified JavaScript files.
[arguments]: Add build phases 'process-javascript.
[native-inputs]: Add esbuild, r-r-rsp, and js-query.
---
gnu/packages/cran.scm | 43 ++++++++++++++++++++++++++++++++++++++++---
1 file changed, 40 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index cf5e8ad54b..48eab8e028 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -35876,15 +35876,43 @@ reading and writing arbitrary protocol-buffer data in
R.")
(define-public r-opencpu
(package
(name "r-opencpu")
- (version "2.2.8")
+ (version "2.2.9")
(source
(origin
(method url-fetch)
(uri (cran-uri "opencpu" version))
(sha256
- (base32 "1h0s7fbifyf4h1296sdk3amij0m6s12wq32mbky7xg4nz8wj29ni"))))
+ (base32 "18vlr1isi92zc9a16ld3fczdw2mcd142k5cbpls3nfxgdjbx3qqk"))
+ (snippet
+ '(for-each delete-file
+ '("inst/test/jquery-1.10.2.min.js"
+ "inst/test/bootstrap/js/bootstrap.min.js")))))
(properties `((upstream-name . "opencpu")))
(build-system r-build-system)
+ (arguments
+ (list
+ #:modules '((guix build utils)
+ (guix build r-build-system)
+ (srfi srfi-1))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'process-javascript
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "inst/test/"
+ (call-with-values
+ (lambda ()
+ (unzip2
+ `((,(assoc-ref inputs "js-jquery")
+ "jquery-1.10.2.min.js")
+ ("bootstrap/js/bootstrap.js"
+ "bootstrap/js/bootstrap.min.js"))))
+ (lambda (sources targets)
+ (for-each (lambda (source target)
+ (format #true "Processing ~a --> ~a~%"
+ source target)
+ (invoke "esbuild" source "--minify"
+ (string-append "--outfile=" target)))
+ sources targets)))))))))
(inputs
(list pandoc))
(propagated-inputs
@@ -35903,7 +35931,16 @@ reading and writing arbitrary protocol-buffer data in
R.")
r-webutils
r-zip))
(native-inputs
- (list r-knitr))
+ `(("esbuild" ,esbuild)
+ ("r-knitr" ,r-knitr)
+ ("r-r-rsp" ,r-r-rsp)
+ ("js-jquery"
+ ,(origin
+ (method url-fetch)
+ (uri "https://code.jquery.com/jquery-1.10.2.js")
+ (sha256
+ (base32
+ "0ah5ivczcv62rj8bxwam7ar0f4il544jbn983vwfvkykl506gpla"))))))
(home-page "https://www.opencpu.org")
(synopsis "API for embedded scientific computing")
(description
- branch master updated (f9702aa9fd -> e9c8c01e24), guix-commits, 2023/03/19
- 03/158: gnu: r-httpuv: Update to 1.6.9., guix-commits, 2023/03/19
- 04/158: gnu: readstat: Update to 1.1.9., guix-commits, 2023/03/19
- 05/158: gnu: r-haven: Update to 2.5.2., guix-commits, 2023/03/19
- 07/158: gnu: r-opencpu: Update to 2.2.9.,
guix-commits <=
- 08/158: gnu: r-ggvis: Update to 0.4.8., guix-commits, 2023/03/19
- 06/158: gnu: r-bookdown: Update to 0.33., guix-commits, 2023/03/19
- 09/158: gnu: r-sf: Update to 1.0-11., guix-commits, 2023/03/19
- 13/158: gnu: Add r-mclogit., guix-commits, 2023/03/19
- 14/158: gnu: r-shadowtext: Update indentation., guix-commits, 2023/03/19
- 02/158: gnu: Add libuv-for-r-httpuv., guix-commits, 2023/03/19
- 15/158: gnu: r-memuse: Adjust indentation., guix-commits, 2023/03/19
- 16/158: gnu: r-numbat: Update to 1.2.2., guix-commits, 2023/03/19
- 18/158: gnu: r-mutoss: Update to 0.1-13., guix-commits, 2023/03/19
- 19/158: gnu: r-afpt: Update to 1.1.0.3., guix-commits, 2023/03/19