[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/212: gnu: r-flexdashboard: Update to 0.6.1.
From: |
guix-commits |
Subject: |
08/212: gnu: r-flexdashboard: Update to 0.6.1. |
Date: |
Sat, 18 Feb 2023 14:00:45 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 16e0c98df7ebbda130c297578da07b9977fe93bd
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Feb 17 22:41:29 2023 +0100
gnu: r-flexdashboard: Update to 0.6.1.
* gnu/packages/cran.scm (r-flexdashboard): Update to 0.6.1.
[source]: Simplify and reformat snippet.
[arguments]: Remove unnecessary module import; use esbuild in
'process-javascript phase.
[native-inputs]: Replace node-uglify-js with esbuild.
---
gnu/packages/cran.scm | 29 +++++++++++++----------------
1 file changed, 13 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 1dc046acbb..79c2c474b8 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -21556,30 +21556,29 @@ interface for editing @code{ggplot2} theme elements.")
(define-public r-flexdashboard
(package
(name "r-flexdashboard")
- (version "0.6.0")
+ (version "0.6.1")
(source
(origin
(method url-fetch)
(uri (cran-uri "flexdashboard" version))
(sha256
(base32
- "0bvw2ca6xxscia4hvq505qvjf6zkgpsqv86f1s78aknzwr9jsikm"))
+ "1lxlai4s3qdg2w36xx61idn67zidz9n5mmbz72i0zvcpxr25v5xl"))
(modules '((guix build utils)))
+ ;; Delete bundled minified JavaScript files
(snippet
- '(begin
- ;; Delete bundled minified JavaScript files
- (delete-file "inst/htmlwidgets/lib/raphael/raphael-2.1.4.min.js")
- (delete-file "inst/www/sly/sly.min.js")
- (delete-file
"inst/www/stickytableheaders/jquery.stickytableheaders.min.js")
- (delete-file "inst/www/prism/prism.js")
- (delete-file "inst/www/featherlight/featherlight.min.js")))))
+ '(for-each delete-file
+ '("inst/htmlwidgets/lib/raphael/raphael-2.1.4.min.js"
+ "inst/www/featherlight/featherlight.min.js"
+ "inst/www/prism/prism.js"
+ "inst/www/sly/sly.min.js"
+
"inst/www/stickytableheaders/jquery.stickytableheaders.min.js")))))
(build-system r-build-system)
(arguments
`(#:modules ((guix build utils)
(guix build r-build-system)
(srfi srfi-1)
(srfi srfi-26)
- (ice-9 popen)
(ice-9 textual-ports))
#:phases
(modify-phases %standard-phases
@@ -21613,12 +21612,10 @@ interface for editing @code{ggplot2} theme elements.")
"www/featherlight/featherlight.min.js"))))
(lambda (sources targets)
(for-each (lambda (source target)
- (format #t "Processing ~a --> ~a~%"
+ (format #true "Processing ~a --> ~a~%"
source target)
- (let ((minified (open-pipe* OPEN_READ
"uglifyjs" source)))
- (call-with-output-file target
- (lambda (port)
- (dump-port minified port)))))
+ (invoke "esbuild" source "--minify"
+ (string-append "--outfile=" target)))
sources targets)))))))))
(propagated-inputs
(list r-bslib
@@ -21631,7 +21628,7 @@ interface for editing @code{ggplot2} theme elements.")
r-scales
r-shiny))
(native-inputs
- `(("uglifyjs" ,node-uglify-js)
+ `(("uglifyjs" ,esbuild)
("js-raphael"
,(origin
(method url-fetch)
- branch master updated (b795976778 -> 0ba69c1ee2), guix-commits, 2023/02/18
- 01/212: gnu: r-liger: Rename to r-rliger., guix-commits, 2023/02/18
- 05/212: import/cran: Process all vignette builders., guix-commits, 2023/02/18
- 07/212: import/cran: Remove directory-needs-zlib? in favor of needed-libraries-in-directory., guix-commits, 2023/02/18
- 02/212: gnu: r-readods: Update to 1.8.0., guix-commits, 2023/02/18
- 04/212: import/cran: Add name mapping for libjpeg., guix-commits, 2023/02/18
- 03/212: import/cran: Add directory-needs-esbuild?., guix-commits, 2023/02/18
- 06/212: import/cran: Add generic way to detect needed libraries., guix-commits, 2023/02/18
- 08/212: gnu: r-flexdashboard: Update to 0.6.1.,
guix-commits <=
- 11/212: gnu: Add r-gfonts., guix-commits, 2023/02/18
- 13/212: gnu: r-d3r: Update to 1.0.1., guix-commits, 2023/02/18
- 14/212: gnu: r-wgcna: Update to 1.72-1., guix-commits, 2023/02/18
- 15/212: gnu: r-abn: Update to 2.7-3., guix-commits, 2023/02/18
- 17/212: gnu: r-ggalluvial: Update to 0.12.4., guix-commits, 2023/02/18
- 23/212: gnu: r-mapproj: Update to 1.2.11., guix-commits, 2023/02/18
- 18/212: gnu: r-ggpp: Update to 0.5.1., guix-commits, 2023/02/18
- 28/212: gnu: r-lpsolve: Update to 5.6.18., guix-commits, 2023/02/18
- 12/212: gnu: r-sendmailr: Update to 1.4-0., guix-commits, 2023/02/18
- 41/212: gnu: r-utf8: Update to 1.2.3., guix-commits, 2023/02/18