[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
54/124: gnu: r-colourpicker: Update to 1.1.1.
From: |
guix-commits |
Subject: |
54/124: gnu: r-colourpicker: Update to 1.1.1. |
Date: |
Mon, 1 Nov 2021 17:29:05 -0400 (EDT) |
rekado pushed a commit to branch r-updates
in repository guix.
commit ce858ff08b9141a3ca1181332d3cce08c084589e
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Nov 1 20:41:17 2021 +0000
gnu: r-colourpicker: Update to 1.1.1.
* gnu/packages/cran.scm (r-colourpicker): Update to 1.1.1.
[arguments]: Remove modules; use esbuild in build phase 'process-javascript.
[native-inputs]: Remove r-knitr and uglifyjs; add esbuild; change js-jquery
version.
---
gnu/packages/cran.scm | 46 ++++++++++++++++++----------------------------
1 file changed, 18 insertions(+), 28 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index a554c7e..4cad5ec 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -15497,45 +15497,36 @@ to easily call your own custom JavaScript functions
from R.")
(define-public r-colourpicker
(package
(name "r-colourpicker")
- (version "1.1.0")
+ (version "1.1.1")
(source
(origin
(method url-fetch)
(uri (cran-uri "colourpicker" version))
(sha256
(base32
- "1qjispj7i12m02js5cm5xlgn5lyff0kc5ybz6lbknz8q5lkbdyrd"))))
+ "1q1wi3g403fbzp4ys3gsjbwdc86x770cx323qgi47ca8n219kl50"))))
(build-system r-build-system)
(arguments
- `(#:modules ((guix build utils)
- (guix build r-build-system)
- (srfi srfi-1)
- (ice-9 popen))
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'process-javascript
(lambda* (#:key inputs #:allow-other-keys)
(with-directory-excursion "inst"
- (call-with-values
- (lambda ()
- (unzip2
+ (let ((mapping
`((,(assoc-ref inputs "js-salvattore")
- "examples/colourInput/www/salvattore.min.js")
+ . "examples/colourInput/www/salvattore.min.js")
(,(assoc-ref inputs "js-jquery")
- "htmlwidgets/lib/jquery/jquery.min.js")
+ . "htmlwidgets/lib/jquery/jquery.min.js")
("www/shared/colourpicker/js/colourpicker.js"
- "www/shared/colourpicker/js/colourpicker.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
"uglifyjs" source)))
- (call-with-output-file target
- (lambda (port)
- (dump-port minified port)))))
- sources targets))))
- #t)))))
+ . "www/shared/colourpicker/js/colourpicker.min.js"))))
+ (for-each (lambda (source target)
+ (format #true "Processing ~a --> ~a~%"
+ source target)
+ (delete-file target)
+ (invoke "esbuild" source "--minify"
+ (string-append "--outfile=" target)))
+ (map car mapping)
+ (map cdr mapping)))))))))
(propagated-inputs
`(("r-ggplot2" ,r-ggplot2)
("r-htmltools" ,r-htmltools)
@@ -15545,15 +15536,14 @@ to easily call your own custom JavaScript functions
from R.")
("r-shiny" ,r-shiny)
("r-shinyjs" ,r-shinyjs)))
(native-inputs
- `(("r-knitr" ,r-knitr)
- ("uglifyjs" ,node-uglify-js)
+ `(("esbuild" ,esbuild)
("js-jquery"
,(origin
(method url-fetch)
- (uri "https://code.jquery.com/jquery-3.3.1.js")
+ (uri "https://code.jquery.com/jquery-1.11.3.js")
(sha256
(base32
- "1b8zxrp6xwzpw25apn8j4qws0f6sr7qr7h2va5h1mjyfqvn29anq"))))
+ "1v956yf5spw0156rni5z77hzqwmby7ajwdcd6mkhb6zvl36awr90"))))
("js-salvattore"
,(origin
(method url-fetch)
- 49/124: gnu: r-sodium: Update to 1.2.0., (continued)
- 49/124: gnu: r-sodium: Update to 1.2.0., guix-commits, 2021/11/01
- 50/124: gnu: r-rvcheck: Update to 0.2.1., guix-commits, 2021/11/01
- 52/124: gnu: r-grimport: Update to 0.9-4., guix-commits, 2021/11/01
- 53/124: gnu: r-rmpfr: Update to 0.8-5., guix-commits, 2021/11/01
- 55/124: gnu: r-sets: Update to 1.0-19., guix-commits, 2021/11/01
- 56/124: gnu: r-spdata: Update to 2.0.1., guix-commits, 2021/11/01
- 57/124: gnu: r-deldir: Update to 1.0-6., guix-commits, 2021/11/01
- 41/124: gnu: r-performance: Update to 0.8.0., guix-commits, 2021/11/01
- 47/124: gnu: r-misc3d: Update to 0.9-1., guix-commits, 2021/11/01
- 51/124: gnu: r-ore: Update to 1.7.0., guix-commits, 2021/11/01
- 54/124: gnu: r-colourpicker: Update to 1.1.1.,
guix-commits <=
- 67/124: gnu: r-sitmo: Update to 2.0.2., guix-commits, 2021/11/01
- 78/124: gnu: r-rpf: Update to 1.0.11., guix-commits, 2021/11/01
- 83/124: gnu: r-memuse: Update to 4.2-1., guix-commits, 2021/11/01
- 82/124: gnu: r-lightgbm: Update to 3.3.0., guix-commits, 2021/11/01
- 100/124: gnu: r-stringfish: Update to 0.15.4., guix-commits, 2021/11/01
- 77/124: gnu: r-sem: Update to 3.1-13., guix-commits, 2021/11/01
- 79/124: gnu: r-qgraph: Update to 1.9., guix-commits, 2021/11/01
- 84/124: gnu: r-goftest: Update to 1.2-3., guix-commits, 2021/11/01
- 87/124: gnu: r-igraph: Update to 1.2.7., guix-commits, 2021/11/01
- 105/124: gnu: r-logger: Update to 0.2.2., guix-commits, 2021/11/01