From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddJ6W-0007Vm-IN for guix-patches@gnu.org; Thu, 03 Aug 2017 12:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddJ6Q-00060t-WC for guix-patches@gnu.org; Thu, 03 Aug 2017 12:36:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddJ6Q-00060g-TE for guix-patches@gnu.org; Thu, 03 Aug 2017 12:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ddJ6Q-0003Yt-Mf for guix-patches@gnu.org; Thu, 03 Aug 2017 12:36:02 -0400 Subject: [bug#27935] [PATCH 3/8] gnu: Add js-strftime. Resent-Message-ID: From: Ricardo Wurmus Date: Thu, 3 Aug 2017 18:34:33 +0200 Message-Id: <20170803163438.5742-3-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-strftime): New variable. --- gnu/packages/javascript.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index a806cb074..fdf522474 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm @@ -206,3 +206,26 @@ function that uses recursive descent instead of @code{eval}. and DAGs in JSON, and to then recover them. This is a capability that is not provided by ES5. @code{JSONPath} is used to represent the links.") (license license:public-domain)))) + +(define-public js-strftime + (package + (name "js-strftime") + (version "0.10.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/samsonjs/strftime/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1iya43w7y26y2dp9l4d40bhjc4scb5a9mng5ng5c8hsqr82f1375")))) + (build-system minify-build-system) + (arguments + `(#:javascript-files '("strftime.js"))) + (home-page "https://github.com/samsonjs/strftime") + (synopsis "Implementation of strftime to JavaScript") + (description "This is an implementation of the @code{strftime} procedure +for JavaScript. It works in (at least) node.js and browsers. It supports +localization and timezones. Most standard specifiers from C are supported as +well as some other extensions from Ruby.") + (license license:expat))) -- 2.13.3