From: Ricardo Wurmus <rekado@elephly.net>
To: 27935@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>
Subject: [bug#27935] [PATCH 7/8] gnu: Add js-es5-shim.
Date: Thu, 3 Aug 2017 18:34:37 +0200 [thread overview]
Message-ID: <20170803163438.5742-7-rekado@elephly.net> (raw)
In-Reply-To: <20170803163438.5742-1-rekado@elephly.net>
* gnu/packages/javascript.scm (js-es5-shim): New variable.
---
gnu/packages/javascript.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index 19021ac5a..12f12bf8f 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -297,3 +297,29 @@ HTML tables with minimal effort.")
box. It's jQuery based and it has autocomplete and native-feeling keyboard
navigation; it is useful for tagging, contact lists, etc.")
(license license:asl2.0)))
+
+(define-public js-es5-shim
+ (package
+ (name "js-es5-shim")
+ (version "4.5.9")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/es-shims/es5-shim/"
+ "archive/v" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0yfndyijz0ykddzprpvfjb2453gzpn528klmwycwbqc1bqd3m1hl"))))
+ (build-system minify-build-system)
+ (arguments `(#:javascript-files
+ '("es5-sham.js"
+ "es5-shim.js")))
+ (home-page "https://github.com/es-shims/es5-shim")
+ (synopsis "ECMAScript 5 compatibility shims for legacy JavaScript engines")
+ (description "@code{es5-shim.js} patches a JavaScript context to contain
+all ECMAScript 5 methods that can be faithfully emulated with a legacy
+JavaScript engine. @code{es5-sham.js} patches other ES5 methods as closely as
+possible. Many of these shams are intended only to allow code to be written
+to ES5 without causing run-time errors in older engines. In many cases, this
+means that these shams cause many ES5 methods to silently fail.")
+ (license license:expat)))
--
2.13.3
next prev parent reply other threads:[~2017-08-03 16:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-03 16:30 [bug#27935] gnu: Add r-shiny Ricardo Wurmus
2017-08-03 16:34 ` [bug#27935] [PATCH 1/8] gnu: Add js-html5shiv Ricardo Wurmus
2017-08-03 16:34 ` [bug#27935] [PATCH 2/8] gnu: Add js-json2 Ricardo Wurmus
2017-08-03 16:34 ` [bug#27935] [PATCH 3/8] gnu: Add js-strftime Ricardo Wurmus
2017-08-03 16:34 ` [bug#27935] [PATCH 4/8] gnu: Add js-highlight Ricardo Wurmus
2017-08-03 16:34 ` [bug#27935] [PATCH 5/8] gnu: Add js-datatables Ricardo Wurmus
2017-08-03 16:34 ` [bug#27935] [PATCH 6/8] gnu: Add js-selectize Ricardo Wurmus
2017-08-03 16:34 ` Ricardo Wurmus [this message]
2017-08-03 16:34 ` [bug#27935] [PATCH 8/8] gnu: Add r-shiny Ricardo Wurmus
2017-08-04 9:27 ` bug#27924: " Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170803163438.5742-7-rekado@elephly.net \
--to=rekado@elephly.net \
--cc=27935@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).