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

* gnu/packages/icu4c.scm (icu4c)[arguments]: Add phase 'avoid-coreutils-reference'.
This commit is contained in:
Marius Bakke 2018-07-25 04:36:02 +02:00
parent b148506df7
commit fbd2b8da5d
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 9 additions and 1 deletions

View File

@ -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