* [bug#51861] [PATCH 0/3] gnu: Add cl-chemboy.
@ 2021-11-15 7:17 Foo Chuan Wei
2021-11-15 7:45 ` [bug#51861] [PATCH 1/3] gnu: Add cl-periodic-table Foo Chuan Wei
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: Foo Chuan Wei @ 2021-11-15 7:17 UTC (permalink / raw)
To: 51861
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#51861] [PATCH 1/3] gnu: Add cl-periodic-table.
2021-11-15 7:17 [bug#51861] [PATCH 0/3] gnu: Add cl-chemboy Foo Chuan Wei
@ 2021-11-15 7:45 ` Foo Chuan Wei
2021-11-15 8:04 ` [bug#51861] [PATCH 2/3] gnu: Add cl-chemical-compounds Foo Chuan Wei
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Foo Chuan Wei @ 2021-11-15 7:45 UTC (permalink / raw)
To: 51861
* 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#51861] [PATCH 2/3] gnu: Add cl-chemical-compounds.
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
2021-11-15 8:08 ` [bug#51861] [PATCH 3/3] gnu: Add cl-chemboy Foo Chuan Wei
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Foo Chuan Wei @ 2021-11-15 8:04 UTC (permalink / raw)
To: 51861
* 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#51861] [PATCH 3/3] gnu: Add cl-chemboy.
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 ` [bug#51861] [PATCH 2/3] gnu: Add cl-chemical-compounds Foo Chuan Wei
@ 2021-11-15 8:08 ` Foo Chuan Wei
2021-11-15 8:18 ` [bug#51861] [PATCH v2 1/3] gnu: Add cl-periodic-table Foo Chuan Wei
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Foo Chuan Wei @ 2021-11-15 8:08 UTC (permalink / raw)
To: 51861
* 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#51861] [PATCH v2 1/3] gnu: Add cl-periodic-table.
2021-11-15 7:17 [bug#51861] [PATCH 0/3] gnu: Add cl-chemboy Foo Chuan Wei
` (2 preceding siblings ...)
2021-11-15 8:08 ` [bug#51861] [PATCH 3/3] gnu: Add cl-chemboy Foo Chuan Wei
@ 2021-11-15 8:18 ` 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
5 siblings, 0 replies; 8+ messages in thread
From: Foo Chuan Wei @ 2021-11-15 8:18 UTC (permalink / raw)
To: 51861
* 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#51861] [PATCH v2 2/3] gnu: Add cl-chemical-compounds.
2021-11-15 7:17 [bug#51861] [PATCH 0/3] gnu: Add cl-chemboy Foo Chuan Wei
` (3 preceding siblings ...)
2021-11-15 8:18 ` [bug#51861] [PATCH v2 1/3] gnu: Add cl-periodic-table Foo Chuan Wei
@ 2021-11-15 8:20 ` Foo Chuan Wei
2021-11-15 8:22 ` [bug#51861] [PATCH v2 3/3] gnu: Add cl-chemboy Foo Chuan Wei
5 siblings, 0 replies; 8+ messages in thread
From: Foo Chuan Wei @ 2021-11-15 8:20 UTC (permalink / raw)
To: 51861
* 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#51861] [PATCH v2 3/3] gnu: Add cl-chemboy.
2021-11-15 7:17 [bug#51861] [PATCH 0/3] gnu: Add cl-chemboy Foo Chuan Wei
` (4 preceding siblings ...)
2021-11-15 8:20 ` [bug#51861] [PATCH v2 2/3] gnu: Add cl-chemical-compounds Foo Chuan Wei
@ 2021-11-15 8:22 ` Foo Chuan Wei
2021-11-15 16:53 ` bug#51861: " Guillaume Le Vaillant
5 siblings, 1 reply; 8+ messages in thread
From: Foo Chuan Wei @ 2021-11-15 8:22 UTC (permalink / raw)
To: 51861
* 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* bug#51861: [PATCH v2 3/3] gnu: Add cl-chemboy.
2021-11-15 8:22 ` [bug#51861] [PATCH v2 3/3] gnu: Add cl-chemboy Foo Chuan Wei
@ 2021-11-15 16:53 ` Guillaume Le Vaillant
0 siblings, 0 replies; 8+ messages in thread
From: Guillaume Le Vaillant @ 2021-11-15 16:53 UTC (permalink / raw)
To: Foo Chuan Wei; +Cc: 51861-done
[-- Attachment #1: Type: text/plain, Size: 82 bytes --]
Patches pushed as 333e1b3ce670d257c5aee4ed2b9303992aeeaa69 and
following.
Thanks.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-11-15 16:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [bug#51861] [PATCH 2/3] gnu: Add cl-chemical-compounds Foo Chuan Wei
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
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).