summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorCharles <charles.b.jackson@protonmail.com>2021-09-18 00:05:55 -0500
committerEfraim Flashner <efraim@flashner.co.il>2021-09-22 16:03:19 +0300
commitf36b789f788ffe3ebdaaeac1d3a05534acaa909c (patch)
treebd91b580003d6c11aae5b4133a66ee2f9c5b7cf0 /gnu/packages
parentcd5145875e2741e704611753300f43c3caabdc02 (diff)
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/bioinformatics.scm6
-rw-r--r--gnu/packages/ci.scm8
-rw-r--r--gnu/packages/cran.scm32
-rw-r--r--gnu/packages/javascript.scm11
4 files changed, 28 insertions, 29 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 2b67cab609b..5a29d4b8115 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -106,7 +106,6 @@
106 #:use-module (gnu packages jemalloc) 106 #:use-module (gnu packages jemalloc)
107 #:use-module (gnu packages jupyter) 107 #:use-module (gnu packages jupyter)
108 #:use-module (gnu packages linux) 108 #:use-module (gnu packages linux)
109 #:use-module (gnu packages lisp-xyz)
110 #:use-module (gnu packages logging) 109 #:use-module (gnu packages logging)
111 #:use-module (gnu packages lsof) 110 #:use-module (gnu packages lsof)
112 #:use-module (gnu packages machine-learning) 111 #:use-module (gnu packages machine-learning)
@@ -148,6 +147,7 @@
148 #:use-module (gnu packages textutils) 147 #:use-module (gnu packages textutils)
149 #:use-module (gnu packages time) 148 #:use-module (gnu packages time)
150 #:use-module (gnu packages tls) 149 #:use-module (gnu packages tls)
150 #:use-module (gnu packages uglifyjs)
151 #:use-module (gnu packages vim) 151 #:use-module (gnu packages vim)
152 #:use-module (gnu packages web) 152 #:use-module (gnu packages web)
153 #:use-module (gnu packages wget) 153 #:use-module (gnu packages wget)
@@ -9318,7 +9318,7 @@ Browser.")
9318 (lambda* (#:key inputs #:allow-other-keys) 9318 (lambda* (#:key inputs #:allow-other-keys)
9319 (let* ((file (assoc-ref inputs "plotly.js")) 9319 (let* ((file (assoc-ref inputs "plotly.js"))
9320 (installed "plotly/plotly.js")) 9320 (installed "plotly/plotly.js"))
9321 (let ((minified (open-pipe* OPEN_READ "uglify-js" file))) 9321 (let ((minified (open-pipe* OPEN_READ "uglifyjs" file)))
9322 (call-with-output-file installed 9322 (call-with-output-file installed
9323 (cut dump-port minified <>)))) 9323 (cut dump-port minified <>))))
9324 #t)) 9324 #t))
@@ -9376,7 +9376,7 @@ Browser.")
9376 "v1.39.4/dist/plotly.js")) 9376 "v1.39.4/dist/plotly.js"))
9377 (sha256 9377 (sha256
9378 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr")))) 9378 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
9379 ("uglify-js" ,uglify-js))) 9379 ("uglifyjs" ,node-uglify-js)))
9380 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/bismark/") 9380 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/bismark/")
9381 (synopsis "Map bisulfite treated sequence reads and analyze methylation") 9381 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
9382 (description "Bismark is a program to map bisulfite treated sequencing 9382 (description "Bismark is a program to map bisulfite treated sequencing
diff --git a/gnu/packages/ci.scm b/gnu/packages/ci.scm
index b7ea77ca31d..6bcf7711a55 100644
--- a/gnu/packages/ci.scm
+++ b/gnu/packages/ci.scm
@@ -38,7 +38,6 @@
38 #:use-module (gnu packages guile) 38 #:use-module (gnu packages guile)
39 #:use-module (gnu packages guile-xyz) 39 #:use-module (gnu packages guile-xyz)
40 #:use-module (gnu packages gnupg) 40 #:use-module (gnu packages gnupg)
41 #:use-module (gnu packages lisp-xyz)
42 #:use-module (gnu packages mail) 41 #:use-module (gnu packages mail)
43 #:use-module (gnu packages package-management) 42 #:use-module (gnu packages package-management)
44 #:use-module (gnu packages perl) 43 #:use-module (gnu packages perl)
@@ -48,6 +47,7 @@
48 #:use-module (gnu packages sqlite) 47 #:use-module (gnu packages sqlite)
49 #:use-module (gnu packages tls) 48 #:use-module (gnu packages tls)
50 #:use-module (gnu packages texinfo) 49 #:use-module (gnu packages texinfo)
50 #:use-module (gnu packages uglifyjs)
51 #:use-module (gnu packages version-control) 51 #:use-module (gnu packages version-control)
52 #:use-module (gnu packages web) 52 #:use-module (gnu packages web)
53 #:use-module (gnu packages xml) 53 #:use-module (gnu packages xml)
@@ -252,7 +252,7 @@ intended as a replacement for Hydra.")
252 (let* ((file 252 (let* ((file
253 (assoc-ref inputs (string-append name ".js"))) 253 (assoc-ref inputs (string-append name ".js")))
254 (port 254 (port
255 (open-pipe* OPEN_READ "uglify-js" file)) 255 (open-pipe* OPEN_READ "uglifyjs" file))
256 (destination 256 (destination
257 (string-append 257 (string-append
258 "../build/js/" name ".min.js"))) 258 "../build/js/" name ".min.js")))
@@ -263,7 +263,7 @@ intended as a replacement for Hydra.")
263 263
264 (let ((exit (close-pipe port))) 264 (let ((exit (close-pipe port)))
265 (unless (zero? exit) 265 (unless (zero? exit)
266 (error "uglify-js failed" exit))))) 266 (error "uglifyjs failed" exit)))))
267 267
268 '("vue" 268 '("vue"
269 "vue-router" 269 "vue-router"
@@ -282,7 +282,7 @@ intended as a replacement for Hydra.")
282 ("zlib" ,zlib))) 282 ("zlib" ,zlib)))
283 (native-inputs 283 (native-inputs
284 `(("googletest" ,googletest) 284 `(("googletest" ,googletest)
285 ("uglify-js" ,uglify-js) 285 ("uglifyjs" ,node-uglify-js)
286 286
287 ("vue.js" 287 ("vue.js"
288 ,(origin (method url-fetch) 288 ,(origin (method url-fetch)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 018adde1142..b2a0bebeec8 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -84,7 +84,6 @@
84 #:use-module (gnu packages java) 84 #:use-module (gnu packages java)
85 #:use-module (gnu packages javascript) 85 #:use-module (gnu packages javascript)
86 #:use-module (gnu packages libevent) 86 #:use-module (gnu packages libevent)
87 #:use-module (gnu packages lisp-xyz)
88 #:use-module (gnu packages machine-learning) 87 #:use-module (gnu packages machine-learning)
89 #:use-module (gnu packages maths) 88 #:use-module (gnu packages maths)
90 #:use-module (gnu packages mpi) 89 #:use-module (gnu packages mpi)
@@ -104,6 +103,7 @@
104 #:use-module (gnu packages tcl) 103 #:use-module (gnu packages tcl)
105 #:use-module (gnu packages textutils) 104 #:use-module (gnu packages textutils)
106 #:use-module (gnu packages tls) 105 #:use-module (gnu packages tls)
106 #:use-module (gnu packages uglifyjs)
107 #:use-module (gnu packages version-control) 107 #:use-module (gnu packages version-control)
108 #:use-module (gnu packages video) 108 #:use-module (gnu packages video)
109 #:use-module (gnu packages web) 109 #:use-module (gnu packages web)
@@ -2110,7 +2110,7 @@ previewing themes in real time.")
2110 ("js-strftime" ,js-strftime) 2110 ("js-strftime" ,js-strftime)
2111 ("js-highlight" ,js-highlight))) 2111 ("js-highlight" ,js-highlight)))
2112 (native-inputs 2112 (native-inputs
2113 `(("uglify-js" ,uglify-js) 2113 `(("uglifyjs" ,node-uglify-js)
2114 ("gfortran" ,gfortran) 2114 ("gfortran" ,gfortran)
2115 ("js-bootstrap-accessibility" 2115 ("js-bootstrap-accessibility"
2116 ,(origin 2116 ,(origin
@@ -2177,7 +2177,7 @@ responsive, and powerful applications with minimal effort.")
2177 (for-each (lambda (source target) 2177 (for-each (lambda (source target)
2178 (format #t "Processing ~a --> ~a~%" 2178 (format #t "Processing ~a --> ~a~%"
2179 source target) 2179 source target)
2180 (let ((minified (open-pipe* OPEN_READ "uglify-js" source))) 2180 (let ((minified (open-pipe* OPEN_READ "uglifyjs" source)))
2181 (call-with-output-file target 2181 (call-with-output-file target
2182 (lambda (port) 2182 (lambda (port)
2183 (dump-port minified port))))) 2183 (dump-port minified port)))))
@@ -2192,7 +2192,7 @@ responsive, and powerful applications with minimal effort.")
2192 (inputs 2192 (inputs
2193 `(("js-requirejs" ,js-requirejs))) 2193 `(("js-requirejs" ,js-requirejs)))
2194 (native-inputs 2194 (native-inputs
2195 `(("uglify-js" ,uglify-js) 2195 `(("uglifyjs" ,node-uglify-js)
2196 ("js-jquery" 2196 ("js-jquery"
2197 ,(origin 2197 ,(origin
2198 (method url-fetch) 2198 (method url-fetch)
@@ -2230,7 +2230,7 @@ supports interactive trees, to enable rich, editable trees in Shiny.")
2230 (lambda _ 2230 (lambda _
2231 (with-directory-excursion "inst/AdminLTE" 2231 (with-directory-excursion "inst/AdminLTE"
2232 (delete-file "app.min.js") 2232 (delete-file "app.min.js")
2233 (let ((minified (open-pipe* OPEN_READ "uglify-js" "app.js"))) 2233 (let ((minified (open-pipe* OPEN_READ "uglifyjs" "app.js")))
2234 (call-with-output-file "app.min.js" 2234 (call-with-output-file "app.min.js"
2235 (lambda (port) 2235 (lambda (port)
2236 (dump-port minified port)))))))))) 2236 (dump-port minified port))))))))))
@@ -2239,7 +2239,7 @@ supports interactive trees, to enable rich, editable trees in Shiny.")
2239 ("r-promises" ,r-promises) 2239 ("r-promises" ,r-promises)
2240 ("r-shiny" ,r-shiny))) 2240 ("r-shiny" ,r-shiny)))
2241 (native-inputs 2241 (native-inputs
2242 `(("uglify-js" ,uglify-js))) 2242 `(("uglifyjs" ,node-uglify-js)))
2243 (home-page "https://rstudio.github.io/shinydashboard/") 2243 (home-page "https://rstudio.github.io/shinydashboard/")
2244 (synopsis "Create dashboards with shiny") 2244 (synopsis "Create dashboards with shiny")
2245 (description "This package provides an extension to the Shiny web 2245 (description "This package provides an extension to the Shiny web
@@ -15423,7 +15423,7 @@ to easily call your own custom JavaScript functions from R.")
15423 (format #t "Processing ~a --> ~a~%" 15423 (format #t "Processing ~a --> ~a~%"
15424 source target) 15424 source target)
15425 (delete-file target) 15425 (delete-file target)
15426 (let ((minified (open-pipe* OPEN_READ "uglify-js" source))) 15426 (let ((minified (open-pipe* OPEN_READ "uglifyjs" source)))
15427 (call-with-output-file target 15427 (call-with-output-file target
15428 (lambda (port) 15428 (lambda (port)
15429 (dump-port minified port))))) 15429 (dump-port minified port)))))
@@ -15439,7 +15439,7 @@ to easily call your own custom JavaScript functions from R.")
15439 ("r-shinyjs" ,r-shinyjs))) 15439 ("r-shinyjs" ,r-shinyjs)))
15440 (native-inputs 15440 (native-inputs
15441 `(("r-knitr" ,r-knitr) 15441 `(("r-knitr" ,r-knitr)
15442 ("uglify-js" ,uglify-js) 15442 ("uglifyjs" ,node-uglify-js)
15443 ("js-jquery" 15443 ("js-jquery"
15444 ,(origin 15444 ,(origin
15445 (method url-fetch) 15445 (method url-fetch)
@@ -17929,7 +17929,7 @@ and Learning to Rank measures (LambdaMart).")
17929 (format #t "Processing ~a --> ~a~%" 17929 (format #t "Processing ~a --> ~a~%"
17930 source target) 17930 source target)
17931 (delete-file target) 17931 (delete-file target)
17932 (let ((minified (open-pipe* OPEN_READ "uglify-js" source))) 17932 (let ((minified (open-pipe* OPEN_READ "uglifyjs" source)))
17933 (call-with-output-file target 17933 (call-with-output-file target
17934 (lambda (port) 17934 (lambda (port)
17935 (dump-port minified port))))) 17935 (dump-port minified port)))))
@@ -17941,7 +17941,7 @@ and Learning to Rank measures (LambdaMart).")
17941 ("r-htmlwidgets" ,r-htmlwidgets) 17941 ("r-htmlwidgets" ,r-htmlwidgets)
17942 ("r-igraph" ,r-igraph))) 17942 ("r-igraph" ,r-igraph)))
17943 (native-inputs 17943 (native-inputs
17944 `(("uglify-js" ,uglify-js) 17944 `(("uglifyjs" ,node-uglify-js)
17945 ("js-jquery" 17945 ("js-jquery"
17946 ,(origin 17946 ,(origin
17947 (method url-fetch) 17947 (method url-fetch)
@@ -18201,7 +18201,7 @@ etc.). Text boxes with automatic word wrap are also supported.")
18201 (for-each (lambda (source target) 18201 (for-each (lambda (source target)
18202 (format #t "Processing ~a --> ~a~%" 18202 (format #t "Processing ~a --> ~a~%"
18203 source target) 18203 source target)
18204 (let ((minified (open-pipe* OPEN_READ "uglify-js" source))) 18204 (let ((minified (open-pipe* OPEN_READ "uglifyjs" source)))
18205 (call-with-output-file target 18205 (call-with-output-file target
18206 (lambda (port) 18206 (lambda (port)
18207 (dump-port minified port))))) 18207 (dump-port minified port)))))
@@ -18215,7 +18215,7 @@ etc.). Text boxes with automatic word wrap are also supported.")
18215 ("r-rmarkdown" ,r-rmarkdown) 18215 ("r-rmarkdown" ,r-rmarkdown)
18216 ("r-shiny" ,r-shiny))) 18216 ("r-shiny" ,r-shiny)))
18217 (native-inputs 18217 (native-inputs
18218 `(("uglify-js" ,uglify-js) 18218 `(("uglifyjs" ,node-uglify-js)
18219 ("js-raphael" 18219 ("js-raphael"
18220 ,(origin 18220 ,(origin
18221 (method url-fetch) 18221 (method url-fetch)
@@ -20213,14 +20213,14 @@ tools for help in data interpretation.")
20213 (for-each (lambda (source target) 20213 (for-each (lambda (source target)
20214 (format #t "Processing ~a --> ~a~%" 20214 (format #t "Processing ~a --> ~a~%"
20215 source target) 20215 source target)
20216 (let ((minified (open-pipe* OPEN_READ "uglify-js" source))) 20216 (let ((minified (open-pipe* OPEN_READ "uglifyjs" source)))
20217 (call-with-output-file target 20217 (call-with-output-file target
20218 (lambda (port) 20218 (lambda (port)
20219 (dump-port minified port))))) 20219 (dump-port minified port)))))
20220 sources targets)))) 20220 sources targets))))
20221 #t))))) 20221 #t)))))
20222 (native-inputs 20222 (native-inputs
20223 `(("uglify-js" ,uglify-js) 20223 `(("uglifyjs" ,node-uglify-js)
20224 ;; NOTE: Make sure that this version of d3 is still valid when 20224 ;; NOTE: Make sure that this version of d3 is still valid when
20225 ;; upgrading the package. 20225 ;; upgrading the package.
20226 ("d3.v4.js" 20226 ("d3.v4.js"
@@ -24566,14 +24566,14 @@ documents, Shiny applications, Plumber APIs, plots, and static web content.")
24566 (for-each (lambda (source target) 24566 (for-each (lambda (source target)
24567 (format #t "Processing ~a --> ~a~%" 24567 (format #t "Processing ~a --> ~a~%"
24568 source target) 24568 source target)
24569 (let ((minified (open-pipe* OPEN_READ "uglify-js" source))) 24569 (let ((minified (open-pipe* OPEN_READ "uglifyjs" source)))
24570 (call-with-output-file target 24570 (call-with-output-file target
24571 (lambda (port) 24571 (lambda (port)
24572 (dump-port minified port))))) 24572 (dump-port minified port)))))
24573 sources targets)))) 24573 sources targets))))
24574 #t))))) 24574 #t)))))
24575 (native-inputs 24575 (native-inputs
24576 `(("uglify-js" ,uglify-js) 24576 `(("uglifyjs" ,node-uglify-js)
24577 ;; They actually use version 1.11.1, but this more recent version 24577 ;; They actually use version 1.11.1, but this more recent version
24578 ;; should be just fine. 24578 ;; should be just fine.
24579 ("js-jquery" 24579 ("js-jquery"
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index 81de5b67a6d..cdf9dd19fae 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -26,8 +26,8 @@
26 #:use-module (gnu packages) 26 #:use-module (gnu packages)
27 #:use-module (gnu packages base) 27 #:use-module (gnu packages base)
28 #:use-module (gnu packages compression) 28 #:use-module (gnu packages compression)
29 #:use-module (gnu packages lisp-xyz)
30 #:use-module (gnu packages readline) 29 #:use-module (gnu packages readline)
30 #:use-module (gnu packages uglifyjs)
31 #:use-module (gnu packages web) 31 #:use-module (gnu packages web)
32 #:use-module (guix packages) 32 #:use-module (guix packages)
33 #:use-module (guix download) 33 #:use-module (guix download)
@@ -163,14 +163,14 @@ context menu in TypeScript.")
163 (cond 163 (cond
164 ((string-match "\\.js$" file) 164 ((string-match "\\.js$" file)
165 (mkdir-p (dirname installed)) 165 (mkdir-p (dirname installed))
166 (let ((minified (open-pipe* OPEN_READ "uglify-js" file))) 166 (let ((minified (open-pipe* OPEN_READ "uglifyjs" file)))
167 (call-with-output-file installed 167 (call-with-output-file installed
168 (lambda (port) 168 (lambda (port)
169 (dump-port minified port))) 169 (dump-port minified port)))
170 170
171 (let ((exit (close-pipe minified))) 171 (let ((exit (close-pipe minified)))
172 (unless (zero? exit) 172 (unless (zero? exit)
173 (error "dear, uglify-js failed" exit))))) 173 (error "dear, uglifyjs failed" exit)))))
174 (else 174 (else
175 (install-file file (dirname installed)))))) 175 (install-file file (dirname installed))))))
176 (find-files ".")) 176 (find-files "."))
@@ -179,7 +179,7 @@ context menu in TypeScript.")
179 (native-inputs 179 (native-inputs
180 `(("font-mathjax" ,font-mathjax) 180 `(("font-mathjax" ,font-mathjax)
181 ("glibc-utf8-locales" ,glibc-utf8-locales) 181 ("glibc-utf8-locales" ,glibc-utf8-locales)
182 ("uglify-js" ,uglify-js) 182 ("uglifyjs" ,node-uglify-js)
183 ,@(package-native-inputs font-mathjax))) 183 ,@(package-native-inputs font-mathjax)))
184 (synopsis "JavaScript display engine for LaTeX, MathML, and AsciiMath") 184 (synopsis "JavaScript display engine for LaTeX, MathML, and AsciiMath")
185 (description "MathJax is a JavaScript display engine for LaTeX, MathML, 185 (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.")
527 `(#:phases 527 `(#:phases
528 (modify-phases %standard-phases 528 (modify-phases %standard-phases
529 (add-after 'unpack 'fix-uglification 529 (add-after 'unpack 'fix-uglification
530 ;; Remove "export" keyword which prevents the file from being 530 ;; Remove "export" keyword. That keyword is not present in
531 ;; uglified by uglify-js. Moreover, that keyword is not present in
532 ;; the minified version of the library some projects are using, 531 ;; the minified version of the library some projects are using,
533 ;; e.g., 532 ;; e.g.,
534 ;; <https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/blob/master/FileSaver.min.js> 533 ;; <https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/blob/master/FileSaver.min.js>