[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/119: gnu: r-rintrojs: Update to 0.3.0.
From: |
guix-commits |
Subject: |
01/119: gnu: r-rintrojs: Update to 0.3.0. |
Date: |
Sat, 10 Jul 2021 16:31:36 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 94be43333244d6d5824ebc52e24edaabac1b2e5b
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Jul 10 09:12:18 2021 +0200
gnu: r-rintrojs: Update to 0.3.0.
* gnu/packages/cran.scm (r-rintrojs): Update to 0.3.0.
[source]: Delete minified JavaScript in snippet.
[arguments]: Minify with esbuild.
[native-inputs]: Replace uglify-js with esbuild; update intro.js to 3.2.1.
[license]: Add license of intro.js.
---
gnu/packages/cran.scm | 42 ++++++++++++++++--------------------------
1 file changed, 16 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index b31a88f..7bdcb5e 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -19773,50 +19773,39 @@ cell free DNA} (cfDNA).")
(define-public r-rintrojs
(package
(name "r-rintrojs")
- (version "0.2.2")
+ (version "0.3.0")
(source
(origin
(method url-fetch)
(uri (cran-uri "rintrojs" version))
(sha256
(base32
- "0vyqb3pyrh12saddar71ac9csn2vkd2j8ln6ygpqys8ky1lc3427"))))
+ "00l5mk80gj3xkbf3m1kip566ic98bhd88lh0bg69ybkpk4gifpyw"))
+ (snippet
+ '(delete-file "inst/javascript/introjs/intro.min.js"))))
(properties `((upstream-name . "rintrojs")))
(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/javascript/introjs/"
- (call-with-values
- (lambda ()
- (unzip2
- `((,(assoc-ref inputs "intro.js")
- "intro.min.js"))))
- (lambda (sources targets)
- (for-each (lambda (source target)
- (format #t "Processing ~a --> ~a~%"
- source target)
- (let ((minified (open-pipe* OPEN_READ
"uglify-js" source)))
- (call-with-output-file target
- (lambda (port)
- (dump-port minified port)))))
- sources targets))))
- #t)))))
+ (let ((source (assoc-ref inputs "intro.js"))
+ (target "intro.min.js"))
+ (format #true "Processing ~a --> ~a~%"
+ source target)
+ (invoke "esbuild" source "--minify"
+ (string-append "--outfile=" target)))))))))
(native-inputs
- `(("uglify-js" ,uglify-js)
+ `(("esbuild" ,esbuild)
("intro.js"
,(origin
(method url-fetch)
- (uri
"https://raw.githubusercontent.com/usablica/intro.js/v2.9.3/intro.js")
+ (uri "https://cdn.jsdelivr.net/npm/intro.js@3.2.1/intro.js")
(sha256
(base32
- "1qf8n1sfy9qkiqqnfgg0xbhmfgh0g3mqsjas8qhz230h3zzlzxj8"))))))
+ "0vh5n7hqqyx2pdvlqq6xadfqibcn78h5961rwhpf817kpxfzv8v7"))))))
(propagated-inputs
`(("r-jsonlite" ,r-jsonlite)
("r-shiny" ,r-shiny)))
@@ -19828,7 +19817,8 @@ Intro.js} library. This package makes it easy to
include step-by-step
introductions, and clickable hints in a Shiny application. It supports both
static introductions in the UI, and programmatic introductions from the
server-side.")
- (license license:agpl3+)))
+ ;; The intro.js library is licensed under Expat.
+ (license (list license:agpl3+ license:expat))))
(define-public r-sysfonts
(package
- branch master updated (5c45ed0 -> 6db1afe), guix-commits, 2021/07/10
- 02/119: gnu: r-vdiffr: Update to 1.0.2., guix-commits, 2021/07/10
- 05/119: gnu: Add r-wk., guix-commits, 2021/07/10
- 06/119: gnu: Add r-s2., guix-commits, 2021/07/10
- 07/119: gnu: Add r-ggpp., guix-commits, 2021/07/10
- 09/119: gnu: r-biomart: Update to 2.48.2., guix-commits, 2021/07/10
- 03/119: gnu: r-gtools: Update to 3.9.2., guix-commits, 2021/07/10
- 01/119: gnu: r-rintrojs: Update to 0.3.0.,
guix-commits <=
- 04/119: gnu: Add r-reldist., guix-commits, 2021/07/10
- 08/119: gnu: r-annotationhub: Update to 3.0.1., guix-commits, 2021/07/10
- 10/119: gnu: r-biocparallel: Update to 1.26.1., guix-commits, 2021/07/10
- 11/119: gnu: r-edaseq: Update to 2.26.1., guix-commits, 2021/07/10
- 13/119: gnu: r-genomeinfodb: Update to 1.28.1., guix-commits, 2021/07/10
- 12/119: gnu: r-ensembldb: Update to 2.16.2., guix-commits, 2021/07/10
- 19/119: gnu: r-enrichplot: Update to 1.12.2., guix-commits, 2021/07/10
- 16/119: gnu: r-systempiper: Update to 1.26.3., guix-commits, 2021/07/10
- 25/119: gnu: r-bioconcotk: Update to 1.12.1., guix-commits, 2021/07/10
- 18/119: gnu: r-dose: Update to 3.18.1., guix-commits, 2021/07/10