From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sFdtIRKj8GaHRQAA62LTzQ:P1 (envelope-from ) for ; Sun, 22 Sep 2024 23:06:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sFdtIRKj8GaHRQAA62LTzQ (envelope-from ) for ; Mon, 23 Sep 2024 01:06:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VPS2mqL1; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm3 header.b="A +HcgVn"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=I7lPHmuD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727046418; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zwEgZo1C4GSt7pl+x4IOATsU44ljg+EjKhFSc72n13Q=; b=i/VO69FA96aCJVzAP63HaOclydm1KodMlms2NyD7mmkzTYka35EPLm+p2kTQbzc6NZb1TT k0CvUl2agEpylDQ4ThqM9vOMnLTUGPy8zh95Kjvgb4PE4pbF6NMQfkaBb0xvrG4jDDXamF LCyfaV1Xz5JkC7inLdseMkaLStu+QVNOfQg7IK7AtoSF240EgUyrfT09TtNzYJIOFy/PlK y6NFHPPIORmY1wYib+pC6fiOTyOEUE7sOGm+4K476NyAUw1wFKTIJzIxZp1bJZbhN3VIxW IzhlQQVyCZGrvm6HhmXNnX0fYJf9A7tI7Z4JQuZFNdYw6mXDSjvrU06HvYZaHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727046418; a=rsa-sha256; cv=none; b=JLS70Vtn4+uUu38lowoB/hbKYEU/6xSCTWSEBe3KKlVdQVjUpbnuCe8WomOEELs+EwAbgr DtodXD5Ws8wzvWKxESmBNZmJGtiIFN+kZD6mfaaPAD6+d6NcjyBZrsMqhOomFBm2x+/ed8 5o4ftAnvsFJd1uQGwLw5ZCtsmML44XNWM4mUQB1K8COf5MHINqqEMII+b6Vsuk4c977WoL ffWZvf88CL3xgWxYN3kCAJKsTd30c+WOdoavAyBAM4vhAnCbJ2dnZURHL/Bxi7lexE+Di6 fj3MoSNa4f4JG9t4MBgcRUwwDwIlFQk45xUHIz9i228bhOJFbF4XTEM27MWR3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VPS2mqL1; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm3 header.b="A +HcgVn"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=I7lPHmuD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 524866E58F for ; Mon, 23 Sep 2024 01:06:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssVeE-00042n-Jz; Sun, 22 Sep 2024 19:05:46 -0400 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 1ssVeC-00040Q-7J for guix-patches@gnu.org; Sun, 22 Sep 2024 19:05:44 -0400 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 1ssVeB-0008S1-9i for guix-patches@gnu.org; Sun, 22 Sep 2024 19:05:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=zwEgZo1C4GSt7pl+x4IOATsU44ljg+EjKhFSc72n13Q=; b=VPS2mqL1oesJzfVzqSM8SxpDC+h3tKvQDTsA750cb+J+jGkcN06d0EX2JLZHzehzZJMpu5UkJB5S4yDIIN0q2zkVcIO3BzR6hqlHJ45goIFmjombZxgPd0HAVyParmu0ts1TZmKwI5znN1HRGPgZikGWnMSkT264efQDNnRgXlPEIzGmYDT3RQ6kmgl1b2405bVHzbFzwCUkp4qPbDI+NuUSP+4NK2wjDLcC14Gt4XrolgtSviTgsOmMPBOQW7QsqRwbd9ltUOnL5Ju7UTeOe/wh0q4Z1SFzFWQQE8RdbzsDjAYlLil1lPh5Co2S9ld57ItnYCGwjRKR1vBAoShCVQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssVeX-00016w-DS; Sun, 22 Sep 2024 19:06:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71897] [PATCH v10 7/9] gnu: Add cpp-ada-url-parser. Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: i@dan.games, maxim.cournoyer@gmail.com, liliana.prikler@gmail.com, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Sun, 22 Sep 2024 23:06:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71897 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71897@debbugs.gnu.org Cc: dan , Maxim Cournoyer , Liliana Marie Prikler , Sharlatan Hellseher X-Debbugs-Original-Xcc: dan , Maxim Cournoyer , Liliana Marie Prikler , Sharlatan Hellseher Received: via spool by 71897-submit@debbugs.gnu.org id=B71897.17270463334131 (code B ref 71897); Sun, 22 Sep 2024 23:06:05 +0000 Received: (at 71897) by debbugs.gnu.org; 22 Sep 2024 23:05:33 +0000 Received: from localhost ([127.0.0.1]:42931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssVe0-00013e-EV for submit@debbugs.gnu.org; Sun, 22 Sep 2024 19:05:32 -0400 Received: from fout5-smtp.messagingengine.com ([103.168.172.148]:49035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssVdr-0000vP-OS for 71897@debbugs.gnu.org; Sun, 22 Sep 2024 19:05:24 -0400 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 62F9B13801D4 for <71897@debbugs.gnu.org>; Sun, 22 Sep 2024 19:04:56 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Sun, 22 Sep 2024 19:04:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1727046296; x= 1727132696; bh=zwEgZo1C4GSt7pl+x4IOATsU44ljg+EjKhFSc72n13Q=; b=A +HcgVnXyIOHh84agqn5NJ5epXew3xBz4YnapJXEQd6zhjDGOQDlmt5jSgPEZxS54 65zgxrS+uDxlXop2M0weeVxshJmDfmc2WSEa3mr6Bgvrv4ldrzWJdU9XWy43ujs3 rMmk8s1v7YVa3VpXAiPQoFYddyeFbP8tTSkWBzc62bCMseu7XVMoyQfxPS+cWVka 5zswjrpRg06LwJM+aTG1a/HSl/ueYU4tL0gbV7Ud9mRUclpWSU3i8LWRVlBFrR7S UWCfJlatWdlHBTqRb9bWyTJitMJcg23owvN7Gqh638hIY9sv64yEhm1XTv2QVPUs nnKLmVnRpGrJqjPUAz/Ww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1727046296; x=1727132696; bh=zwEgZo1C4GSt7 pl+x4IOATsU44ljg+EjKhFSc72n13Q=; b=I7lPHmuDp7Dedaqh4AsNNm/oMdGqm r3nyRMqWy0nw5P4+etMXm7pMxx4u7GSRIbO0htaZGp9rqq30HPtiHoBepHlxN1lx qkj3kzk9lDeZ6MiN6tQEdjQKkka0LEnAcfmfGXHdZW8XAamDn6VYFsLz3bmtc6Qf MCBtE/88QDnTOQM8suBUu3zjZgZqozA6vfEfQ6W3LUczGCetPcN58VF0BLwO910t RORv+90/wuHKAVn7lq8Ym/u9qGa8MMdePbjhkp51PrhwNTsCFaTjyjUMcFhPr/xJ ux16f40D/RyVG+l9ZohT7Mt7eryLCcLi/GIzIgMaMIIUqFS9J1QbDu0Iw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudelkedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuff fkofgjfhgggfestdekredtredttdenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghm vghsqeenucggtffrrghtthgvrhhnpefhjedvfeekkefhheeiveeuueeftdejveejleeute eludelgedtueetfefhudeuvdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihesuggrnhdrgh grmhgvshdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjedukeeljeesuggvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <71897@debbugs.gnu.org>; Sun, 22 Sep 2024 19:04:54 -0400 (EDT) From: dan Date: Mon, 23 Sep 2024 07:04:06 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.21 X-Spam-Score: -3.21 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Queue-Id: 524866E58F X-TUID: /1P2ZskSF789 * gnu/packages/cpp.scm (cpp-ada-url-parser): New variable. (cpm-for-cpp-ada-url-parser): New variable. Change-Id: I0b61c3b136e2781774c6a5e67eeb6b662e97dd88 --- gnu/packages/cpp.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index c805dae825..187c0d4b45 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -3284,3 +3284,60 @@ (define-public tl-optional the std::optional for C++11/14/17, with support for monadic operations added in C++23.") (license license:cc0))) + +(define-public cpp-ada-url-parser + (package + (name "cpp-ada-url-parser") + (version "2.9.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ada-url/ada") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xvvjlia627ajl966gdxzy2b1j0jiimx7zx8ypmffwx0k6x72qam")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DCPM_LOCAL_PACKAGES_ONLY=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-deps + (lambda _ + (substitute* "CMakeLists.txt" + (("cmake/CPM.cmake") + (string-append #$(this-package-native-input + "cpm-cmake") + "/lib/cmake/CPM.cmake")) + ;; We force CPM to find system packages rather than using git + ;; to download them. + (("Git_FOUND") "TRUE") + (("(simdjson@)[0-9.]*" _ simdjson) + (string-append simdjson + #$(package-version (this-package-native-input + "simdjson"))))) + (substitute* "tools/cli/CMakeLists.txt" + (("(VERSION\\s)[0-9.]*" _ a) + (string-append a + #$(package-version (this-package-native-input + "cxxopts"))))))) + (add-after 'patch-deps 'python-zipfile-disable-strict-timestamps + (lambda _ + (substitute* "singleheader/amalgamate.py" + (("zipfile.ZIP_DEFLATED") + "zipfile.ZIP_DEFLATED, strict_timestamps=False"))))))) + (native-inputs (list cpm-cmake + cxxopts + fmt-10 + googletest + python + simdjson)) + (home-page "https://github.com/ada-url/ada") + (synopsis "URL parser") + (description + "Ada is a fast and spec-compliant URL parser written in C++. +Specification for URL parser can be found from the WHATWG website.") + (license license:gpl3+))) -- 2.45.2