gnu: r-colourpicker: Update to 1.3.0.
* gnu/packages/cran.scm (r-colourpicker): Update to 1.3.0. [source]: Delete minified JavaScript files. [arguments]: Do not delete JavaScript files in build phase.
This commit is contained in:
parent
1d325d1fdb
commit
f260c878c0
1 changed files with 10 additions and 5 deletions
|
@ -20987,18 +20987,24 @@ to easily call your own custom JavaScript functions from R.")
|
||||||
(define-public r-colourpicker
|
(define-public r-colourpicker
|
||||||
(package
|
(package
|
||||||
(name "r-colourpicker")
|
(name "r-colourpicker")
|
||||||
(version "1.2.0")
|
(version "1.3.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (cran-uri "colourpicker" version))
|
(uri (cran-uri "colourpicker" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"12k3m2s49pc1p2hzd4zqqzzdf94q7hhqz7zgp8w908a6w3p80b5w"))))
|
"0415238r7a8xrp3kvq8lczzxz534irj2q1zfbb0pl7xfs6663wn7"))
|
||||||
|
(snippet
|
||||||
|
'(for-each delete-file
|
||||||
|
(list "inst/examples/colourInput/www/salvattore.min.js"
|
||||||
|
"inst/htmlwidgets/lib/jquery/jquery.min.js"
|
||||||
|
"inst/www/shared/colourpicker/js/colourpicker.min.js")))))
|
||||||
(build-system r-build-system)
|
(build-system r-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
|
'(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'process-javascript
|
(add-after 'unpack 'process-javascript
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(with-directory-excursion "inst"
|
(with-directory-excursion "inst"
|
||||||
|
@ -21012,7 +21018,6 @@ to easily call your own custom JavaScript functions from R.")
|
||||||
(for-each (lambda (source target)
|
(for-each (lambda (source target)
|
||||||
(format #true "Processing ~a --> ~a~%"
|
(format #true "Processing ~a --> ~a~%"
|
||||||
source target)
|
source target)
|
||||||
(delete-file target)
|
|
||||||
(invoke "esbuild" source "--minify"
|
(invoke "esbuild" source "--minify"
|
||||||
(string-append "--outfile=" target)))
|
(string-append "--outfile=" target)))
|
||||||
(map car mapping)
|
(map car mapping)
|
||||||
|
|
Reference in a new issue