From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddJ6U-0007SG-J2 for guix-patches@gnu.org; Thu, 03 Aug 2017 12:36:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddJ6S-00063A-WF for guix-patches@gnu.org; Thu, 03 Aug 2017 12:36:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37583) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddJ6S-000633-Sv for guix-patches@gnu.org; Thu, 03 Aug 2017 12:36:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ddJ6S-0003ZM-ML for guix-patches@gnu.org; Thu, 03 Aug 2017 12:36:04 -0400 Subject: [bug#27935] [PATCH 7/8] gnu: Add js-es5-shim. Resent-Message-ID: From: Ricardo Wurmus Date: Thu, 3 Aug 2017 18:34:37 +0200 Message-Id: <20170803163438.5742-7-rekado@elephly.net> In-Reply-To: <20170803163438.5742-1-rekado@elephly.net> References: <20170803163438.5742-1-rekado@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27935@debbugs.gnu.org Cc: Ricardo Wurmus * 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