aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-17 13:46:58 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-17 13:46:58 +0100
commit9e90484b568db4ba324d63d36d0c4952322204fd (patch)
tree55ade276a9e3e11f6788f36149db7503f4d15910 /gnu/packages
parent7376ba4cd4d07b5640ab49acad371a8ef3f090bc (diff)
downloadguix-icu4c-zoneinfo.tar
guix-icu4c-zoneinfo.tar.gz
gnu: icu4c: Patch zoneinfo directory.icu4c-zoneinfo
Replace the hardcoded /usr/share/zoneinfo file with a reference to the tzdata package. * gnu/packages/icu4c.scm (icu4c)[inputs]: Add tzdata. [arguments]: Add a patch-zoneinfo-directory phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/icu4c.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index 57e8fffb35..d34b617455 100644
--- a/gnu/packages/icu4c.scm
+++ b/gnu/packages/icu4c.scm
@@ -22,6 +22,7 @@
(define-module (gnu packages icu4c)
#:use-module (gnu packages)
+ #:use-module (gnu packages base)
#:use-module (gnu packages perl)
#:use-module (guix licenses)
#:use-module (guix packages)
@@ -45,7 +46,8 @@
(base32 "065l3n0q9wqaw8dz20x82srshhm6i987fr9ync5xf9mr6n7ylwzh"))))
(build-system gnu-build-system)
(inputs
- `(("perl" ,perl)))
+ `(("perl" ,perl)
+ ("tzdata" ,tzdata)))
(arguments
`(#:configure-flags
'("--enable-rpath"
@@ -58,7 +60,13 @@
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'chdir-to-source
- (lambda _ (chdir "source") #t)))))
+ (lambda _ (chdir "source") #t))
+ (add-after 'chdir-to-source 'patch-zoneinfo-directory
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "common/putil.cpp"
+ (("\\/usr\\/share\\/zoneinfo")
+ (string-append (assoc-ref inputs "tzdata")
+ "/share/zoneinfo"))))))))
(synopsis "International Components for Unicode")
(description
"ICU is a set of C/C++ and Java libraries providing Unicode and