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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51861 in the body.
You can then email your comments to 51861 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#51861; Package guix-patches. (Mon, 15 Nov 2021 07:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Foo Chuan Wei <chuanwei.foo <at> hotmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 15 Nov 2021 07:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/3] gnu: Add cl-chemboy.
Date: Mon, 15 Nov 2021 07:17:08 +0000
Foo Chuan Wei (3):
  gnu: Add cl-periodic-table.
  gnu: Add cl-chemical-compounds.
  gnu: Add cl-chemboy.

 gnu/packages/lisp-xyz.scm | 119 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 119 insertions(+)


base-commit: da2ee1b13591438847b85baca8070bb2285ac411
-- 
2.25.1





Information forwarded to guix-patches <at> gnu.org:
bug#51861; Package guix-patches. (Mon, 15 Nov 2021 08:03:02 GMT) Full text and rfc822 format available.

Message #8 received at 51861 <at> debbugs.gnu.org (full text, mbox):

From: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
To: 51861 <at> debbugs.gnu.org
Subject: [PATCH 1/3] gnu: Add cl-periodic-table.
Date: Mon, 15 Nov 2021 07:45:04 +0000
* gnu/packages/lisp-xyz.scm (cl-periodic-table, ecl-periodic-table,
  cl-periodic-table): New variables.
---
 gnu/packages/lisp-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 778b48995d..d3ae430cf1 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18679,6 +18679,34 @@ terminals.")
 (define-public ecl-clinenoise
   (sbcl-package->ecl-package sbcl-clinenoise))
 
