guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

23/46: gnu: lz4: Do not install liblz4.a.


From: guix-commits
Subject: 23/46: gnu: lz4: Do not install liblz4.a.
Date: Fri, 14 Feb 2020 12:41:01 -0500 (EST)

mbakke pushed a commit to branch staging
in repository guix.

commit 986dce4f8537a1c63c8cc38d800e4699f7eb0733
Author: Marius Bakke <address@hidden>
AuthorDate: Wed Feb 12 17:30:26 2020 +0100

    gnu: lz4: Do not install liblz4.a.
    
    * gnu/packages/compression.scm (lz4)[arguments]: Add phase
    'delete-static-library'.
---
 gnu/packages/compression.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 98af417..30db84e 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -13,7 +13,7 @@
 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice 
<address@hidden>
 ;;; Copyright © 2016 David Craven <address@hidden>
 ;;; Copyright © 2016, 2019 Kei Kebreau <address@hidden>
-;;; Copyright © 2016, 2018, 2019 Marius Bakke <address@hidden>
+;;; Copyright © 2016, 2018, 2019, 2020 Marius Bakke <address@hidden>
 ;;; Copyright © 2017 ng0 <address@hidden>
 ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <address@hidden>
 ;;; Copyright © 2017 Theodoros Foradis <address@hidden>
@@ -764,7 +764,12 @@ decompression of some loosely related file formats used by 
Microsoft.")
                       (substitute* "tests/Makefile"
                         (("^test: (.*) test-install" _ targets)
                          (string-append "test: " targets)))
-                      #t)))))
+                      #t))
+                  (add-after 'install 'delete-static-library
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let ((out (assoc-ref outputs "out")))
+                        (delete-file (string-append out "/lib/liblz4.a"))
+                        #t))))))
     (home-page "https://www.lz4.org";)
     (synopsis "Compression algorithm focused on speed")
     (description "LZ4 is a lossless compression algorithm, providing



reply via email to

[Prev in Thread] Current Thread [Next in Thread]