1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages icu4c)
20 #:use-module (gnu packages)
21 #:use-module (gnu packages perl)
22 #:use-module (guix licenses)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu))
33 (uri (string-append "http://download.icu-project.org/files/icu4c/"
36 (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version)
39 "13yz0kk6zsgj94idnlr3vbg8iph5z4ly4b4xrd5wfja7q3ijdx56"))))
40 (build-system gnu-build-system)
41 (inputs `(("perl" ,perl)))
46 (lambda* (#:key source #:allow-other-keys)
47 (and (zero? (system* "tar" "xvf" source))
48 (chdir "icu/source")))
51 (lambda* (#:key #:allow-other-keys #:rest args)
52 (let ((configure (assoc-ref %standard-phases 'configure)))
53 ;; patch out two occurrences of /bin/sh from configure script
54 ;; that might have disappeared in a release later than 50.1.1
55 (substitute* "configure"
57 (string-append "`" (which "bash"))))
58 (apply configure args)))
60 (synopsis "ICU, International Components for Unicode")
62 "ICU is a set of C/C++ and Java libraries providing Unicode and
63 globalisation support for software applications. This package contains the
66 (home-page "http://site.icu-project.org/")))