Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
39160232 | 2 | ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org> |
fdb31626 | 3 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> |
652cad85 | 4 | ;;; Copyright © 2016, 2018 Efraim Flashner <efraim@flashner.co.il> |
d788fcd3 | 5 | ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org> |
b100e0e8 | 6 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
acc2dab7 | 7 | ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org> |
605f0621 | 8 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
c0b3867c | 9 | ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com> |
c44899a2 | 10 | ;;; |
233e7676 | 11 | ;;; This file is part of GNU Guix. |
c44899a2 | 12 | ;;; |
233e7676 | 13 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
c44899a2 LC |
14 | ;;; under the terms of the GNU General Public License as published by |
15 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
16 | ;;; your option) any later version. | |
17 | ;;; | |
233e7676 | 18 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
c44899a2 LC |
19 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
20 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | ;;; GNU General Public License for more details. | |
22 | ;;; | |
23 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 24 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
c44899a2 | 25 | |
1ffa7090 | 26 | (define-module (gnu packages libunistring) |
4a44e743 | 27 | #:use-module (guix licenses) |
c44899a2 | 28 | #:use-module (guix packages) |
87f5d366 | 29 | #:use-module (guix download) |
d788fcd3 | 30 | #:use-module (guix build-system gnu) |
b100e0e8 | 31 | #:use-module (gnu packages) |
d788fcd3 | 32 | #:use-module (gnu packages base)) |
c44899a2 LC |
33 | |
34 | (define-public libunistring | |
35 | (package | |
36 | (name "libunistring") | |
605f0621 | 37 | (version "0.9.10") |
c44899a2 | 38 | (source (origin |
87f5d366 | 39 | (method url-fetch) |
c44899a2 | 40 | (uri (string-append |
0db342a5 | 41 | "mirror://gnu/libunistring/libunistring-" |
d54c0bfd | 42 | version ".tar.xz")) |
c44899a2 LC |
43 | (sha256 |
44 | (base32 | |
605f0621 | 45 | "1mq57h06622m6qc5cv347fc3qk5mj840axw3c0vd7qmnwk1v53zb")))) |
d788fcd3 | 46 | (propagated-inputs (libiconv-if-needed)) |
c0b3867c | 47 | (outputs '("out" "static")) |
c44899a2 | 48 | (build-system gnu-build-system) |
39160232 LC |
49 | (arguments |
50 | ;; Work around parallel build issue whereby C files may be compiled before | |
51 | ;; config.h is built: see <http://hydra.gnu.org/build/59381/nixlog/2/raw> and | |
52 | ;; <http://lists.openembedded.org/pipermail/openembedded-core/2012-April/059850.html>. | |
1f2d64e4 | 53 | '(#:parallel-build? #f |
c0b3867c MB |
54 | #:phases (modify-phases %standard-phases |
55 | (add-after 'install 'move-static-library | |
56 | (lambda* (#:key outputs #:allow-other-keys) | |
57 | (let ((out (assoc-ref outputs "out")) | |
58 | (static (assoc-ref outputs "static"))) | |
59 | (with-directory-excursion (string-append out "/lib") | |
60 | (install-file "libunistring.a" | |
61 | (string-append static "/lib")) | |
62 | (delete-file "libunistring.a") | |
63 | #t))))))) | |
f50d2669 | 64 | (synopsis "C library for manipulating Unicode strings") |
c44899a2 | 65 | (description |
79c311b8 LC |
66 | "GNU libunistring is a library providing functions to manipulate |
67 | Unicode strings and for manipulating C strings according to the Unicode | |
68 | standard.") | |
d54c0bfd EF |
69 | (home-page "https://www.gnu.org/software/libunistring/") |
70 | (license (list lgpl3+ gpl2)))) |