From: Foo Chuan Wei <chuanwei.foo@hotmail.com>
To: 51861@debbugs.gnu.org
Subject: [bug#51861] [PATCH 2/3] gnu: Add cl-chemical-compounds.
Date: Mon, 15 Nov 2021 08:04:05 +0000 [thread overview]
Message-ID: <PU1PR01MB2155D14B3E59AC6BFB0A25AB8D989@PU1PR01MB2155.apcprd01.prod.exchangelabs.com> (raw)
In-Reply-To: <PU1PR01MB2155C1E12FC4D2C4098E47258D989@PU1PR01MB2155.apcprd01.prod.exchangelabs.com>
* 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
next prev parent reply other threads:[~2021-11-15 8:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-15 7:17 [bug#51861] [PATCH 0/3] gnu: Add cl-chemboy Foo Chuan Wei
2021-11-15 7:45 ` [bug#51861] [PATCH 1/3] gnu: Add cl-periodic-table Foo Chuan Wei
2021-11-15 8:04 ` Foo Chuan Wei [this message]
2021-11-15 8:08 ` [bug#51861] [PATCH 3/3] gnu: Add cl-chemboy Foo Chuan Wei
2021-11-15 8:18 ` [bug#51861] [PATCH v2 1/3] gnu: Add cl-periodic-table Foo Chuan Wei
2021-11-15 8:20 ` [bug#51861] [PATCH v2 2/3] gnu: Add cl-chemical-compounds Foo Chuan Wei
2021-11-15 8:22 ` [bug#51861] [PATCH v2 3/3] gnu: Add cl-chemboy Foo Chuan Wei
2021-11-15 16:53 ` bug#51861: " Guillaume Le Vaillant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PU1PR01MB2155D14B3E59AC6BFB0A25AB8D989@PU1PR01MB2155.apcprd01.prod.exchangelabs.com \
--to=chuanwei.foo@hotmail.com \
--cc=51861@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.