1359f9d48818a42863c86a82a3080fe3c34ac180
[jackhill/guix/guix.git] / distro / packages / libunistring.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
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 libunistring)
20 #:use-module (guix licenses)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix utils)
24 #:use-module (guix build-system gnu))
25
26 (define-public libunistring
27 (package
28 (name "libunistring")
29 (version "0.9.3")
30 (source (origin
31 (method url-fetch)
32 (uri (string-append
33 "mirror://gnu/libunistring/libunistring-"
34 version ".tar.gz"))
35 (sha256
36 (base32
37 "18q620269xzpw39dwvr9zpilnl2dkw5z5kz3mxaadnpv4k3kw3b1"))))
38 (propagated-inputs '()) ; FIXME: add libiconv when !glibc
39 (build-system gnu-build-system)
40 (synopsis "GNU Libunistring, a Unicode string library")
41 (description
42 "This library provides functions for manipulating Unicode strings and for
43 manipulating C strings according to the Unicode standard.
44
45 GNU libunistring is for you if your application involves non-trivial text
46 processing, such as upper/lower case conversions, line breaking, operations
47 on words, or more advanced analysis of text. Text provided by the user can,
48 in general, contain characters of all kinds of scripts. The text processing
49 functions provided by this library handle all scripts and all languages.
50
51 libunistring is for you if your application already uses the ISO C / POSIX
52 <ctype.h>, <wctype.h> functions and the text it operates on is provided by
53 the user and can be in any language.
54
55 libunistring is also for you if your application uses Unicode strings as
56 internal in-memory representation.")
57 (home-page "http://www.gnu.org/software/libunistring/")
58 (license lgpl3+)))