diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2019-09-17 16:17:20 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-09-17 16:27:15 +0200 |
| commit | 9ff87bb99614923fa3336ab4bbf22e3444709b48 (patch) | |
| tree | fa169a6cc0fdc8d92bb4c4a4f265afc2ba29a890 /gnu/packages/javascript.scm | |
| parent | ae71bef532d6b1c9d1481a3ac65827f148b1e45b (diff) | |
| parent | 9e8e252026f558933bdd9cfc26a75d13954b3e8e (diff) | |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/javascript.scm')
| -rw-r--r-- | gnu/packages/javascript.scm | 139 |
1 files changed, 71 insertions, 68 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index 9e1818dfaf5..2993eb66f69 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> | 2 | ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> |
| 3 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> | 3 | ;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net> |
| 4 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> | 5 | ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
| 6 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> | 6 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
| @@ -144,45 +144,20 @@ be able to view it naturally and easily."))) | |||
| 144 | (name "js-respond") | 144 | (name "js-respond") |
| 145 | (version "1.4.2") | 145 | (version "1.4.2") |
| 146 | (source (origin | 146 | (source (origin |
| 147 | (method url-fetch) | 147 | (method git-fetch) |
| 148 | (uri (string-append "https://github.com/scottjehl/Respond/" | 148 | (uri (git-reference |
| 149 | "archive/" version ".tar.gz")) | 149 | (url "https://github.com/scottjehl/Respond") |
| 150 | (file-name (string-append name "-" version ".tar.gz")) | 150 | (commit version))) |
| 151 | (file-name (git-file-name name version)) | ||
| 151 | (sha256 | 152 | (sha256 |
| 152 | (base32 | 153 | (base32 |
| 153 | "0ds1ya2a185jp93mdn07159c2x8zczwi960ykrawpp62bwk2n93d")))) | 154 | "00xid731rirc7sdy1gc8qal3v9g0agr2qx15hm4x97l1lcbylyn2")))) |
| 154 | (build-system trivial-build-system) | 155 | (build-system minify-build-system) |
| 155 | (arguments | 156 | (arguments |
| 156 | `(#:modules ((guix build utils)) | 157 | `(#:javascript-files '("src/matchmedia.addListener.js" |
| 157 | #:builder | 158 | "src/matchmedia.polyfill.js" |
| 158 | (begin | 159 | "src/respond.js"))) |
| 159 | (use-modules (guix build utils) | ||
| 160 | (ice-9 match) | ||
| 161 | (ice-9 popen) | ||
| 162 | (srfi srfi-26)) | ||
| 163 | (set-path-environment-variable | ||
| 164 | "PATH" '("bin") (map (match-lambda | ||
| 165 | ((_ . input) | ||
| 166 | input)) | ||
| 167 | %build-inputs)) | ||
| 168 | (let ((install-directory (string-append %output | ||
| 169 | "/share/javascript/respond/"))) | ||
| 170 | (invoke "tar" "xvf" | ||
| 171 | (assoc-ref %build-inputs "source") | ||
| 172 | "--strip" "1") | ||
| 173 | (mkdir-p install-directory) | ||
| 174 | (let* ((file "src/respond.js") | ||
| 175 | (installed (string-append install-directory "respond.min.js"))) | ||
| 176 | (let ((minified (open-pipe* OPEN_READ "uglify-js" file))) | ||
| 177 | (call-with-output-file installed | ||
| 178 | (cut dump-port minified <>))))) | ||
| 179 | #t))) | ||
| 180 | (home-page "https://github.com/scottjehl/Respond") | 160 | (home-page "https://github.com/scottjehl/Respond") |
| 181 | (native-inputs | ||
| 182 | `(("uglify-js" ,uglify-js) | ||
| 183 | ("source" ,source) | ||
| 184 | ("gzip" ,gzip) | ||
| 185 | ("tar" ,tar))) | ||
| 186 | (synopsis "Polyfill for min/max-width CSS3 Media Queries") | 161 | (synopsis "Polyfill for min/max-width CSS3 Media Queries") |
| 187 | (description "The goal of this script is to provide a fast and lightweight | 162 | (description "The goal of this script is to provide a fast and lightweight |
| 188 | script to enable responsive web designs in browsers that don't support CSS3 | 163 | script to enable responsive web designs in browsers that don't support CSS3 |
| @@ -194,13 +169,14 @@ Media Queries.") | |||
| 194 | (name "js-html5shiv") | 169 | (name "js-html5shiv") |
| 195 | (version "3.7.3") | 170 | (version "3.7.3") |
| 196 | (source (origin | 171 | (source (origin |
| 197 | (method url-fetch) | 172 | (method git-fetch) |
| 198 | (uri (string-append "https://github.com/aFarkas/html5shiv/" | 173 | (uri (git-reference |
| 199 | "archive/" version ".tar.gz")) | 174 | (url "https://github.com/aFarkas/html5shiv") |
| 200 | (file-name (string-append name "-" version ".tar.gz")) | 175 | (commit version))) |
| 176 | (file-name (git-file-name name version)) | ||
| 201 | (sha256 | 177 | (sha256 |
| 202 | (base32 | 178 | (base32 |
| 203 | "0inlbpxpqzdyi24lqagzf7l24zxg0y02xcpqs2h4npjscazzw7hg")))) | 179 | "0y1c5nyq0brl9fjdihhax33vks4s1ij9iv113879sg3zflmgqpd0")))) |
| 204 | (build-system minify-build-system) | 180 | (build-system minify-build-system) |
| 205 | (home-page "https://github.com/aFarkas/html5shiv") | 181 | (home-page "https://github.com/aFarkas/html5shiv") |
| 206 | (synopsis "Enable HTML5 sectioning elements in legacy browsers") | 182 | (synopsis "Enable HTML5 sectioning elements in legacy browsers") |
| @@ -264,13 +240,14 @@ provided by ES5. @code{JSONPath} is used to represent the links.") | |||
| 264 | (name "js-strftime") | 240 | (name "js-strftime") |
| 265 | (version "0.10.0") | 241 | (version "0.10.0") |
| 266 | (source (origin | 242 | (source (origin |
| 267 | (method url-fetch) | 243 | (method git-fetch) |
| 268 | (uri (string-append "https://github.com/samsonjs/strftime/" | 244 | (uri (git-reference |
| 269 | "archive/v" version ".tar.gz")) | 245 | (url"https://github.com/samsonjs/strftime") |
| 270 | (file-name (string-append name "-" version ".tar.gz")) | 246 | (commit (string-append "v" version)))) |
| 247 | (file-name (git-file-name name version)) | ||
| 271 | (sha256 | 248 | (sha256 |
| 272 | (base32 | 249 | (base32 |
| 273 | "1iya43w7y26y2dp9l4d40bhjc4scb5a9mng5ng5c8hsqr82f1375")))) | 250 | "131nmlivazwxyba25kh9lda99749fq4xsyin6lzfalaaydviby4p")))) |
| 274 | (build-system minify-build-system) | 251 | (build-system minify-build-system) |
| 275 | (arguments | 252 | (arguments |
| 276 | `(#:javascript-files '("strftime.js"))) | 253 | `(#:javascript-files '("strftime.js"))) |
| @@ -287,13 +264,14 @@ well as some other extensions from Ruby.") | |||
| 287 | (name "js-highlight") | 264 | (name "js-highlight") |
| 288 | (version "9.12.0") | 265 | (version "9.12.0") |
| 289 | (source (origin | 266 | (source (origin |
| 290 | (method url-fetch) | 267 | (method git-fetch) |
| 291 | (uri (string-append "https://github.com/isagalaev/highlight.js/" | 268 | (uri (git-reference |
| 292 | "archive/" version ".tar.gz")) | 269 | (url "https://github.com/isagalaev/highlight.js") |
| 293 | (file-name (string-append name "-" version ".tar.gz")) | 270 | (commit version))) |
| 271 | (file-name (git-file-name name version)) | ||
| 294 | (sha256 | 272 | (sha256 |
| 295 | (base32 | 273 | (base32 |
| 296 | "1jjn9mj7fwq4zpr6is438bscf03b3q8jkj0k5c3fc6pkmjnhw939")))) | 274 | "12qz22qjpd6svj58pwgcwg2x2rzhihfdrxg6lgj39nfpaln6dris")))) |
| 297 | (build-system minify-build-system) | 275 | (build-system minify-build-system) |
| 298 | (arguments | 276 | (arguments |
| 299 | `(#:javascript-files '("src/highlight.js"))) | 277 | `(#:javascript-files '("src/highlight.js"))) |
| @@ -329,18 +307,41 @@ Javascript library, adding sorting, paging and filtering abilities to plain | |||
| 329 | HTML tables with minimal effort.") | 307 | HTML tables with minimal effort.") |
| 330 | (license license:expat))) | 308 | (license license:expat))) |
| 331 | 309 | ||
| 310 | (define-public js-requirejs | ||
| 311 | (package | ||
| 312 | (name "js-requirejs") | ||
| 313 | (version "2.3.6") | ||
| 314 | (source (origin | ||
| 315 | (method git-fetch) | ||
| 316 | (uri (git-reference | ||
| 317 | (url "https://github.com/requirejs/requirejs.git") | ||
| 318 | (commit version))) | ||
| 319 | (file-name (git-file-name name version)) | ||
| 320 | (sha256 | ||
| 321 | (base32 | ||
| 322 | "0cvd5y2mb3h6yil3niqn3gjqrzixdsxcz4rvc2f0hg4kzp5y0w86")))) | ||
| 323 | (build-system minify-build-system) | ||
| 324 | (arguments `(#:javascript-files '("require.js"))) | ||
| 325 | (home-page "https://github.com/requirejs/requirejs/") | ||
| 326 | (synopsis "File and module loader for JavaScript") | ||
| 327 | (description "RequireJS loads plain JavaScript files as well as more | ||
| 328 | defined modules. It is optimized for in-browser use, including in a Web | ||
| 329 | Worker, but it can be used in other JavaScript environments.") | ||
| 330 | (license license:expat))) | ||
| 331 | |||
| 332 | (define-public js-selectize | 332 | (define-public js-selectize |
| 333 | (package | 333 | (package |
| 334 | (name "js-selectize") | 334 | (name "js-selectize") |
| 335 | (version "0.12.4") | 335 | (version "0.12.6") |
| 336 | (source (origin | 336 | (source (origin |
| 337 | (method url-fetch) | 337 | (method git-fetch) |
| 338 | (uri (string-append "https://github.com/selectize/selectize.js/" | 338 | (uri (git-reference |
| 339 | "archive/v" version ".tar.gz")) | 339 | (url "https://github.com/selectize/selectize.js") |
| 340 | (file-name (string-append name "-" version ".tar.gz")) | 340 | (commit (string-append "v" version)))) |
| 341 | (file-name (git-file-name name version)) | ||
| 341 | (sha256 | 342 | (sha256 |
| 342 | (base32 | 343 | (base32 |
| 343 | "0756p49aaz34mw2dx8k1gxf210mngfrri25vkba0j7wihd2af8gn")))) | 344 | "15gichl8wi6yxag2ps723nxrgyan15976dzsnvw9h9py8sbyyzjn")))) |
| 344 | (build-system minify-build-system) | 345 | (build-system minify-build-system) |
| 345 | (arguments `(#:javascript-files '("src/selectize.js"))) | 346 | (arguments `(#:javascript-files '("src/selectize.js"))) |
| 346 | (home-page "http://selectize.github.io/selectize.js/") | 347 | (home-page "http://selectize.github.io/selectize.js/") |
| @@ -353,15 +354,16 @@ navigation; it is useful for tagging, contact lists, etc.") | |||
| 353 | (define-public js-es5-shim | 354 | (define-public js-es5-shim |
| 354 | (package | 355 | (package |
| 355 | (name "js-es5-shim") | 356 | (name "js-es5-shim") |
| 356 | (version "4.5.9") | 357 | (version "4.5.13") |
| 357 | (source (origin | 358 | (source (origin |
| 358 | (method url-fetch) | 359 | (method git-fetch) |
| 359 | (uri (string-append "https://github.com/es-shims/es5-shim/" | 360 | (uri (git-reference |
| 360 | "archive/v" version ".tar.gz")) | 361 | (url "https://github.com/es-shims/es5-shim") |
| 361 | (file-name (string-append name "-" version ".tar.gz")) | 362 | (commit (string-append "v" version)))) |
| 363 | (file-name (git-file-name name version)) | ||
| 362 | (sha256 | 364 | (sha256 |
| 363 | (base32 | 365 | (base32 |
| 364 | "0yfndyijz0ykddzprpvfjb2453gzpn528klmwycwbqc1bqd3m1hl")))) | 366 | "142w384fbyllq4yggv173g82lw3wix4jqcg6hkhx1ymq89vvnpmh")))) |
| 365 | (build-system minify-build-system) | 367 | (build-system minify-build-system) |
| 366 | (arguments `(#:javascript-files | 368 | (arguments `(#:javascript-files |
| 367 | '("es5-sham.js" | 369 | '("es5-sham.js" |
| @@ -381,13 +383,14 @@ means that these shams cause many ES5 methods to silently fail.") | |||
| 381 | (name "js-filesaver") | 383 | (name "js-filesaver") |
| 382 | (version "1.3.8") | 384 | (version "1.3.8") |
| 383 | (source (origin | 385 | (source (origin |
| 384 | (method url-fetch) | 386 | (method git-fetch) |
| 385 | (uri (string-append "https://github.com/eligrey/FileSaver.js/" | 387 | (uri (git-reference |
| 386 | "archive/" version ".tar.gz")) | 388 | (url "https://github.com/eligrey/FileSaver.js") |
| 387 | (file-name (string-append name "-" version)) | 389 | (commit version))) |
| 390 | (file-name (git-file-name name version)) | ||
| 388 | (sha256 | 391 | (sha256 |
| 389 | (base32 | 392 | (base32 |
| 390 | "1rkhfqs5plaj628kzj7qgm5qahy4v7ihygifidqr6g6265mil97h")))) | 393 | "0gvqk0hnr8fig0n4da7vj7q6z31bcyv52916xz3rbmdj3pgpiv1d")))) |
| 391 | (build-system minify-build-system) | 394 | (build-system minify-build-system) |
| 392 | (arguments | 395 | (arguments |
| 393 | `(#:phases | 396 | `(#:phases |
