Commit | Line | Data |
---|---|---|
4c9e7975 AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
93cb98d4 | 3 | ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org> |
5499de02 | 4 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
4c9e7975 AE |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
9 | ;;; under the terms of the GNU General Public License as published by | |
10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
11 | ;;; your option) any later version. | |
12 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ;;; GNU General Public License for more details. | |
17 | ;;; | |
18 | ;;; You should have received a copy of the GNU General Public License | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
1ffa7090 | 21 | (define-module (gnu packages icu4c) |
59a43334 | 22 | #:use-module (gnu packages) |
1ffa7090 | 23 | #:use-module (gnu packages perl) |
4c9e7975 AE |
24 | #:use-module (guix licenses) |
25 | #:use-module (guix packages) | |
26 | #:use-module (guix download) | |
27 | #:use-module (guix build-system gnu)) | |
28 | ||
29 | (define-public icu4c | |
30 | (package | |
31 | (name "icu4c") | |
5499de02 | 32 | (version "58.1") |
4c9e7975 AE |
33 | (source (origin |
34 | (method url-fetch) | |
d5df6fc7 | 35 | (uri (string-append |
5499de02 | 36 | "http://download.icu-project.org/files/icu4c/" |
d5df6fc7 AW |
37 | version |
38 | "/icu4c-" | |
39 | (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version) | |
40 | "-src.tgz")) | |
1319cfe9 | 41 | (sha256 |
5499de02 | 42 | (base32 "0283lcgb39v7hsl16bbp8h8r9d51n4lpld5dr292173afjinpd0f")))) |
4c9e7975 | 43 | (build-system gnu-build-system) |
a2270ce2 | 44 | (inputs |
0d93648b | 45 | `(("perl" ,perl))) |
4c9e7975 | 46 | (arguments |
0d93648b MW |
47 | `(#:configure-flags |
48 | '("--enable-rpath" | |
93cb98d4 MW |
49 | ,@(if (let ((s (or (%current-target-system) |
50 | (%current-system)))) | |
51 | (or (string-prefix? "arm" s) | |
52 | (string-prefix? "mips" s))) | |
0d93648b MW |
53 | '("--with-data-packaging=archive") |
54 | '())) | |
a2270ce2 | 55 | #:phases |
d4bf49b1 EB |
56 | (alist-cons-after |
57 | 'unpack 'chdir-to-source | |
58 | (lambda _ (chdir "source")) | |
5499de02 | 59 | %standard-phases))) |
35b9e423 | 60 | (synopsis "International Components for Unicode") |
4c9e7975 AE |
61 | (description |
62 | "ICU is a set of C/C++ and Java libraries providing Unicode and | |
35b9e423 | 63 | globalisation support for software applications. This package contains the |
4c9e7975 AE |
64 | C/C++ part.") |
65 | (license x11) | |
66 | (home-page "http://site.icu-project.org/"))) |