From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mIPdKd4B8GZwNQEAqHPOHw:P1 (envelope-from ) for ; Sun, 22 Sep 2024 11:39:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mIPdKd4B8GZwNQEAqHPOHw (envelope-from ) for ; Sun, 22 Sep 2024 13:39:10 +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=aD72rjUC; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm3 header.b="q /GeNex"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=d9gRjTBe; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727005150; 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=dpqyQIXIffz4knBkLU0abN68PUnHDciNfQS3+ga8Fa4=; b=F+tS5OvDhJYZnPCPfN8uufCbdJMODA2TO+PBYBsmNFgg+0VIDBALoqoaqGqiOb7ARYYCQV h4zMrFh9IXAtltU3ljgePgoI4pcr7uK+oMWv0ZGQbEfdH1fhj3AD3mp2lDL/XoKiMUgPTA t4X1Nfli6TnPZ3H2u4HsO3O67knX63ksdJpVIX2Ccu8zYdCFPBJAogBmNc4Ohz50Za6tYW iLxg5gbp5ukKabW2NJ0WC9X/GcsWczaycopZbaK6GgXWmQJLsvghbsebamGMSIpCWMC8NQ eO5Zuq+LYtendmSrFliRo7D+S3UNNyKW4KMiYWYQTiwk2viI/o4UWLIvDDU2+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aD72rjUC; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm3 header.b="q /GeNex"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=d9gRjTBe; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727005150; a=rsa-sha256; cv=none; b=AE60gfH8ojZ/SBKw8FTxbMlU2R3gmMY6/8MHAMx0xGysyaez1eb/1xCJk5Jdwp1JgjuppQ kQKuOavhGjDQI1rBCJb0lQN/NhTNgRt4tjse5Pl3hNIrc9dJ0zwqfdfrfepA0utekG0dTA 7mW0s/XF/KXsfwX3K3p/QyjsJgctxX2TErN0gyEcWSjL9Gd1SND/ZwVxSERhYBNgW72vWH uc5WvpSlHF/5lVF9Gsr7SK69d11H+7st8yPmJMnlMU1YBzDzBkJhxe/NL/GJPDpCiplUJ7 G54URchSy9sG/YDlEcdjVCmf7+vCm+fSSc3iZ26jYpJI/FknVmCr/SyHmQKprA== 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 7D53836D0 for ; Sun, 22 Sep 2024 13:39:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssKvW-00016T-M9; Sun, 22 Sep 2024 07:38:54 -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 1ssKvN-00015W-1o for guix-patches@gnu.org; Sun, 22 Sep 2024 07:38:49 -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 1ssKvK-0008E8-2d for guix-patches@gnu.org; Sun, 22 Sep 2024 07:38: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=dpqyQIXIffz4knBkLU0abN68PUnHDciNfQS3+ga8Fa4=; b=aD72rjUC1z/k/HdK5JbJal7w6EKigbwOWyBB2qH0sblwvDz5JLnZp5tlc5Qbl+WyRGHxZftZjdyiwRU61spxJbHPayPCR/xuPWBpRkEI80IvDGq9+e2u6MxKEVRM2bnf9Fb9XkEPHZVJqsBhNR0Mo1gW+9JTaSN1e9o5owKYcHcXRafgI/dx/Jm/HgRjdkI6yMpmFCeqxV/8S841Ra7SF5TjvfNQ0F2/zR1VRrpI013ne/vN/wcfEDtiaOLkR4oZwHjd94pPaKiTEHHh+5MPslon/iaKCly4aTSH68lhvmXycIy6B/8jToZzp0zmTgaXpjCOoaPKhdPIsYfsrq7YGg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssKvf-0004ts-Gk; Sun, 22 Sep 2024 07:39:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71897] [PATCH v9 6/8] 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 11:39:03 +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.172700513518797 (code B ref 71897); Sun, 22 Sep 2024 11:39:03 +0000 Received: (at 71897) by debbugs.gnu.org; 22 Sep 2024 11:38:55 +0000 Received: from localhost ([127.0.0.1]:40967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssKvW-0004t5-Ep for submit@debbugs.gnu.org; Sun, 22 Sep 2024 07:38:54 -0400 Received: from fhigh3-smtp.messagingengine.com ([103.168.172.154]:38919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssKvP-0004rp-NE for 71897@debbugs.gnu.org; Sun, 22 Sep 2024 07:38:48 -0400 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id F16FA114022F for <71897@debbugs.gnu.org>; Sun, 22 Sep 2024 07:38:19 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sun, 22 Sep 2024 07:38:19 -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=1727005099; x= 1727091499; bh=dpqyQIXIffz4knBkLU0abN68PUnHDciNfQS3+ga8Fa4=; b=q /GeNex1Ze+QEVeuGvhnf//d4ETw5BQqOldPJ+pBAuE7khJDbrNLHjQdMFwyd0ZUL ZyLsZFmiGl63hjuVecd9FnhZDd+o0nTFzqhsBsh2PpywBcw17KTFZEFJk/01yQ/S n2NjIC40SkYncP0QJw7j7GxuNO+3n8xaB/P+6vmc9LNphNedqjm3KPw2lxGllXfp QN3EbYSZhXPTccXwOXn4jt6jtbIYXZtNxdRl73fQOXdokKc9T4KEhZhN5yOzRYKR fx4nsqYiIY0TY5GSvncL1gyH2BWAxONGhpxEnkuZ4730b0CGQ0Lk2b8QJkPq7LHP 3sL2C+U2MKWxBKwcHUtNw== 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=1727005099; x=1727091499; bh=dpqyQIXIffz4k nBkLU0abN68PUnHDciNfQS3+ga8Fa4=; b=d9gRjTBeXIRkD/5rguXmo6aFrHfJT DIarr9zudCzfm3yZ2Gt2Fz/jcsRSy+lW2jg0jCKSgZjV38iRAXYZMvirHI1H3deT poIQOpl6U8GFPDBxOfrRgXC+42pZDX6/0NyB2CnyjrwIh41DKnbIcSXQJYoWf0ZY 4ORvCJ4b4Gk1HH5YUL9yF9ylRSFMnIySFh+19/RnkVgfLdTJDf7w7ZqYuD9sxjDj ramxk5rNB2gPcwdyV+yPJbE0evuDBve1t8D2BdLgAedjM84DEVcunHCfMsWWV4gR v7J7oY/ooGXau6w+LuFmdLnQTfb/pXb4juH7gtkUiCw2R89wsNhr+Td1Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeljedggeegucetufdoteggodetrfdotf 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 07:38:18 -0400 (EDT) From: dan Date: Sun, 22 Sep 2024 19:37:07 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: <83ca4396dc74dbbc52121f1628fdc27f9b06d9fa.1727004999.git.i@dan.games> References: <83ca4396dc74dbbc52121f1628fdc27f9b06d9fa.1727004999.git.i@dan.games> 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.21 X-Spam-Score: -3.21 X-Migadu-Queue-Id: 7D53836D0 X-Migadu-Scanner: mx10.migadu.com X-TUID: YRhpZIsmLdKl * 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 | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index c805dae825..29e50d4531 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -3284,3 +3284,61 @@ (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 cpm-for-cpp-ada-url-parser + (let ((version "0.38.6")) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cpm-cmake/CPM.cmake") + (commit (string-append "v" version)))) + (file-name (git-file-name "cpm-for-cpp-ada-url-parser" version)) + (sha256 (base32 "1qbbhdq6cz2y7qfyy1k11i98d13s229r3phd5y3n5maq51ky8bgb"))))) + +(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 #$cpm-for-cpp-ada-url-parser "/cmake/CPM.cmake")) + ;; We force CPM to find system packages rather than using git + ;; to download them. + (("Git_FOUND") "TRUE") + (("3.9.1") + #$(package-version (this-package-native-input "simdjson")))) + (substitute* "tools/cli/CMakeLists.txt" + (("3.2.0") + #$(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 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