2009-09-20 00:17:11 +02:00
|
|
|
{ fetchurl, stdenv, libiconv }:
|
2009-06-27 23:44:47 +02:00
|
|
|
|
2015-07-10 02:31:06 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-12-04 14:03:44 +01:00
|
|
|
name = "libunistring-${version}";
|
|
|
|
version = "0.9.8";
|
2009-06-27 23:44:47 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/libunistring/${name}.tar.gz";
|
2017-12-04 14:03:44 +01:00
|
|
|
sha256 = "1x9wnpzg7vxyjpnzab6vw0afbcijfbd57qrrkqrppynh0nyz54mp";
|
2009-06-27 23:44:47 +02:00
|
|
|
};
|
|
|
|
|
2017-02-20 23:37:53 +01:00
|
|
|
outputs = [ "out" "dev" "info" "doc" ];
|
|
|
|
|
2016-10-12 20:26:43 +02:00
|
|
|
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
|
2015-07-10 02:31:06 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-libiconv-prefix=${libiconv}"
|
|
|
|
];
|
2009-09-20 00:17:11 +02:00
|
|
|
|
2018-01-13 06:54:17 +01:00
|
|
|
doCheck = !stdenv.hostPlatform.isMusl;
|
2017-12-04 23:38:34 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2009-06-27 23:44:47 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.gnu.org/software/libunistring/;
|
|
|
|
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Unicode string library";
|
2009-06-27 23:44:47 +02:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
This library provides functions for manipulating Unicode strings
|
|
|
|
and for manipulating C strings according to the Unicode
|
|
|
|
standard.
|
|
|
|
|
|
|
|
GNU libunistring is for you if your application involves
|
|
|
|
non-trivial text processing, such as upper/lower case
|
|
|
|
conversions, line breaking, operations on words, or more
|
|
|
|
advanced analysis of text. Text provided by the user can, in
|
|
|
|
general, contain characters of all kinds of scripts. The text
|
|
|
|
processing functions provided by this library handle all scripts
|
|
|
|
and all languages.
|
|
|
|
|
|
|
|
libunistring is for you if your application already uses the ISO
|
|
|
|
C / POSIX <ctype.h>, <wctype.h> functions and the text it
|
|
|
|
operates on is provided by the user and can be in any language.
|
|
|
|
|
|
|
|
libunistring is also for you if your application uses Unicode
|
|
|
|
strings as internal in-memory representation.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl3Plus;
|
2009-07-03 00:54:19 +02:00
|
|
|
|
2015-01-13 22:33:24 +01:00
|
|
|
maintainers = [ ];
|
2010-02-12 14:40:53 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2009-06-27 23:44:47 +02:00
|
|
|
};
|
|
|
|
}
|