guix-commits
[Top][All Lists]
Advanced

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

02/24: gnu: icu4c: Don't keep a reference to coreutils.


From: Marius Bakke
Subject: 02/24: gnu: icu4c: Don't keep a reference to coreutils.
Date: Sat, 28 Jul 2018 09:58:15 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit fbd2b8da5d7e6edb16ba7128324f6bc48ac68569
Author: Marius Bakke <address@hidden>
Date:   Wed Jul 25 04:36:02 2018 +0200

    gnu: icu4c: Don't keep a reference to coreutils.
    
    * gnu/packages/icu4c.scm (icu4c)[arguments]: Add phase 
'avoid-coreutils-reference'.
---
 gnu/packages/icu4c.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index 61333a3..cbba9aa 100644
--- a/gnu/packages/icu4c.scm
+++ b/gnu/packages/icu4c.scm
@@ -58,7 +58,15 @@
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'chdir-to-source
-          (lambda _ (chdir "source") #t)))))
+          (lambda _ (chdir "source") #t))
+        (add-after 'install 'avoid-coreutils-reference
+          ;; Don't keep a reference to the build tools.
+          (lambda* (#:key outputs #:allow-other-keys)
+            (let ((out (assoc-ref outputs "out")))
+              (substitute* (find-files (string-append out "/lib/icu")
+                                       "\\.inc$")
+                (("INSTALL_CMD=.*/bin/install") "INSTALL_CMD=install"))
+              #t))))))
    (synopsis "International Components for Unicode")
    (description
     "ICU is a set of C/C++ and Java libraries providing Unicode and



reply via email to

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