[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/111: gnu: r-shinyjqui: Update to 0.4.1.
From: |
guix-commits |
Subject: |
01/111: gnu: r-shinyjqui: Update to 0.4.1. |
Date: |
Mon, 14 Mar 2022 02:25:06 -0400 (EDT) |
rekado pushed a commit to branch wip-r
in repository guix.
commit 3d0fd50f7ebfa080a179dc1fb19bf36ec31b238c
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Mar 11 09:15:24 2022 +0100
gnu: r-shinyjqui: Update to 0.4.1.
* gnu/packages/cran.scm (r-shinyjqui): Update to 0.4.1.
[source]: Delete minified JavaScript file.
[arguments]: Minify additional JavaScript file from source.
[propagated-inputs]: Add r-rlang.
[native-inputs]: Add jquery.ui.touch-punch.js.
---
gnu/packages/cran.scm | 44 +++++++++++++++++++++++++++++++-------------
1 file changed, 31 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 4178971251..c3e21c17e0 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -15613,17 +15613,18 @@ several common set, element and attribute related
tasks.")
(define-public r-shinyjqui
(package
(name "r-shinyjqui")
- (version "0.4.0")
+ (version "0.4.1")
(source
(origin
(method url-fetch)
(uri (cran-uri "shinyjqui" version))
(sha256
(base32
- "0ins0pmfis34jr0rimsp1k1aw856r3xjdnsvv8lkwqhvp58nzqah"))
+ "135gwz7syyb6pbn0lkvmq0v1c6r1zivavnqhi1rnzbbzlysi27v1"))
(snippet
- '(begin
- (delete-file "inst/www/shinyjqui.min.js")))))
+ '(for-each delete-file
+ (list "inst/www/shinyjqui.min.js"
+ "inst/www/jquery.ui.touch-punch.min.js")))))
(properties `((upstream-name . "shinyjqui")))
(build-system r-build-system)
(arguments
@@ -15631,17 +15632,34 @@ several common set, element and attribute related
tasks.")
(modify-phases %standard-phases
(add-after 'unpack 'process-javascript
(lambda* (#:key inputs #:allow-other-keys)
- (with-directory-excursion "inst/www/"
- (let ((source "shinyjqui.js")
- (target "shinyjqui.min.js"))
- (format #true "Processing ~a --> ~a~%"
- source target)
- (invoke "esbuild" source "--minify"
- (string-append "--outfile=" target)))))))))
+ (with-directory-excursion "inst/www"
+ (let ((mapping
+ `((,(string-append (assoc-ref inputs
"js-jquery.ui.touch-punch")
+ "/jquery.ui.touch-punch.js")
+ . "jquery.ui.touch-punch.min.js")
+ ("shinyjqui.js"
+ . "shinyjqui.min.js"))))
+ (for-each (lambda (source target)
+ (format #true "Processing ~a --> ~a~%"
+ source target)
+ (invoke "esbuild" source "--minify"
+ (string-append "--outfile=" target)))
+ (map car mapping)
+ (map cdr mapping)))))))))
(propagated-inputs
- (list r-htmltools r-htmlwidgets r-jsonlite r-shiny))
+ (list r-htmltools r-htmlwidgets r-jsonlite r-rlang r-shiny))
(native-inputs
- (list r-knitr esbuild))
+ `(("r-knitr" ,r-knitr)
+ ("esbuild" ,esbuild)
+ ("js-jquery.ui.touch-punch"
+ ,(origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/furf/jquery-ui-touch-punch")
+ (commit "8f7559b6e65cdc3ee3648d5fe76d38c653f87ff5")))
+ (sha256
+ (base32
+ "1lzywp2q9hwx6d5fqjla95vp7ra2lahr5dam7lsqjmch9d98r48q"))))))
(home-page "https://github.com/yang-tang/shinyjqui")
(synopsis "jQuery UI interactions and effects for Shiny")
(description
- branch wip-r created (now 707baea6b9), guix-commits, 2022/03/14
- 02/111: gnu: apache-arrow: Update to 7.0.0., guix-commits, 2022/03/14
- 09/111: gnu: r-v8: Update to 4.1.0., guix-commits, 2022/03/14
- 04/111: gnu: python-pytorch-for-r-torch: Reuse python-pytorch., guix-commits, 2022/03/14
- 07/111: gnu: Add r-spatstat-random., guix-commits, 2022/03/14
- 01/111: gnu: r-shinyjqui: Update to 0.4.1.,
guix-commits <=
- 05/111: gnu: liblantern: Update to 0.7.0., guix-commits, 2022/03/14
- 12/111: gnu: r-jsonlite: Update to 1.8.0., guix-commits, 2022/03/14
- 13/111: gnu: r-colorspace: Update to 2.0-3., guix-commits, 2022/03/14
- 14/111: gnu: r-glue: Update to 1.6.2., guix-commits, 2022/03/14
- 16/111: gnu: r-circlize: Update to 0.4.14., guix-commits, 2022/03/14
- 17/111: gnu: r-cvst: Update to 0.2-3., guix-commits, 2022/03/14
- 19/111: gnu: r-gower: Update to 1.0.0., guix-commits, 2022/03/14
- 22/111: gnu: r-jomo: Update to 2.7-3., guix-commits, 2022/03/14
- 30/111: gnu: r-fst: Update to 0.9.8., guix-commits, 2022/03/14
- 20/111: gnu: r-generics: Update to 0.1.2., guix-commits, 2022/03/14