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> |
a408e757 | 5 | ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org> |
1d4234d4 | 6 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> |
4c9e7975 AE |
7 | ;;; |
8 | ;;; This file is part of GNU Guix. | |
9 | ;;; | |
10 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
11 | ;;; under the terms of the GNU General Public License as published by | |
12 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
13 | ;;; your option) any later version. | |
14 | ;;; | |
15 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
16 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | ;;; GNU General Public License for more details. | |
19 | ;;; | |
20 | ;;; You should have received a copy of the GNU General Public License | |
21 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
22 | ||
1ffa7090 | 23 | (define-module (gnu packages icu4c) |
59a43334 | 24 | #:use-module (gnu packages) |
1ffa7090 | 25 | #:use-module (gnu packages perl) |
4c9e7975 AE |
26 | #:use-module (guix licenses) |
27 | #:use-module (guix packages) | |
28 | #:use-module (guix download) | |
1d4234d4 | 29 | #:use-module (guix build-system ant) |
4c9e7975 AE |
30 | #:use-module (guix build-system gnu)) |
31 | ||
32 | (define-public icu4c | |
33 | (package | |
34 | (name "icu4c") | |
3221d1a3 | 35 | (version "58.2") |
4c9e7975 AE |
36 | (source (origin |
37 | (method url-fetch) | |
d5df6fc7 | 38 | (uri (string-append |
5499de02 | 39 | "http://download.icu-project.org/files/icu4c/" |
d5df6fc7 AW |
40 | version |
41 | "/icu4c-" | |
42 | (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version) | |
43 | "-src.tgz")) | |
d1a91408 RW |
44 | (patches |
45 | (search-patches "icu4c-CVE-2017-7867-CVE-2017-7868.patch" | |
e2ffdd83 | 46 | "icu4c-CVE-2017-14952.patch" |
d1a91408 | 47 | "icu4c-reset-keyword-list-iterator.patch")) |
1319cfe9 | 48 | (sha256 |
3221d1a3 | 49 | (base32 "036shcb3f8bm1lynhlsb4kpjm9s9c2vdiir01vg216rs2l8482ib")))) |
4c9e7975 | 50 | (build-system gnu-build-system) |
a2270ce2 | 51 | (inputs |
0d93648b | 52 | `(("perl" ,perl))) |
4c9e7975 | 53 | (arguments |
0d93648b MW |
54 | `(#:configure-flags |
55 | '("--enable-rpath" | |
93cb98d4 MW |
56 | ,@(if (let ((s (or (%current-target-system) |
57 | (%current-system)))) | |
58 | (or (string-prefix? "arm" s) | |
59 | (string-prefix? "mips" s))) | |
0d93648b MW |
60 | '("--with-data-packaging=archive") |
61 | '())) | |
a2270ce2 | 62 | #:phases |
c296d5d1 EF |
63 | (modify-phases %standard-phases |
64 | (add-after 'unpack 'chdir-to-source | |
65 | (lambda _ (chdir "source") #t))))) | |
35b9e423 | 66 | (synopsis "International Components for Unicode") |
4c9e7975 AE |
67 | (description |
68 | "ICU is a set of C/C++ and Java libraries providing Unicode and | |
35b9e423 | 69 | globalisation support for software applications. This package contains the |
4c9e7975 AE |
70 | C/C++ part.") |
71 | (license x11) | |
72 | (home-page "http://site.icu-project.org/"))) | |
a408e757 | 73 | |
1d4234d4 RW |
74 | (define-public java-icu4j |
75 | (package | |
76 | (name "java-icu4j") | |
77 | (version "59.1") | |
78 | (source (origin | |
79 | (method url-fetch) | |
80 | (uri (string-append "http://download.icu-project.org/files/icu4j/" | |
81 | version "/icu4j-" | |
82 | (string-map (lambda (x) | |
83 | (if (char=? x #\.) #\_ x)) | |
84 | version) | |
85 | "-src.jar")) | |
86 | (sha256 | |
87 | (base32 | |
88 | "0bgxsvgi0qcwj60pvcxrf7a3fbk7aksyxnfwpbzavyfrfzixqh0c")))) | |
89 | (build-system ant-build-system) | |
90 | (arguments | |
91 | `(#:tests? #f ; no tests included | |
92 | #:jar-name "icu4j.jar")) | |
93 | (home-page "http://site.icu-project.org/") | |
94 | (synopsis "International Components for Unicode") | |
95 | (description | |
96 | "ICU is a set of C/C++ and Java libraries providing Unicode and | |
97 | globalisation support for software applications. This package contains the | |
98 | Java part.") | |
99 | (license x11))) |