[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/112: gnu: r-shinyjqui: Update to 0.4.1.
From: |
guix-commits |
Subject: |
01/112: gnu: r-shinyjqui: Update to 0.4.1. |
Date: |
Tue, 15 Mar 2022 15:22:07 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 79607549e25e8f2b6bc05042bfd5cbaff3f56078
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 master updated (2543cb4854 -> 231841f9b9), guix-commits, 2022/03/15
- 01/112: gnu: r-shinyjqui: Update to 0.4.1.,
guix-commits <=
- 02/112: gnu: apache-arrow: Update to 7.0.0., guix-commits, 2022/03/15
- 05/112: gnu: liblantern: Update to 0.7.0., guix-commits, 2022/03/15
- 10/112: gnu: r-clipr: Update to 0.8.0., guix-commits, 2022/03/15
- 11/112: gnu: r-ashr: Update to 2.2-54., guix-commits, 2022/03/15
- 08/112: gnu: Add r-fstcore., guix-commits, 2022/03/15
- 14/112: gnu: r-glue: Update to 1.6.2., guix-commits, 2022/03/15
- 15/112: gnu: r-rcppthread: Update to 2.0.2., guix-commits, 2022/03/15
- 17/112: gnu: r-cvst: Update to 0.2-3., guix-commits, 2022/03/15
- 25/112: gnu: r-seriation: Update to 1.3.2., guix-commits, 2022/03/15
- 06/112: gnu: r-torch: Update to 0.7.0., guix-commits, 2022/03/15