From patchwork Mon Nov 15 08:04:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Foo Chuan Wei X-Patchwork-Id: 34490 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 97B7927BBE3; Mon, 15 Nov 2021 08:05:28 +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 2FA8D27BBE1 for ; Mon, 15 Nov 2021 08:05:28 +0000 (GMT) Received: from localhost ([::1]:58948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmWzX-0004vp-5Q for patchwork@mira.cbaines.net; Mon, 15 Nov 2021 03:05:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmWz8-0004t0-75 for guix-patches@gnu.org; Mon, 15 Nov 2021 03:05:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmWz7-0007p1-Pf for guix-patches@gnu.org; Mon, 15 Nov 2021 03:05:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmWz7-0000pJ-LP for guix-patches@gnu.org; Mon, 15 Nov 2021 03:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51861] [PATCH 2/3] gnu: Add cl-chemical-compounds. 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:05:01 +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.16369634603107 (code B ref 51861); Mon, 15 Nov 2021 08:05:01 +0000 Received: (at 51861) by debbugs.gnu.org; 15 Nov 2021 08:04:20 +0000 Received: from localhost ([127.0.0.1]:52489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmWyR-0000o2-L1 for submit@debbugs.gnu.org; Mon, 15 Nov 2021 03:04:19 -0500 Received: from mail-sgaapc01olkn2027.outbound.protection.outlook.com ([40.92.53.27]:30945 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmWyP-0000nl-Ee for 51861@debbugs.gnu.org; Mon, 15 Nov 2021 03:04:18 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m7BI/o6bdvUQQGQ8bpdzVwOWkn2fsvGejE7S4UJALrbf72w9q6Z8hRRNExkYpQFgYZ4TTxWqLKsNyKL3CbXzbCW5U+EGhNHWUTQjTWIhgSKuKUOu0V22cnGeyFkEfDh7Dv9xE2dAB6Ez/Blp14PCPvlNb9OpihWNZZ7ros+zafxFXgMKfGYVBiNI8DJA1FoD8kZzTfumJ+ZBt5BgsSuIWpgjF4jQoPXE1Gq+iMWVA3zzcJFixQbDo6aLb7MJyyDjboPWkJR+G3huFsWu8aXozVMqaLAQJEKOf4iSueOiZ/dQAslwH3QHtyC2/yIsgalljyO7DVH/ZstRylpoJHTvlA== 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=tr7SYAMTez6NLcjqHT4DQb3OyIpjca++8IsoeFIPSUU=; b=E6DjmfYBQFlz29UsLDNVhTjYsSKrz/BeBrxmo9/dUGZYRM1fPZZNJbvjVVcb65m9g7ICV9vvSICSQ6snbLObj35ePiPftoezVOFaXgZkzeJQw2R1TIEIW/tWvv9dytNOufkoawpsvUgidUwqEoeo20UA5MigB8Sy+BxOV2YhWLGXP2oHWwq53GnBgHsS6L92Wykg7YDNbQTaF21Zkax7nFyJX+EIAcoEM+WwdEkAGKwMCoZjYpHrbsKXcJSvBPL1tpayjgLH/Jlg6UECu9pzXjmg5Mf72WVJPji4bRkODXGNn90ehej3GSLO5sdJWB3tRW/FfClBzw9F20RO4KK4Yg== 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=tr7SYAMTez6NLcjqHT4DQb3OyIpjca++8IsoeFIPSUU=; b=helYqYWpagARkR5eCDYkAxRXCIJF/H8aSmTe4G+djLtmp6ADx8sbWKpHS0ytqBC0zlz1caluVv6KJUQsp+AewUCC/YdFpoA4pdm14wtjG2HWTbIirVwpgh5JmhDtjJqYZHm588Mfx9kVcfhg/1pdunYWirxsz0K1yI5VhzkDJePFSNYA5CvpbtiEVExItTWD9e2LxWwwaSIH4KU3PjMggjJ3v/Sgq5RM9cv95ARTHCvwsTfwjppavpQZccvYouE5JZNbm0rkIZkqdOEwhWAoUYMmEx2vQPl3mAb5lq5XEAvkfN4xr1owRN9Iczh/QYlyGYhAKc97Kfipt1ZbXT+9YA== Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) by PSBPR01MB3621.apcprd01.prod.exchangelabs.com (2603:1096:301:5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.25; Mon, 15 Nov 2021 08:04:09 +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:04:09 +0000 Date: Mon, 15 Nov 2021 08:04:05 +0000 From: Foo Chuan Wei Message-ID: Content-Disposition: inline X-TMN: [ohx/8ES8IRUYDbTnBumzIPsNKUxfDAy1] X-ClientProxiedBy: HK2PR0401CA0007.apcprd04.prod.outlook.com (2603:1096:202:2::17) To PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) X-Microsoft-Original-Message-ID: <20211115080405.oxvtsbmqg7wplmtk@main> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from main (119.160.168.66) by HK2PR0401CA0007.apcprd04.prod.outlook.com (2603:1096:202:2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.25 via Frontend Transport; Mon, 15 Nov 2021 08:04:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d3d9145-5746-4775-3568-08d9a80e80a3 X-MS-TrafficTypeDiagnostic: PSBPR01MB3621: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 587wn4qU2nFgjcOOsZZB0wKYe7fZ2G1k+ZtNQh+whrDd4ZfppKC0unkQaqrfbSO6NsY97/HyV+oXtCZFTPMHKMcSDhKQrxsou58A6UOd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85ZoqDM/B9Y90DTCmvtdgiX6HCQnfEEtxs9DNRun29qZTllmnHBCWj5jG/+AAAPMSFrNdj2CQ5JOm3owe1gUPoqoBPxJdv9VpFQGoTj4RX48PrI0ZXb8TnxvW19sQU++fN13kYZlUNCv+0Tq8ZFn5lAS66g7NdJ3Xkk7DuY5K1OsyqZpbOUa0e9vxd0GUljyXXOcMNT/hoxcdA== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-5c337.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 5d3d9145-5746-4775-3568-08d9a80e80a3 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:04:09.3542 (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: PSBPR01MB3621 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-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"))