[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/112: gnu: r-d3r: Update to 0.9.1.
From: |
guix-commits |
Subject: |
13/112: gnu: r-d3r: Update to 0.9.1. |
Date: |
Wed, 9 Dec 2020 16:06:29 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 18ddbd474b49fb00a50dfdc0d6dfb0185cd7b8fd
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Dec 9 19:47:40 2020 +0100
gnu: r-d3r: Update to 0.9.1.
* gnu/packages/cran.scm (r-d3r): Update to 0.9.1.
[arguments]: Use esbuild for minification.
[native-inputs]: Add source for D3 version 6; replace uglify-js with
esbuild.
---
gnu/packages/cran.scm | 28 +++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index cf09080..5fbbe7a 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -1607,20 +1607,19 @@ Bootstrap themes, which are packaged for use with Shiny
applications.")
(define-public r-d3r
(package
(name "r-d3r")
- (version "0.9.0")
+ (version "0.9.1")
(source
(origin
(method url-fetch)
(uri (cran-uri "d3r" version))
(sha256
(base32
- "0vd1qk8yr18xdfkv5ybhqvf0mmccpi721wqa7c881nzm9nnlzc4y"))))
+ "0kc82vvyfxhxvqfalngn36prn3sxdiinsx04rn99ha6zdc27zp5k"))))
(build-system r-build-system)
(arguments
`(#:modules ((guix build utils)
(guix build r-build-system)
- (srfi srfi-1)
- (ice-9 popen))
+ (srfi srfi-1))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'process-javascript
@@ -1634,16 +1633,16 @@ Bootstrap themes, which are packaged for use with Shiny
applications.")
(,(assoc-ref inputs "d3.v4.js")
"v4/dist/d3.min.js")
(,(assoc-ref inputs "d3.v5.js")
- "v5/dist/d3.min.js"))))
+ "v5/dist/d3.min.js")
+ (,(assoc-ref inputs "d3.v6.js")
+ "v6/dist/d3.min.js"))))
(lambda (sources targets)
(for-each (lambda (source target)
(format #t "Processing ~a --> ~a~%"
source target)
(delete-file target)
- (let ((minified (open-pipe* OPEN_READ
"uglify-js" source)))
- (call-with-output-file target
- (lambda (port)
- (dump-port minified port)))))
+ (invoke "esbuild" source "--minify"
+ (string-append "--outfile=" target)))
sources targets))))
#t)))))
(propagated-inputs
@@ -1652,7 +1651,7 @@ Bootstrap themes, which are packaged for use with Shiny
applications.")
("r-rlang" ,r-rlang)
("r-tidyr" ,r-tidyr)))
(native-inputs
- `(("uglify-js" ,uglify-js)
+ `(("esbuild" ,esbuild)
("d3.v3.js"
,(origin
(method url-fetch)
@@ -1673,7 +1672,14 @@ Bootstrap themes, which are packaged for use with Shiny
applications.")
(uri "https://d3js.org/d3.v5.js")
(sha256
(base32
- "0kxvx5pfagxn6nhavdwsdnzyd26g0z5dsfi1pi5dvcmb0c8ipcdn"))))))
+ "0kxvx5pfagxn6nhavdwsdnzyd26g0z5dsfi1pi5dvcmb0c8ipcdn"))))
+ ("d3.v6.js"
+ ,(origin
+ (method url-fetch)
+ (uri "https://d3js.org/d3.v6.js")
+ (sha256
+ (base32
+ "1x6432ca7p1pfxhz3airzw943fincn9izzxkclc1wmphcvv2n2p9"))))))
(home-page "https://github.com/timelyportfolio/d3r")
(synopsis "d3.js utilities for R")
(description
- 44/112: gnu: r-rbibutils: Update to 2.0., (continued)
- 44/112: gnu: r-rbibutils: Update to 2.0., guix-commits, 2020/12/09
- 47/112: gnu: r-insight: Update to 0.11.1., guix-commits, 2020/12/09
- 45/112: gnu: r-rdpack: Update to 2.1., guix-commits, 2020/12/09
- 42/112: gnu: r-radiant-data: Update to 1.3.12., guix-commits, 2020/12/09
- 52/112: gnu: r-raster: Update to 3.4-5., guix-commits, 2020/12/09
- 50/112: gnu: r-blockfest: Update to 1.8., guix-commits, 2020/12/09
- 51/112: gnu: r-slam: Update to 0.1-48., guix-commits, 2020/12/09
- 43/112: gnu: r-renv: Update to 0.12.3., guix-commits, 2020/12/09
- 41/112: gnu: r-tseries: Update to 0.10-48., guix-commits, 2020/12/09
- 54/112: gnu: r-multcomp: Update to 1.4-15., guix-commits, 2020/12/09
- 13/112: gnu: r-d3r: Update to 0.9.1.,
guix-commits <=
- 15/112: gnu: r-magrittr: Update to 2.0.1., guix-commits, 2020/12/09
- 24/112: gnu: r-circlize: Update to 0.4.11., guix-commits, 2020/12/09
- 29/112: gnu: r-lava: Update to 1.6.8.1., guix-commits, 2020/12/09
- 22/112: gnu: r-colorspace: Update to 2.0-0., guix-commits, 2020/12/09
- 26/112: gnu: r-extremes: Update to 2.1., guix-commits, 2020/12/09
- 28/112: gnu: r-fitdistrplus: Update to 1.1-3., guix-commits, 2020/12/09
- 33/112: gnu: r-hardyweinberg: Update to 1.6.9., guix-commits, 2020/12/09
- 35/112: gnu: r-processx: Update to 3.4.5., guix-commits, 2020/12/09
- 34/112: gnu: r-cli: Update to 2.2.0., guix-commits, 2020/12/09
- 31/112: gnu: r-recipes: Update to 0.1.15., guix-commits, 2020/12/09