From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFOMp-0001tE-GB for guix-patches@gnu.org; Mon, 29 May 2017 13:22:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFOMl-0006Ld-8o for guix-patches@gnu.org; Mon, 29 May 2017 13:22:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFOMl-0006LX-5f for guix-patches@gnu.org; Mon, 29 May 2017 13:22:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFOMk-0000fo-Vx for guix-patches@gnu.org; Mon, 29 May 2017 13:22:02 -0400 Subject: bug#27132: [PATCH 3/6] gnu: Add sbcl-parse-number. Resent-Message-ID: From: Ricardo Wurmus Date: Mon, 29 May 2017 19:21:28 +0200 Message-Id: <20170529172131.20954-3-rekado@elephly.net> In-Reply-To: <20170529172131.20954-1-rekado@elephly.net> References: <20170529172131.20954-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: 27132@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/lisp.scm (sbcl-parse-number): New variable. --- gnu/packages/lisp.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 473c31f39..240c1b27f 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -1249,3 +1249,27 @@ multiple inspectors with independent history.") (description "Parse-js is a Common Lisp package for parsing JavaScript (ECMAScript 3). It has basic support for ECMAScript 5.") (license license:zlib)))) + +(define-public sbcl-parse-number + (package + (name "sbcl-parse-number") + (version "1.5") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/sharplispers/parse-number/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1k6s4v65ksc1j5i0dprvzfvj213v6nah7i0rgd0726ngfjisj9ir")))) + (build-system asdf-build-system/sbcl) + (home-page "http://www.cliki.net/PARSE-NUMBER") + (synopsis "Parse numbers") + (description "@code{parse-number} is a library of functions for parsing +strings into one of the standard Common Lisp number types without using the +reader. @code{parse-number} accepts an arbitrary string and attempts to parse +the string into one of the standard Common Lisp number types, if possible, or +else @code{parse-number} signals an error of type @code{invalid-number}.") + (license license:bsd-3))) + -- 2.12.2