GNU bug report logs - #51861
[PATCH 0/3] gnu: Add cl-chemboy.

Previous Next

Package: guix-patches;

Reported by: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>

Date: Mon, 15 Nov 2021 07:54:02 UTC

Severity: normal

Tags: patch

Done: Guillaume Le Vaillant <glv <at> posteo.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
To: 51861 <at> debbugs.gnu.org
Subject: [bug#51861] [PATCH 3/3] gnu: Add cl-chemboy.
Date: Mon, 15 Nov 2021 08:08:05 +0000
* gnu/packages/lisp-xyz.scm (cl-chemboy, ecl-chemboy, sbcl-chemboy):
  New variables.
---
 gnu/packages/lisp-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 1365c50bf4..bfa1330ac6 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18750,6 +18750,54 @@ could just install the chemical-compounds package.")
 (define-public ecl-chemical-compounds
   (sbcl-package->ecl-package sbcl-chemical-compounds))
 
+(define-public sbcl-chemboy
+  (package
+    (name "sbcl-chemboy")
+    (version "0.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "http://common-lisp.net/project/chemboy/chemboy-"
+              version ".tar.gz"))
+        (sha256
+         (base32
+          "0lr134l16mjcgdj3fm2yff4chlfbihn1sji7q80y7lnr176zgs7d"))))
+    (build-system asdf-build-system/sbcl)
+    (inputs `(("chemical-compounds" ,sbcl-chemical-compounds)
+              ("periodic-table" ,sbcl-periodic-table)))
+    (arguments `(#:phases
+                 (modify-phases %standard-phases
+                   (add-after 'unpack 'fix-files
+                     (lambda _
+                       ;; Fix incorrect version number.
+                       (substitute* "chemboy.asd"
+                         ((":version \"0.2\"")
+                          (string-append ":version \"" ,version "\"")))
+                       ;; Remove incorrect declaration of string type.
+                       (substitute* "query-parsing.lisp"
+                         (("\\(declare \\(simple-base-string string\\)")
+                          "(declare"))
+                       ;; Fix incorrect function calls.
+                       (substitute* "conversions.lisp"
+                         (("\\(pprint-compound element s\\)")
+                          "(pprint-compound element :stream s)")
+                         (("\\(pprint-compound parsed-compound s\\)")
+                          "(pprint-compound parsed-compound :stream s)"))
+                       #t)))))
+    (home-page "https://common-lisp.net/project/chemboy/")
+    (synopsis "Common Lisp program for doing basic chemistry calculations")
+    (description
+     "Chemboy is a Common Lisp program for doing basic chemistry calculations.
+This package provides the text-based interface for Chemboy.")
+    (license license:llgpl)))
+
+(define-public cl-chemboy
+  (sbcl-package->cl-source-package sbcl-chemboy))
+
+(define-public ecl-chemboy
+  (sbcl-package->ecl-package sbcl-chemboy))
+
 (define-public sbcl-cl-pass
   (let ((commit "e58e97c0c0588dc742c061208afb9bc31e4dbd34")
         (revision "1"))
-- 
2.25.1





This bug report was last modified 3 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.