summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2022-12-11 01:00:01 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2022-12-11 01:00:01 +0100
commit885f18d750f950bfb930c47d9c8e30976dc361ef (patch)
tree2c0e76bd617dbcac1f858c511a54bcafe21e637a
parent2ed751715f538ed99ab4feba60808f10ab0d7ed1 (diff)
downloadguix-885f18d750f950bfb930c47d9c8e30976dc361ef.tar.gz
gnu: libdeflate: Update to 1.15.
* gnu/packages/compression.scm (libdeflate): Update to 1.15.
[build-system]: Use CMake.
[arguments]: Remove #:make-flags and all custom phases.
Add equivalent #:configure-flags and a custom 'check phase.
-rw-r--r--gnu/packages/compression.scm17
1 files changed, 7 insertions, 10 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index d2a1ed36f7..82b93e23b2 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -2695,7 +2695,7 @@ to their original, binary CD format.")
 (define-public libdeflate
   (package
     (name "libdeflate")
-    (version "1.14")
+    (version "1.15")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -2704,19 +2704,16 @@ to their original, binary CD format.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "09y69mnbv3mprgjp53zvin5zqznqajginrk5b25xmi9y0b83bns8"))))
-    (build-system gnu-build-system)
+                "001l1xdc3k1dfjvl3ng480ydz0rnyvlhv54l5mshg2p9v4iz3v09"))))
+    (build-system cmake-build-system)
     (arguments
-     (list #:make-flags
-           #~(list (string-append "CC=" #$(cc-for-target))
-                   (string-append "PREFIX=" #$output))
+     (list #:configure-flags
+           #~(list "-DLIBDEFLATE_BUILD_STATIC_LIB=NO")
            #:phases
            #~(modify-phases %standard-phases
-               (add-after 'unpack 'skip-static-library-installation
+               (replace 'check
                  (lambda _
-                   (substitute* "Makefile"
-                     (("install .*\\$\\(STATIC_LIB\\).*") ""))))
-               (delete 'configure))))   ; no configure script
+                   (invoke "../source/scripts/run_tests.sh"))))))
     (inputs
      (list zlib))
     (home-page "https://github.com/ebiggers/libdeflate")