diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-03-30 17:47:37 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-03-30 19:21:06 +0200 |
commit | d601d4ecf58fdf76689f6518f389a7c742fd72ab (patch) | |
tree | 93b9a2ae93c8a070d3c61642e86e89595e6d82a0 | |
parent | 0a780005a7dd48aa218b3f1c23c49273f1d73338 (diff) | |
download | guix-d601d4ecf58fdf76689f6518f389a7c742fd72ab.tar.gz |
gnu: r-rgl: Update to 1.1.3.
* gnu/packages/cran.scm (r-rgl): Update to 1.1.3. [source]: Delete minified JavaScript. [arguments]: Process JavaScript source file in new build phase. [native-inputs]: Add esbuild.
-rw-r--r-- | gnu/packages/cran.scm | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 11472c8bc6..50631403ea 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -16195,22 +16195,39 @@ netCDF files.") Bioconductor packages.") (license license:artistic2.0))) +;; TODO: one more minified JavaScript files is included that should be built +;; from the included .src.js files, but it is not entirely clear how. The +;; file is inst/htmlwidgets/lib/rglClass/rglClass.min.js. (define-public r-rgl (package (name "r-rgl") - (version "1.0.1") + (version "1.1.3") (source (origin (method url-fetch) (uri (cran-uri "rgl" version)) (sha256 (base32 - "1j1g1b1j6azhg944ddzzrxgynb2bfl14l5qz58n4mhvxrbx018w9")))) + "1blasg60x38z57ds6x7yb4rvjx21yf4s99q93sl1w9h6mg14d8jg")) + (snippet + '(delete-file "inst/htmlwidgets/lib/CanvasMatrix/CanvasMatrix.min.js")))) (build-system r-build-system) + (arguments + (list + #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'process-javascript + (lambda* (#:key inputs #:allow-other-keys) + (with-directory-excursion "inst/htmlwidgets/lib/" + (let ((source "CanvasMatrix/CanvasMatrix.src.js") + (target "CanvasMatrix/CanvasMatrix.min.js")) + (invoke "esbuild" source "--minify" + (string-append "--outfile=" target))))))))) (native-inputs - (list pkg-config + (list esbuild + pkg-config r-knitr - r-rmarkdown)) ;for vignettes + r-rmarkdown)) ;for vignettes (inputs (list freetype libpng |