From 94becb63591bd928d323067b1b81f2c1f293d77e Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Wed, 15 Dec 2021 14:19:01 +0100 Subject: gnu: Add clipper. * gnu/packages/cpp.scm (clipper): New variable. Signed-off-by: Nicolas Goaziou --- gnu/packages/cpp.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages/cpp.scm') diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 1b6779a036..718fb20652 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2021 Felix Gruber ;;; Copyright © 2021 Nicolò Balzarotti ;;; Copyright © 2021 Guillaume Le Vaillant +;;; Copyright © 2021 Nikolay Korotkiy ;;; ;;; This file is part of GNU Guix. ;;; @@ -1115,6 +1116,35 @@ computation.") (home-page "https://www.actor-framework.org/") (license license:bsd-3))) +(define-public clipper + (package + (name "clipper") + (version "6.4.2") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/polyclipping" + "/clipper_ver" version ".zip")) + (sha256 + (base32 "09q6jc5k7p9y5d75qr2na5d1gm0wly5cjnffh127r04l47c20hx1")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;no check target + #:phases (modify-phases %standard-phases + (replace 'unpack + (lambda* (#:key source #:allow-other-keys) + (and (invoke "unzip" source) + (chdir "cpp"))))))) + (native-inputs + `(("unzip" ,unzip))) + (home-page "https://sourceforge.net/projects/polyclipping") + (synopsis "A polygon and line clipping and offsetting library") + (description + "The Clipper library performs line & polygon clipping - intersection, +union, difference & exclusive-or, and line & polygon offsetting. +The library is based on Vatti's clipping algorithm.") + (license license:boost1.0))) + (define-public pcg-cpp (let ((commit "ffd522e7188bef30a00c74dc7eb9de5faff90092") (revision "2")) -- cgit v1.2.3