[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/158: gnu: r-ggvis: Update to 0.4.8.
From: |
guix-commits |
Subject: |
08/158: gnu: r-ggvis: Update to 0.4.8. |
Date: |
Sun, 19 Mar 2023 13:24:00 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 47bce97778d736424bf3e10874b926ea721aabf4
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Mar 17 15:26:55 2023 +0100
gnu: r-ggvis: Update to 0.4.8.
* gnu/packages/cran.scm (r-ggvis): Update to 0.4.8.
[source]: Remove five minified JavaScript files.
[arguments]: Add build phase 'process-javascript.
[native-inputs]: Add esbuild and js-lodash.
---
gnu/packages/cran.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 53 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 48eab8e028..d139049cc9 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -21983,15 +21983,51 @@ discriminant analysis for the purpose of classifying
high dimensional data.")
(define-public r-ggvis
(package
(name "r-ggvis")
- (version "0.4.7")
+ (version "0.4.8")
(source
(origin
(method url-fetch)
(uri (cran-uri "ggvis" version))
(sha256
(base32
- "1qv512pd4x5vmx15y9nvqmabbbw14h75fmi1sjbcg5yl25z0cswy"))))
+ "0sm28s2zlr3rbp7qzpgin7d9axixn4kgi1apb5mw4mvsp6h80m1x"))
+ (snippet
+ '(for-each delete-file
+ '("inst/www/lib/d3/d3.min.js"
+ "inst/www/lib/jquery-ui/jquery-ui.min.js"
+ "inst/www/lib/jquery/jquery.min.js"
+ "inst/www/lib/lodash/lodash.min.js"
+ "inst/www/lib/vega/vega.min.js")))))
(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/www/lib"
+ (call-with-values
+ (lambda ()
+ (unzip2
+ `(("d3/d3.js" "d3/d3.min.js")
+ ("jquery-ui/jquery-ui.js"
+ "jquery-ui/jquery-ui.min.js")
+ ("jquery/jquery.js"
+ "jquery/jquery.min.js")
+ (,(search-input-file inputs "/dist/lodash.js")
+ "lodash/lodash.min.js")
+ ("vega/vega.js"
+ "vega/vega.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)))))))))
(propagated-inputs
(list r-assertthat
r-dplyr
@@ -22000,6 +22036,21 @@ discriminant analysis for the purpose of classifying
high dimensional data.")
r-magrittr
r-rlang
r-shiny))
+ (native-inputs
+ `(("esbuild" ,esbuild)
+ ;; Version according to commit
+ ;;
https://github.com/rstudio/ggvis/commit/0a197c25b5a1d94724f1868270d5163b27ad2e76
+ ("js-lodash"
+ ,(let ((version "4.17.21"))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/lodash/lodash")
+ (commit version)))
+ (file-name (git-file-name "lodash.js" version))
+ (sha256
+ (base32
+ "0gd1rhp85z0xybii19fkkqkbshcklwrrcvj335z17q2cnbb57v44")))))))
(home-page "https://ggvis.rstudio.com/")
(synopsis "Interactive grammar of graphics")
(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, 2023/03/19
- 08/158: gnu: r-ggvis: Update to 0.4.8.,
guix-commits <=
- 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
- 01/158: gnu: r-dt: Update to 0.27., guix-commits, 2023/03/19