+(define-public sbcl-periodic-table
+  (package
+    (name "sbcl-periodic-table")
+    (version "1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "http://common-lisp.net/project/chemboy/periodic-table-"
+              version ".tar.gz"))
+        (sha256
+         (base32
+          "1ircvqm3q93ma4rxbxprb1i9rcax10ld6xmdzdhfnigr27sh5jvg"))))
+    (build-system asdf-build-system/sbcl)
+    (home-page "https://common-lisp.net/project/chemboy/")
+    (synopsis "Periodic table for Common Lisp")
+    (description
+     "This package defines a Common Lisp package, @code{:elements}, with an
+@code{ELEMENT} structure and a number of functions to search the periodic
+table.")
+    (license license:llgpl)))
+
+(define-public cl-periodic-table
+  (sbcl-package->cl-source-package sbcl-periodic-table))
+
+(define-public ecl-periodic-table
+  (sbcl-package->ecl-package sbcl-periodic-table))
+
 (define-public sbcl-cl-pass
   (let ((commit "e58e97c0c0588dc742c061208afb9bc31e4dbd34")
         (revision "1"))
-- 
2.25.1





Information forwarded to guix-patches <at> gnu.org:
bug#51861; Package guix-patches. (Mon, 15 Nov 2021 08:05:01 GMT) Full text and rfc822 format available.

Message #11 received at 51861 <at> debbugs.gnu.org (full text, mbox):

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

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index d3ae430cf1..1365c50bf4 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18707,6 +18707,49 @@ table.")
 (define-public ecl-periodic-table
   (sbcl-package->ecl-package sbcl-periodic-table))
 
+(define-public sbcl-chemical-compounds
+  (package
+    (name "sbcl-chemical-compounds")
+    (version "1.0.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "http://common-lisp.net/project/chemboy/chemical-compounds-"
+              version ".tar.gz"))
+        (sha256
+         (base32
+          "12fd8a6ay5qlsq4givzgh9d55mbg4ci2vvmymig6pjl2ms64v0pf"))))
+    (build-system asdf-build-system/sbcl)
+    (inputs `(("periodic-table" ,sbcl-periodic-table)))
+    (arguments `(#:phases
+                 (modify-phases %standard-phases
+                   (add-after 'unpack 'fix-files
+                     (lambda _
+                       ;; Fix incorrect version number.
+                       (substitute* "chemical-compounds.asd"
+                         ((":version \"1.0.1\"")
+                          (string-append ":version \"" ,version "\"")))
+                       ;; Remove incorrect declaration of string type.
+                       (substitute* "parsing.lisp"
+                         (("\\(declare \\(simple-base-string string\\)")
+                          "(declare"))
+                       #t)))))
+    (home-page "https://common-lisp.net/project/chemboy/")
+    (synopsis "Chemical formula parser and printer for Common Lisp")
+    (description
+     "It can sometimes be useful to be able to parse chemical compounds in a
+user-friendly syntax into easy-to-manipulate s-expressions.  You also want to
+be able to go in reverse.  You could probably write your own parser — or you
+could just install the chemical-compounds package.")
+    (license license:llgpl)))
+
+(define-public cl-chemical-compounds
+  (sbcl-package->cl-source-package sbcl-chemical-compounds))
+
+(define-public ecl-chemical-compounds
+  (sbcl-package->ecl-package sbcl-chemical-compounds))
+
 (define-public sbcl-cl-pass
   (let ((commit "e58e97c0c0588dc742c061208afb9bc31e4dbd34")
         (revision "1"))
-- 
2.25.1





Information forwarded to guix-patches <at> gnu.org:
bug#51861; Package guix-patches. (Mon, 15 Nov 2021 08:09:02 GMT) Full text and rfc822 format available.

Message #14 received at 51861 <at> debbugs.gnu.org (full text, mbox):

From: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
To: 51861 <at> debbugs.gnu.org
Subject: [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





Information forwarded to guix-patches <at> gnu.org:
bug#51861; Package guix-patches. (Mon, 15 Nov 2021 08:20:02 GMT) Full text and rfc822 format available.

Message #17 received at 51861 <at> debbugs.gnu.org (full text, mbox):

From: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
To: 51861 <at> debbugs.gnu.org
Subject: [PATCH v2 1/3] gnu: Add cl-periodic-table.
Date: Mon, 15 Nov 2021 08:18:58 +0000
* gnu/packages/lisp-xyz.scm (cl-periodic-table, ecl-periodic-table,
  cl-periodic-table): New variables.
---
Changes relative to PATCH v1:
* Use HTTPS to download source tarball.

 gnu/packages/lisp-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 778b48995d..b239ee1302 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18679,6 +18679,34 @@ terminals.")
 (define-public ecl-clinenoise
   (sbcl-package->ecl-package sbcl-clinenoise))
 
+(define-public sbcl-periodic-table
+  (package
+    (name "sbcl-periodic-table")
+    (version "1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "https://common-lisp.net/project/chemboy/periodic-table-"
+              version ".tar.gz"))
+        (sha256
+         (base32
+          "1ircvqm3q93ma4rxbxprb1i9rcax10ld6xmdzdhfnigr27sh5jvg"))))
+    (build-system asdf-build-system/sbcl)
+    (home-page "https://common-lisp.net/project/chemboy/")
+    (synopsis "Periodic table for Common Lisp")
+    (description
+     "This package defines a Common Lisp package, @code{:elements}, with an
+@code{ELEMENT} structure and a number of functions to search the periodic
+table.")
+    (license license:llgpl)))
+
+(define-public cl-periodic-table
+  (sbcl-package->cl-source-package sbcl-periodic-table))
+
+(define-public ecl-periodic-table
+  (sbcl-package->ecl-package sbcl-periodic-table))
+
 (define-public sbcl-cl-pass
   (let ((commit "e58e97c0c0588dc742c061208afb9bc31e4dbd34")
         (revision "1"))

base-commit: da2ee1b13591438847b85baca8070bb2285ac411
-- 
2.25.1





Information forwarded to guix-patches <at> gnu.org:
bug#51861; Package guix-patches. (Mon, 15 Nov 2021 08:21:01 GMT) Full text and rfc822 format available.

Message #20 received at 51861 <at> debbugs.gnu.org (full text, mbox):

From: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
To: 51861 <at> debbugs.gnu.org
Subject: [PATCH v2 2/3] gnu: Add cl-chemical-compounds.
Date: Mon, 15 Nov 2021 08:20:20 +0000
* gnu/packages/lisp-xyz.scm (cl-chemical-compounds,
  ecl-chemical-compounds. sbcl-chemical-compounds): New variables.
---
Changes relative to PATCH v1:
* Use HTTPS to download source tarball.
* Edit synopsis.

 gnu/packages/lisp-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index b239ee1302..f5798a68de 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18707,6 +18707,49 @@ table.")
 (define-public ecl-periodic-table
   (sbcl-package->ecl-package sbcl-periodic-table))
 
+(define-public sbcl-chemical-compounds
+  (package
+    (name "sbcl-chemical-compounds")
+    (version "1.0.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "https://common-lisp.net/project/chemboy/chemical-compounds-"
+              version ".tar.gz"))
+        (sha256
+         (base32
+          "12fd8a6ay5qlsq4givzgh9d55mbg4ci2vvmymig6pjl2ms64v0pf"))))
+    (build-system asdf-build-system/sbcl)
+    (inputs `(("periodic-table" ,sbcl-periodic-table)))
+    (arguments `(#:phases
+                 (modify-phases %standard-phases
+                   (add-after 'unpack 'fix-files
+                     (lambda _
+                       ;; Fix incorrect version number.
+                       (substitute* "chemical-compounds.asd"
+                         ((":version \"1.0.1\"")
+                          (string-append ":version \"" ,version "\"")))
+                       ;; Remove incorrect declaration of string type.
+                       (substitute* "parsing.lisp"
+                         (("\\(declare \\(simple-base-string string\\)")
+                          "(declare"))
+                       #t)))))
+    (home-page "https://common-lisp.net/project/chemboy/")
+    (synopsis "Chemical formula parser and pretty-printer for Common Lisp")
+    (description
+     "It can sometimes be useful to be able to parse chemical compounds in a
+user-friendly syntax into easy-to-manipulate s-expressions.  You also want to
+be able to go in reverse.  You could probably write your own parser — or you
+could just install the chemical-compounds package.")
+    (license license:llgpl)))
+
+(define-public cl-chemical-compounds
+  (sbcl-package->cl-source-package sbcl-chemical-compounds))
+
+(define-public ecl-chemical-compounds
+  (sbcl-package->ecl-package sbcl-chemical-compounds))
+
 (define-public sbcl-cl-pass
   (let ((commit "e58e97c0c0588dc742c061208afb9bc31e4dbd34")
         (revision "1"))
-- 
2.25.1





Information forwarded to guix-patches <at> gnu.org:
bug#51861; Package guix-patches. (Mon, 15 Nov 2021 08:23:02 GMT) Full text and rfc822 format available.

Message #23 received at 51861 <at> debbugs.gnu.org (full text, mbox):

From: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
To: 51861 <at> debbugs.gnu.org
Subject: [PATCH v2 3/3] gnu: Add cl-chemboy.
Date: Mon, 15 Nov 2021 08:22:37 +0000
* gnu/packages/lisp-xyz.scm (cl-chemboy, ecl-chemboy, sbcl-chemboy):
  New variables.
---
Changes relative to PATCH v1:
* Use HTTPS to download source tarball.

 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 f5798a68de..c7883c164f 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
+              "https://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





Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Mon, 15 Nov 2021 16:55:01 GMT) Full text and rfc822 format available.

Notification sent to Foo Chuan Wei <chuanwei.foo <at> hotmail.com>:
bug acknowledged by developer. (Mon, 15 Nov 2021 16:55:02 GMT) Full text and rfc822 format available.

Message #28 received at 51861-done <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
Cc: 51861-done <at> debbugs.gnu.org
Subject: Re: [bug#51861] [PATCH v2 3/3] gnu: Add cl-chemboy.
Date: Mon, 15 Nov 2021 16:53:21 +0000
[Message part 1 (text/plain, inline)]
Patches pushed as 333e1b3ce670d257c5aee4ed2b9303992aeeaa69 and
following.
Thanks.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 14 Dec 2021 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 95 days ago.

Previous Next


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