mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-13 18:36:14 -05:00
gnu: r-bslib: Update to 0.5.1.
* gnu/packages/cran.scm (r-bslib): Update to 0.5.1. [source]: Delete more minified JavaScript files. [arguments]: Adjust JavaScript build code. [native-inputs]: Update typescript-components repository.
This commit is contained in:
parent
95966cd5fa
commit
1d325d1fdb
1 changed files with 27 additions and 10 deletions
|
@ -4328,19 +4328,21 @@ (define-public r-saver
|
||||||
(define-public r-bslib
|
(define-public r-bslib
|
||||||
(package
|
(package
|
||||||
(name "r-bslib")
|
(name "r-bslib")
|
||||||
(version "0.5.0")
|
(version "0.5.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (cran-uri "bslib" version))
|
(uri (cran-uri "bslib" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"05fi1cbb33hvrxx3vibbai7bzlx60jxd3iaqpc86x0224b3gpim2"))
|
"03phbr6zax3898yvdfqmrs0sjiik4pfn34ksysf95fp348in2xdi"))
|
||||||
(snippet
|
(snippet
|
||||||
'(for-each delete-file
|
'(for-each delete-file
|
||||||
'("inst/components/accordion.min.js"
|
'("inst/components/dist/accordion/accordion.min.js"
|
||||||
"inst/components/card.min.js"
|
"inst/components/dist/bslibShiny/bslibShiny.min.js"
|
||||||
"inst/components/sidebar.min.js"
|
"inst/components/dist/card/card.min.js"
|
||||||
|
"inst/components/dist/sidebar/sidebar.min.js"
|
||||||
|
"inst/components/dist/webComponents/webComponents.min.js"
|
||||||
"inst/lib/bs-a11y-p/plugins/js/bootstrap-accessibility.min.js"
|
"inst/lib/bs-a11y-p/plugins/js/bootstrap-accessibility.min.js"
|
||||||
"inst/lib/bs3/assets/javascripts/bootstrap.min.js"
|
"inst/lib/bs3/assets/javascripts/bootstrap.min.js"
|
||||||
"inst/lib/bs4/dist/js/bootstrap.bundle.min.js"
|
"inst/lib/bs4/dist/js/bootstrap.bundle.min.js"
|
||||||
|
@ -4364,9 +4366,24 @@ (define-public r-bslib
|
||||||
(string-append
|
(string-append
|
||||||
#$(this-package-native-input "typescript-components")
|
#$(this-package-native-input "typescript-components")
|
||||||
"/srcts/src/components/" component ".ts")
|
"/srcts/src/components/" component ".ts")
|
||||||
(string-append "--outfile=inst/components/"
|
(string-append "--outfile=inst/components/dist/"
|
||||||
component ".min.js")))
|
component "/" component ".min.js")))
|
||||||
'("accordion" "sidebar" "card"))
|
'("accordion" "bslibShiny" "card" "sidebar"))
|
||||||
|
;; XXX: webComponents requires "lit" for type annotations, which
|
||||||
|
;; we cannot easily build.
|
||||||
|
(with-directory-excursion "inst/"
|
||||||
|
(call-with-values
|
||||||
|
(lambda ()
|
||||||
|
(unzip2
|
||||||
|
`(("components/dist/webComponents/webComponents.js"
|
||||||
|
"components/dist/webComponents/webComponents.min.js"))))
|
||||||
|
(lambda (sources targets)
|
||||||
|
(for-each (lambda (source target)
|
||||||
|
(format #t "Processing ~a --> ~a~%"
|
||||||
|
source target)
|
||||||
|
(invoke "esbuild" source "--minify"
|
||||||
|
(string-append "--outfile=" target)))
|
||||||
|
sources targets))))
|
||||||
(with-directory-excursion "inst/lib/"
|
(with-directory-excursion "inst/lib/"
|
||||||
(call-with-values
|
(call-with-values
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
@ -4423,7 +4440,7 @@ (define-public r-bslib
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1krmavvbnpikiyxgv36vf70p8qzy1rymh1l41pjc7z74hk526p7c"))))))
|
"0rvwdn1xg7vwphq0bpa7s81f2d2xyhmy5kb516b0lxvc7qfdypa4"))))))
|
||||||
(home-page "https://rstudio.github.io/bslib/")
|
(home-page "https://rstudio.github.io/bslib/")
|
||||||
(synopsis "Custom Bootstrap Sass themes for shiny and rmarkdown")
|
(synopsis "Custom Bootstrap Sass themes for shiny and rmarkdown")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue