From patchwork Fri Apr 4 19:16:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 41286 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 0D95127BBEA; Fri, 4 Apr 2025 20:19:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 999A927BBE2 for ; Fri, 4 Apr 2025 20:19:20 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0mYH-0006ao-Dz; Fri, 04 Apr 2025 15:18:05 -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 1u0mYF-0006aY-OZ for guix-patches@gnu.org; Fri, 04 Apr 2025 15:18:03 -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 1u0mYF-0007nz-DO for guix-patches@gnu.org; Fri, 04 Apr 2025 15:18:03 -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:Date:From:To:In-Reply-To:References:Subject; bh=JAPz8HAQStx6rSFaHJsrG69AtX1J5SS9Eoh+b1DvRX8=; b=HJ5vOR/y9iba28v2s/6JhoyDiQOrOOH+wHdROqbgGSGAeFz8y7/1/pYw3/QY3c+v003HBsyX4MASGrMZGUjti+LR7vli9kCWKA6f2BuK9Lsj5SIHRzJ4zigGSJzqeHzxiJoRBDmqsPDRA7p4gUGffoqyxrpWHaUq6D/dTK6R0hiNX3ympxx33jFwKtyDz3tAGniZnpUivICF/Op1ZHDgGbB1VFheqZR+eZIEW1b+AmsJNEZJoIh1HrKdAWfXs17wJYVOn/0UBkiEhqjZKmETq1A7WEgIKuBNSOR8op+kcYm7vRtqwQr9uPfq1BueT1eXwaDqsvbheWXxZBX9jpIMyA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u0mYF-0007KL-5P for guix-patches@gnu.org; Fri, 04 Apr 2025 15:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77541] [PATCH 01/38] gnu: Add clipper2. References: <20250404190959.30444-2-ngraves@ngraves.fr> In-Reply-To: <20250404190959.30444-2-ngraves@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Apr 2025 19:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77541@debbugs.gnu.org Cc: Nicolas Graves Received: via spool by 77541-submit@debbugs.gnu.org id=B77541.174379424527739 (code B ref 77541); Fri, 04 Apr 2025 19:18:03 +0000 Received: (at 77541) by debbugs.gnu.org; 4 Apr 2025 19:17:25 +0000 Received: from localhost ([127.0.0.1]:39980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0mXc-0007DH-Pe for submit@debbugs.gnu.org; Fri, 04 Apr 2025 15:17:25 -0400 Received: from 1.mo563.mail-out.ovh.net ([178.33.106.244]:34217) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u0mXZ-0007Cn-ID for 77541@debbugs.gnu.org; Fri, 04 Apr 2025 15:17:22 -0400 Received: from director4.derp.mail-out.ovh.net (director4.derp.mail-out.ovh.net [79.137.60.37]) by mo563.mail-out.ovh.net (Postfix) with ESMTPS id 4ZTpJb5lk9z1Ts4; Fri, 4 Apr 2025 19:17:19 +0000 (UTC) Received: from director4.derp.mail-out.ovh.net (director4.derp.mail-out.ovh.net. [127.0.0.1]) by director4.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP for <77541@debbugs.gnu.org>; Fri, 4 Apr 2025 19:17:19 +0000 (UTC) Received: from mta6.priv.ovhmail-u1.ea.mail.ovh.net (unknown [10.110.168.168]) by director4.derp.mail-out.ovh.net (Postfix) with ESMTPS id 4ZTpJb3N2ZzyD4; Fri, 4 Apr 2025 19:17:19 +0000 (UTC) Received: from ngraves.fr (unknown [10.1.6.4]) by mta6.priv.ovhmail-u1.ea.mail.ovh.net (Postfix) with ESMTPSA id 12918D43D38; Fri, 4 Apr 2025 19:17:19 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-110S0044dec632e-4935-4604-b00c-e4e3b7dda108, 5C763BAE2B049B0552D0CEA89988AE409CD35AAA) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Fri, 4 Apr 2025 21:16:33 +0200 Message-ID: <20250404191717.32747-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 3476497439615869666 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduledvvdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffogggtgfesthekredtredtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeelueehgfevfeevhffftdetgedugeevveehteeileeuueejhfegffetteffhffhvdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupdeltddrledvrdduudejrddugeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejjeehgeduseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdfovfetjfhoshhtpehmohehieefmgdpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=JAPz8HAQStx6rSFaHJsrG69AtX1J5SS9Eoh+b1DvRX8=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1743794239; v=1; b=jrz9NYrnxPIWmQEOQX6xDO5DH/nB+m3/51z3YOJ93mFjODUkR91LKRKwS2xCIMtjeRjaAshQ UHYLZgEf/JsnSJNFzAt8AJ3cJyQQGSDd1ceudkuT4AgQ6XP6kUNWoCOsVMuADD3Jl7mWmCuAaMO 9lCTnBS16NwMQXSoMiN4DfCS6EWbOGFaIEFbpWy8gic4AMxJNUGElmafHM/nKv8v3Eq3ap+i3b1 dkNxg83YsI5iHdQBYs9EulKaZeqGWxHY0dTwTua9Sq6MZfS1+9LD2CW4dGRaDeimrbMcjwAV0BJ iMm/nRZFjioZp4jTmuu+nKf6wHXJBbeJrYpBDD1Va/h3A== 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves 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 (clipper2): New variable. --- gnu/packages/cpp.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index a102a5d468..4c645f0f9d 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -44,6 +44,7 @@ ;;; Copyright © 2024 Jakob Kirsch ;;; Copyright © 2025 Sharlatan Hellseher ;;; Copyright © 2025 Sergio Pastor Pérez +;;; Copyright © 2025 Nicolas Graves ;;; ;;; This file is part of GNU Guix. ;;; @@ -2620,6 +2621,40 @@ (define-public clipper The library is based on Vatti's clipping algorithm.") (license license:boost1.0))) +(define-public clipper2 + (package + (inherit clipper) + (name "clipper2") + (version "1.5.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AngusJohnson/Clipper2") + (commit (string-append "Clipper2_" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1w8cmx712k45cb8gh9dakmbmybiwdx8c0b45mwpcldywx2lwxi2j")) + (modules '((guix build utils))) + (snippet #~(for-each + delete-file-recursively + '("CSharp" "DLL" "Delphi"))))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DUSE_EXTERNAL_GTEST=ON" + "-DCLIPPER2_EXAMPLES=OFF") + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "CPP")))))) + (native-inputs (list googletest)) + (home-page "https://github.com/AngusJohnson/Clipper2") + (description + (string-append (package-description clipper) "\ +Note: This package is a major update of the original clipper library.")))) + (define-public pcg-cpp (let ((commit "ffd522e7188bef30a00c74dc7eb9de5faff90092") (revision "2"))