aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-07-25 04:36:02 +0200
committerMarius Bakke <mbakke@fastmail.com>2018-07-28 15:02:38 +0200
commitfbd2b8da5d7e6edb16ba7128324f6bc48ac68569 (patch)
treecdadc383411132df33f2e69046f09763f8b8d9f1 /gnu
parentb148506df74e48006194448a089eb16d4fcffc59 (diff)
downloadpatches-fbd2b8da5d7e6edb16ba7128324f6bc48ac68569.tar
patches-fbd2b8da5d7e6edb16ba7128324f6bc48ac68569.tar.gz
gnu: icu4c: Don't keep a reference to coreutils.
* gnu/packages/icu4c.scm (icu4c)[arguments]: Add phase 'avoid-coreutils-reference'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/icu4c.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index 61333a3e75..cbba9aa42a 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