From patchwork Mon Nov 15 08:08:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Foo Chuan Wei X-Patchwork-Id: 34491 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 154EC27BBE3; Mon, 15 Nov 2021 08:09:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9E95827BBE1 for ; Mon, 15 Nov 2021 08:09:26 +0000 (GMT) Received: from localhost ([::1]:37774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmX3N-0001NM-Op for patchwork@mira.cbaines.net; Mon, 15 Nov 2021 03:09:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmX30-0001N7-JV for guix-patches@gnu.org; Mon, 15 Nov 2021 03:09:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40954) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmX30-0008Sf-Av for guix-patches@gnu.org; Mon, 15 Nov 2021 03:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmX30-0000wM-53 for guix-patches@gnu.org; Mon, 15 Nov 2021 03:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51861] [PATCH 3/3] gnu: Add cl-chemboy. References: In-Reply-To: Resent-From: Foo Chuan Wei Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Nov 2021 08:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51861 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51861@debbugs.gnu.org Received: via spool by 51861-submit@debbugs.gnu.org id=B51861.16369637003544 (code B ref 51861); Mon, 15 Nov 2021 08:09:02 +0000 Received: (at 51861) by debbugs.gnu.org; 15 Nov 2021 08:08:20 +0000 Received: from localhost ([127.0.0.1]:52494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmX2K-0000v3-9s for submit@debbugs.gnu.org; Mon, 15 Nov 2021 03:08:20 -0500 Received: from mail-psaapc01olkn2104.outbound.protection.outlook.com ([40.92.52.104]:44033 helo=APC01-PSA-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmX2I-0000uo-T1 for 51861@debbugs.gnu.org; Mon, 15 Nov 2021 03:08:19 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=flkH5223Jc0zywxMKhbAK9fFz7yyXj8UhSDDu+HxYAFkVfLbu3H4bJeluFflzvdUsuKgWnB7GI2lvcWQBY4S38YTbQbIJVrYOlXfiL1inYuE1y1oSqjOowJGwqTVq0SaVvvLkBHU/sX8TZljic0lBQvpq/D4NbojtDUnfhg91GGTEKSd2CP279o0ihLr5U3Zm/uocVVwhIdJA0SN75m/4apouIGOHWLScBPKGt175eFxwDqRh2VjRpSwP+x8+6OHMbqvAA/KUISS8sGZ/BNN5JvzIlXAXwibA0hGCJXZDx6Iw7YHU3/+235/ayUxT2jF3Uwdpxox0994ir9EIq3e8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BQuPQfRBWvicK6kak9yia7hjiYneKuWp2I7v1DbHNs4=; b=nu3RC3k/P5NJlW3S4+dDGAu8HoKrHfHrtsi88NLLhX7gZ6qhem/9uxO8Gg3wLNfsEQ7pOp5d6q2eYlf58vBBY9dlsPcY5IJvIw/EtAMBQWRX1+3z70t/XLcasBDtjAaQbXGC+cy0ypt8ySTMu0N9ZiZOI91bU2MnGqmJW2cJRJj42lPTwVTBbrOdclLYbEdgpekYdoul6P5kBDxVIlYg7cQfMiLfh8PJxRD1hqweP2MguUNqiEif/Cm8m1rXmi41RJYfmiLf9SWUbtAUiclW3C1EFxmibXpm2gtXFOkq81SeGfZDLGSUWsRw7qM+TYUrO79BYyanOqwya9gfH7Yydg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BQuPQfRBWvicK6kak9yia7hjiYneKuWp2I7v1DbHNs4=; b=ijiWtUJWsPoaVE8++YnEdlOlYFMb3VZ9HJ34FTXsSPwLvx48Bqaill5HMMccCbuhP5oYPaXKbnI6xLXnaOTV4/8jiqWf1koveKw8Rp+nppRYj49n79cd1oO7XSwBsulUItNfeAvxMSqn8z7TgzGVPIk6VAvSpsPNHBdohcb9UXViCLTfFl7Firj2kt+LPfLCbEOR7W1HL4p1wAQqQxr22wMkH7JfVT46mNik7Poix91IomewuueKqoULHn8xPx7BcrOFBEny/DtWmPVyneoNYcjLxbIfWiyXtCUkoHiWaIwBAWz7tCZo6SxMM7oJri4gPkJWcyZuW67Nn4zyOvnKNw== Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) by PS2PR01MB2422.apcprd01.prod.exchangelabs.com (2603:1096:300:36::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.17; Mon, 15 Nov 2021 08:08:11 +0000 Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::258d:e124:fd3a:40ee]) by PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::258d:e124:fd3a:40ee%7]) with mapi id 15.20.4690.027; Mon, 15 Nov 2021 08:08:08 +0000 Date: Mon, 15 Nov 2021 08:08:05 +0000 From: Foo Chuan Wei Message-ID: Content-Disposition: inline X-TMN: [p+TXgPMwYvxx8CBvgMKl7tkJPY4cIeY9] X-ClientProxiedBy: HK2PR02CA0153.apcprd02.prod.outlook.com (2603:1096:201:1f::13) To PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) X-Microsoft-Original-Message-ID: <20211115080805.pz5qtsqlbpbuuzbd@main> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from main (119.160.168.66) by HK2PR02CA0153.apcprd02.prod.outlook.com (2603:1096:201:1f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26 via Frontend Transport; Mon, 15 Nov 2021 08:08:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 57f58858-19b4-4845-a153-08d9a80f0f4a X-MS-TrafficTypeDiagnostic: PS2PR01MB2422: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bOXssBNu6+9+/QHsK+JxhXU/mTkIhk8UnN0zobIjvV3aLMBaSPhk+2One2s4K5EhogWUfowuhlzWp2KTQXx7mrd59JW7A71DdkVf9i6CPE5XvCwbxLi0CaDChFLcFPCu9WcMnx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QXA/IJSboyUACiKX+dUMnpUothzpnxJO+YDQkm8vZ6uBJLqTtR4cGxg3d4Ch1r8irrr3FUvY81hmaQSQTGhpkkkIZBJ7zh0nwsyd4GN5SUIgku+WHVtKz8cq12xupBKtN3glYxH8rTgi7HhorJBkLi0zkfi+ap2GT4+bD/nKRKubg== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-5c337.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 57f58858-19b4-4845-a153-08d9a80f0f4a X-MS-Exchange-CrossTenant-AuthSource: PU1PR01MB2155.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2021 08:08:08.6419 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS2PR01MB2422 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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"))