Subject: [bug#52387] [PATCH 3/5] gnu: Add cl-decimals.

From: Jacob MacDonald <[email-masked]>
Date: Mon, 13 Dec 2021 12:41:48 -0600

From c76de2fe54d7f0a174af3e9936df21f2fa78491c Mon Sep 17 00:00:00 2001
From: Jacob MacDonald <[email-masked]>
Date: Wed, 8 Dec 2021 21:01:24 -0600
Subject: [PATCH 3/5] gnu: Add cl-decimals.

* gnu/packages/lisp-xyz.scm (sbcl-decimals, cl-decimals, ecl-decimals):
  New variables.
---
 gnu/packages/lisp-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 11c78a306c..286eaba84a 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20332,3 +20332,32 @@ (define-public cl-random-state
 
 (define-public ecl-random-state
   (sbcl-package->ecl-package sbcl-random-state))
+
+(define-public sbcl-decimals
+  (package
+    (name "sbcl-decimals")
+    (version "2021")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tlikonen/cl-decimals")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0wn5hq1pwd3wpjqqhpjzarcdk1q6416g8y447iaf55j5nbhlmbn6"))))
+    (build-system asdf-build-system/sbcl)
+    (home-page "https://github.com/tlikonen/cl-decimals")
+    (synopsis "Decimal number parser and formatting package for Common Lisp")
+    (description "This Common Lisp package offers functions for parsing and
+formatting decimal numbers.  Package's main interface are functions
+@code{parse-decimal-number} and @code{format-decimal-number}.  The former is
+for parsing strings for decimal numbers and the latter for pretty-printing
+them as strings.")
+    (license license:cc0)))
+
+(define-public cl-decimals
+  (sbcl-package->cl-source-package sbcl-decimals))
+
+(define-public ecl-decimals
+  (sbcl-package->ecl-package sbcl-decimals))
-- 
2.34.0