mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-15 19:40:46 +02:00
gnu: Update some packages using old JavaScript minifier.
* gnu/packages/minetest.scm (minetest-basic-trains): New variable. * gnu/packages/bioinformatics.scm (bismark): Update uglifyjs input. * gnu/packages/ci.scm (laminar): Update uglifyjs input. * gnu/packages/cran.scm (r-shiny r-shinytree r-shinydashboard r-colourpicker r-threejs r-flexdashboard r-networkd3 r-dygraphs): Update uglifyjs input. * gnu/packages/javascript.scm (js-mathjax): Update uglifyjs input. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
cd5145875e
commit
f36b789f78
4 changed files with 28 additions and 29 deletions
|
@ -26,8 +26,8 @@
|
|||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages base)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages lisp-xyz)
|
||||
#:use-module (gnu packages readline)
|
||||
#:use-module (gnu packages uglifyjs)
|
||||
#:use-module (gnu packages web)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
|
@ -163,14 +163,14 @@ context menu in TypeScript.")
|
|||
(cond
|
||||
((string-match "\\.js$" file)
|
||||
(mkdir-p (dirname installed))
|
||||
(let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
|
||||
(let ((minified (open-pipe* OPEN_READ "uglifyjs" file)))
|
||||
(call-with-output-file installed
|
||||
(lambda (port)
|
||||
(dump-port minified port)))
|
||||
|
||||
(let ((exit (close-pipe minified)))
|
||||
(unless (zero? exit)
|
||||
(error "dear, uglify-js failed" exit)))))
|
||||
(error "dear, uglifyjs failed" exit)))))
|
||||
(else
|
||||
(install-file file (dirname installed))))))
|
||||
(find-files "."))
|
||||
|
@ -179,7 +179,7 @@ context menu in TypeScript.")
|
|||
(native-inputs
|
||||
`(("font-mathjax" ,font-mathjax)
|
||||
("glibc-utf8-locales" ,glibc-utf8-locales)
|
||||
("uglify-js" ,uglify-js)
|
||||
("uglifyjs" ,node-uglify-js)
|
||||
,@(package-native-inputs font-mathjax)))
|
||||
(synopsis "JavaScript display engine for LaTeX, MathML, and AsciiMath")
|
||||
(description "MathJax is a JavaScript display engine for LaTeX, MathML,
|
||||
|
@ -527,8 +527,7 @@ means that these shams cause many ES5 methods to silently fail.")
|
|||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-uglification
|
||||
;; Remove "export" keyword which prevents the file from being
|
||||
;; uglified by uglify-js. Moreover, that keyword is not present in
|
||||
;; Remove "export" keyword. That keyword is not present in
|
||||
;; the minified version of the library some projects are using,
|
||||
;; e.g.,
|
||||
;; <https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/blob/master/FileSaver.min.js>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue