Commit | Line | Data |
---|---|---|
4c9e7975 AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
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. | |
10 | ;;; | |
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. | |
15 | ;;; | |
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/>. | |
18 | ||
19 | (define-module (distro packages icu4c) | |
20 | #:use-module (distro) | |
21 | #:use-module (distro packages perl) | |
22 | #:use-module (guix licenses) | |
23 | #:use-module (guix packages) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu)) | |
26 | ||
27 | (define-public icu4c | |
28 | (package | |
29 | (name "icu4c") | |
30 | (version "50.1.1") | |
31 | (source (origin | |
32 | (method url-fetch) | |
33 | (uri (string-append "http://download.icu-project.org/files/icu4c/" | |
34 | version | |
35 | "/icu4c-" | |
36 | (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version) | |
37 | "-src.tgz")) | |
38 | (sha256 (base32 | |
39 | "13yz0kk6zsgj94idnlr3vbg8iph5z4ly4b4xrd5wfja7q3ijdx56")))) | |
40 | (build-system gnu-build-system) | |
41 | (inputs `(("perl" ,perl))) | |
42 | (arguments | |
43 | `(#:phases | |
44 | (alist-replace | |
45 | 'unpack | |
46 | (lambda* (#:key source #:allow-other-keys) | |
47 | (and (zero? (system* "tar" "xvf" source)) | |
48 | (chdir "icu/source"))) | |
49 | (alist-replace | |
50 | 'configure | |
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" | |
56 | (("`/bin/sh") | |
57 | (string-append "`" (which "bash")))) | |
58 | (apply configure args))) | |
59 | %standard-phases)))) | |
60 | (synopsis "ICU, International Components for Unicode") | |
61 | (description | |
62 | "ICU is a set of C/C++ and Java libraries providing Unicode and | |
63 | globalisation support for software applications. This package contains the | |
64 | C/C++ part.") | |
65 | (license x11) | |
66 | (home-page "http://site.icu-project.org/"))) |