Subject: [PATCH v3 4/8] gnu: Add cl-special-functions.

From: jgart <[email-masked]>
Date: Sun, 15 Jan 2023 15:59:10 -0600

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

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index b0fa3244d5..e1b1f74d61 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -26748,6 +26748,46 @@ (define-public cl-statistics
 #;(define-public ecl-statistics
   (sbcl-package->ecl-package sbcl-statistics))
 
+(define-public sbcl-special-functions
+  (let ((commit "f3ca2792ff3f8351839c366413da6b1bb2965a58")
+        (revision "0"))
+    (package
+      (name "sbcl-special-functions")
+      (version (git-version "1.2.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/Lisp-Stat/special-functions")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "092szffy7zfxgrvfck11wnj8l0mgcym13yiafj01ad02lbj1fnnv"))))
+      (build-system asdf-build-system/sbcl)
+      (native-inputs (list sbcl-cl-variates sbcl-fiveam sbcl-select))
+      (inputs
+        (list sbcl-alexandria-plus
+              sbcl-numerical-utilities
+              sbcl-let-plus
+              sbcl-float-features
+              sbcl-conduit-packages))
+      (home-page "https://lisp-stat.dev/docs/resources/special-functions/")
+      (synopsis "Random variates for Common Lisp")
+      (description "This library implements
+@url{http://specialfunctionswiki.org/index.php/Main_Page, special
+functions} and has a focus on high accuracy double-float calculations
+using the latest algorithms.")
+      (license license:ms-pl))))
+
+(define-public cl-special-functions
+  (sbcl-package->cl-source-package sbcl-special-functions))
+
+(define-public ecl-special-functions
+  (package
+    (inherit (sbcl-package->ecl-package sbcl-special-functions))
+    ;; https://github.com/Lisp-Stat/special-functions/issues/4
+    (arguments (list #:tests? #f))))
+
 (define-public sbcl-seria
   (let ((commit "2bba04dc6abdc0b85a511cae9c460942e2ad305a")
         (revision "0"))
-- 
2.38.1