[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: gnu: Add cl-cephes.
From: |
guix-commits |
Subject: |
02/08: gnu: Add cl-cephes. |
Date: |
Fri, 17 Feb 2023 13:19:47 -0500 (EST) |
glv pushed a commit to branch master
in repository guix.
commit 7679b8e89572d469eea464b9a1ba23ca7b38fcf3
Author: jgart <jgart@dismail.de>
AuthorDate: Fri Feb 17 17:43:55 2023 +0100
gnu: Add cl-cephes.
* gnu/packages/lisp-xyz.scm (cl-cephes, ecl-cephes, sbcl-cephes): New
variables.
Co-authored-by: Guillaume Le Vaillant <glv@posteo.net>
---
gnu/packages/lisp-xyz.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 00b0846a8d..c768ea7832 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -26917,6 +26917,50 @@ generation as well as numerous distributions.")
(define-public ecl-cl-variates
(sbcl-package->ecl-package sbcl-cl-variates))
+(define-public sbcl-cephes
+ (let ((commit "d87146fa38c8425ffb5fe425eee5eb3e818bacd4")
+ (revision "0"))
+ (package
+ (name "sbcl-cephes")
+ (version (git-version "1.2" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Lisp-Stat/cephes.cl")
+ (commit commit)))
+ (file-name (git-file-name "cl-cephes" version))
+ (sha256
+ (base32 "09adls1lwwzwm1jmvhf11arwlsy5w0bi2rmniahas824mysv77lr"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ (list sbcl-cffi))
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ ;; ECL has issues making the shared library automatically,
+ ;; so we make it explicitly.
+ (add-before 'build 'build-shared-library
+ (lambda _
+ (with-directory-excursion
+ (string-append #$output "/share/common-lisp/"
+ (%lisp-type) "/cephes/scipy-cephes")
+ (invoke "make")
+ ;; Remove temporary object files.
+ (for-each delete-file (find-files "." "\\.o$"))))))))
+ (home-page "https://lisp-stat.github.io/cephes.cl/")
+ (synopsis "Common Lisp wrapper for the Cephes Mathematical Library")
+ (description
+ "This package provides a common lisp CFFI wrapper for the SciPy version
+of Cephes special functions.")
+ (license license:ms-pl))))
+
+(define-public cl-cephes
+ (sbcl-package->cl-source-package sbcl-cephes))
+
+(define-public ecl-cephes
+ (sbcl-package->ecl-package sbcl-cephes))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
- branch master updated (246a3d90ea -> 2921394c25), guix-commits, 2023/02/17
- 02/08: gnu: Add cl-cephes.,
guix-commits <=
- 03/08: gnu: Add cl-special-functions., guix-commits, 2023/02/17
- 05/08: gnu: Add cl-statistics., guix-commits, 2023/02/17
- 08/08: gnu: Add cl-lisp-stat., guix-commits, 2023/02/17
- 01/08: gnu: Add cl-variates., guix-commits, 2023/02/17
- 04/08: gnu: Add cl-distributions., guix-commits, 2023/02/17
- 07/08: gnu: Add cl-dfio., guix-commits, 2023/02/17
- 06/08: gnu: Add cl-data-frame., guix-commits, 2023/02/17