From patchwork Wed Feb 14 17:04:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 60306 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 A0AA327BBEA; Wed, 14 Feb 2024 17:06:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D924327BBE2 for ; Wed, 14 Feb 2024 17:06:07 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raIhj-0004lU-J1; Wed, 14 Feb 2024 12:05:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raIhg-0004l0-EO for guix-patches@gnu.org; Wed, 14 Feb 2024 12:05:48 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raIhe-0001pJ-Gk for guix-patches@gnu.org; Wed, 14 Feb 2024 12:05:47 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raIhu-0005le-Ja for guix-patches@gnu.org; Wed, 14 Feb 2024 12:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69128] [PATCH] gnu: Add lexy. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Feb 2024 17:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69128 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69128@debbugs.gnu.org Cc: "Paul A. Patience" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170793030822101 (code B ref -1); Wed, 14 Feb 2024 17:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Feb 2024 17:05:08 +0000 Received: from localhost ([127.0.0.1]:52958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raIh2-0005kP-45 for submit@debbugs.gnu.org; Wed, 14 Feb 2024 12:05:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:56382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raIh0-0005kF-GP for submit@debbugs.gnu.org; Wed, 14 Feb 2024 12:05:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raIgX-00049n-Jz for guix-patches@gnu.org; Wed, 14 Feb 2024 12:04:46 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raIgT-0001PK-IY for guix-patches@gnu.org; Wed, 14 Feb 2024 12:04:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1707930268; x=1708189468; bh=Qwo+wZ9D6RpMB/Xn0K8NCjaQ9T+r9tYSwm6e+FuMFNs=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=df09GStxlvexRTWU1bXQSqxHlSfUhwKdjr9utdNVHNeNvCVBHZrodG4LDfzNC+CPL 0OpgsD9dj7O9TtLskO33v8LUvBhgABrDATYp2zTwUq4wBKenC7HF6wyte/tNAgk1qa KIhkjW0Wp+vcgfU3fraNVkdyn1EDD/y9Snh/8elY4DPOgJpIHZDZTq5YSrG34aLsay sNq3MSMDc+vG++YzKBL+t59QOMoBpkdeMLT4HC4MIRtbQ2QA9d/bx6zoJxDhC65/+T pSJodqHFUEn0EuZPfvKa7mZt1Sy2lDG4SwO0FZpo5vXwOh1C66w9rvP21p75uoLQG+ 1jNZdKyVdWp1Q== Date: Wed, 14 Feb 2024 17:04:12 +0000 From: "Paul A. Patience" Message-ID: <9cf5dba6869a02d2ea8d3303df690c6a9ac85973.1707930219.git.paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.17; envelope-from=paul@apatience.com; helo=mail-4317.proton.ch X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (lexy): New variable. Change-Id: I77d896570999d639f223eb014fcfb48b911c8cc8 --- gnu/packages/cpp.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) base-commit: 570ef13a87bb54d3410c431700ba78316a2641e2 diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 62a1923571..402d9d59f5 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1376,6 +1376,44 @@ (define-public pegtl parsers according to a Parsing Expression Grammar (PEG).") (license license:expat))) +(define-public lexy + ;; Bug fixes since last release. + (let ((commit "b82ffcbe70687a8e97115480b0b6cb3ce39e3a2a") + (revision "0")) + (package + (name "lexy") + (version (git-version "2022.12.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/foonathan/lexy") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05fhpjzmhasjqgg0z2k0055i7yjznbh6xgwn9fqlk61vdrfk9hw9")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags #~(list "-DLEXY_BUILD_DOCS=OFF") ; needs Hugo + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-dependencies + (lambda _ + (substitute* "tests/CMakeLists.txt" + (("^message\\(STATUS \"Fetching doctest\"\\).*") "") + (("^include\\(FetchContent\\).*") "") + (("^FetchContent_Declare\\(doctest .*") "") + (("^FetchContent_MakeAvailable\\(doctest\\)") + "find_package(doctest REQUIRED)") + (("^(target_link_libraries\\(lexy_test_base .*) doctest\\)" + _ prefix) + (string-append prefix ")")))))))) + (native-inputs (list doctest)) + (home-page "https://lexy.foonathan.net/") + (synopsis "C++ parser combinator library") + (description "lexy is a parser combinator library for C++17 and later.") + (license license:boost1.0)))) + (define-public psascan (package (name "psascan")