[bug#78668,1/4] gnu: opencsg: Update to 1.8.2

Message ID 20250602021230.3231771-1-nomike@nomike.com
State New
Headers
Series Update openscad to 2024.06.01 and improve package |

Commit Message

nomike June 2, 2025, 2:12 a.m. UTC
  * gnu/packages/graphics.scm (opencsg): Switch to cmake build system as project has switched to that.

Change-Id: Iba5ee7f2d3a95b2df8226a5f4d42baa2806eec84
---
 gnu/packages/graphics.scm | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)
  

Patch

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 4415c56660..e61b6bc0f6 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -2212,7 +2212,7 @@  (define-public opencsg
   (let ((dot-to-dash (lambda (c) (if (char=? c #\.) #\- c))))
     (package
       (name "opencsg")
-      (version "1.4.2")
+      (version "1.8.1")
       (source
        (origin
          (method git-fetch)
@@ -2224,18 +2224,12 @@  (define-public opencsg
          (file-name (git-file-name name version))
          (sha256
           (base32
-           "00m4vs6jn3scqczscc4591l1d6zg6anqp9v1ldf9ymf70rdyvm7m"))))
-      (build-system gnu-build-system)
+           "0q19mswyjlampdssqgik4q7j08fbj0dhxdr9mzg0i7ma2b2rhdhw"))))
+      (build-system cmake-build-system)
       (arguments
-       `(#:phases
-         (modify-phases %standard-phases
-           (replace 'configure
-             (lambda* (#:key outputs #:allow-other-keys)
-               (substitute* "src/Makefile"
-                 (("/usr/local") (assoc-ref outputs "out")))
-               #t))
-           (add-before 'build 'skip-example
-             (lambda _ (chdir "src") #t)))))
+       `(#:phases (modify-phases %standard-phases
+                    ;; library has no tests
+                    (delete 'check))))
       (inputs
        (list glew freeglut))
       (synopsis "Library for rendering Constructive Solid Geometry (CSG)")