guix-commits
[Top][All Lists]
Advanced

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

02/05: gnu: exiv2: Delete static library.


From: guix-commits
Subject: 02/05: gnu: exiv2: Delete static library.
Date: Sat, 23 Oct 2021 07:26:58 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit b7e3f85e11e66bd1e93fe33746707da573e31af8
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sat Oct 23 12:41:04 2021 +0200

    gnu: exiv2: Delete static library.
    
    * gnu/packages/image.scm (exiv2)[arguments]:
    Add a 'delete-static-libraries phase.
---
 gnu/packages/image.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 713e477..0927751 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1357,7 +1357,14 @@ channels.")
     (build-system cmake-build-system)
     (arguments
      '(#:test-target "tests"
-       #:configure-flags (list "-DEXIV2_BUILD_UNIT_TESTS=ON")))
+       #:configure-flags (list "-DEXIV2_BUILD_UNIT_TESTS=ON")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'delete-static-libraries
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (lib (string-append out "/lib")))
+               (for-each delete-file (find-files lib "\\.a$"))))))))
     (propagated-inputs
      `(("expat" ,expat)
        ("zlib" ,zlib)))



reply via email to

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