Import converters/libunistring:

Text files are nowadays usually encoded in Unicode, and may consist of
very different scripts - from Latin letters to Chinese Hanzi -, with
many kinds of special characters - accents, right-to-left writing marks,
hyphens, Roman numbers, and much more. But the POSIX platform APIs for
text do not contain adequate functions for dealing with particular
properties of many Unicode characters. In fact, the POSIX APIs for text
have several assumptions at their base which don't hold for Unicode
text.

This library provides functions for manipulating Unicode strings and for
manipulating C strings according to the Unicode standard.

small tweaks and ok jasper@
This commit is contained in:
pascal 2012-06-14 17:30:48 +00:00
parent e402a6f39e
commit 55b81800e4
6 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/06/14 17:30:48 pascal Exp $
COMMENT = manipulate Unicode strings
DISTNAME = libunistring-0.9.3
SHARED_LIBS += unistring 0.0 # 1.2
CATEGORIES = converters
HOMEPAGE = http://www.gnu.org/software/libunistring/
MAINTAINER = Pascal Stumpf <Pascal.Stumpf@cubes.de>
# (L)GPLv3+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_GNU:=libunistring/}
MODULES = converters/libiconv
# needs --preserve-dup-deps
USE_LIBTOOL = gnu
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += ${CONFIGURE_SHARED}
# XXX: One regression test fails:
# test-wcwidth fails on: ASSERT (wcwidth (0x05B0) == 0);
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libunistring-0.9.3.tar.gz) = 247KO2QWOrrfjEDlzswmHw==
RMD160 (libunistring-0.9.3.tar.gz) = UtfL7GKIcI/s18JJ4D38vsW86RA=
SHA1 (libunistring-0.9.3.tar.gz) = 4eoTwkowvJOTLRnrWtBwSmGFBt0=
SHA256 (libunistring-0.9.3.tar.gz) = YQ0+xyT72qZUr+PP8gufTVBL4/0pb97S4Pf3ZAQQBqM=
SIZE (libunistring-0.9.3.tar.gz) = 2555215

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2012/06/14 17:30:48 pascal Exp $
--- Makefile.in.orig Thu Mar 1 15:31:29 2012
+++ Makefile.in Thu Mar 1 15:31:38 2012
@@ -773,7 +773,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
ACLOCAL_AMFLAGS = -I m4 -I gnulib-m4
-SUBDIRS = doc gnulib-local lib tests
+SUBDIRS = gnulib-local lib tests
# Allow users to use "gnulib-tool --update".

View File

@ -0,0 +1,11 @@
Text files are nowadays usually encoded in Unicode, and may consist of
very different scripts - from Latin letters to Chinese Hanzi -, with
many kinds of special characters - accents, right-to-left writing marks,
hyphens, Roman numbers, and much more. But the POSIX platform APIs for
text do not contain adequate functions for dealing with particular
properties of many Unicode characters. In fact, the POSIX APIs for text
have several assumptions at their base which don't hold for Unicode
text.
This library provides functions for manipulating Unicode strings and for
manipulating C strings according to the Unicode standard.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2012/06/14 17:30:48 pascal Exp $
@lib lib/libunistring.so.${LIBunistring_VERSION}

View File

@ -0,0 +1,25 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/06/14 17:30:48 pascal Exp $
%%SHARED%%
include/unicase.h
include/uniconv.h
include/unictype.h
include/unilbrk.h
include/uniname.h
include/uninorm.h
include/unistdio.h
include/unistr.h
include/unistring/
include/unistring/cdefs.h
include/unistring/iconveh.h
include/unistring/inline.h
include/unistring/localcharset.h
include/unistring/stdbool.h
include/unistring/stdint.h
include/unistring/version.h
include/unistring/woe32dll.h
include/unitypes.h
include/uniwbrk.h
include/uniwidth.h
@comment lib/charset.alias
lib/libunistring.a
lib/libunistring.la