GNU bug report logs - #77541
[PATCH 01/38] gnu: Add clipper2.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Fri, 4 Apr 2025 19:11:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Graves <ngraves <at> ngraves.fr>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 77541 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 77541 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>
Subject: [PATCH 01/38] gnu: Add clipper2.
Date: Fri,  4 Apr 2025 21:16:33 +0200
* 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 <jakob.kirsch <at> web.de>
 ;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus <at> gmail.com>
 ;;; Copyright © 2025 Sergio Pastor Pérez <sergio.pastorperez <at> gmail.com>
+;;; Copyright © 2025 Nicolas Graves <ngraves <at> ngraves.fr>
 ;;;
 ;;; 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"))
-- 
2.49.0





This bug report was last modified 103 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.