guix-commits
[Top][All Lists]
Advanced

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

05/06: gnu: libopenmpt: Remove 5.1-MiB static library.


From: guix-commits
Subject: 05/06: gnu: libopenmpt: Remove 5.1-MiB static library.
Date: Tue, 1 Sep 2020 12:52:26 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 2c6b6d7991e978369f577d3021a46c3b973fb850
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue Sep 1 18:30:57 2020 +0200

    gnu: libopenmpt: Remove 5.1-MiB static library.
    
    * gnu/packages/audio.scm (libopenmpt)[arguments]: Add a
    ‘delete-static-libraries’ phase.
---
 gnu/packages/audio.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index bd9071e..9447156 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -311,7 +311,15 @@ Linux kernel.")
     (arguments
      `(#:configure-flags
        (list (string-append "--docdir=" (assoc-ref %outputs "out")
-                            "/share/doc/" ,name "-" ,version))))
+                            "/share/doc/" ,name "-" ,version))
+       #: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$"))
+               #t))))))
     (native-inputs
      `(("doxygen" ,doxygen)
        ("perl" ,perl)



reply via email to

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