utf8proc is a library for processing UTF-8 encoded Unicode strings.
Some features are Unicode normalization, stripping of default ignorable characters, case folding and detection of grapheme cluster boundaries. A special character mapping is available, which converts for example the characters "Hyphen" (U+2010), "Minus" (U+2212) and "Hyphen-Minus" (U+002D, ASCII Minus) all into the ASCII minus sign, to make them equal for comparisons. WWW: http://www.flexiguided.de/publications.utf8proc.en.html
This commit is contained in:
parent
f64bd6119a
commit
bc1b0038da
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=201552
@ -986,6 +986,7 @@
|
||||
SUBDIR += unroff
|
||||
SUBDIR += unrtf
|
||||
SUBDIR += urlview
|
||||
SUBDIR += utf8proc
|
||||
SUBDIR += uz-aspell
|
||||
SUBDIR += vbindiff
|
||||
SUBDIR += wa-aspell
|
||||
|
28
textproc/utf8proc/Makefile
Normal file
28
textproc/utf8proc/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# New ports collection makefile for: utf8proc
|
||||
# Date created: 2007-10-15
|
||||
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= utf8proc
|
||||
PORTVERSION= 1.1.2
|
||||
CATEGORIES= textproc devel
|
||||
MASTER_SITES= http://www.flexiguided.de/pub/
|
||||
DISTNAME= ${PORTNAME}-v${PORTVERSION}
|
||||
|
||||
MAINTAINER= clsung@FreeBSD.org
|
||||
COMMENT= UTF-8 processing library
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
ALL_TARGET= c-library
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/libutf8proc.so ${PREFIX}/lib/libutf8proc.so.1
|
||||
${INSTALL_DATA} ${WRKSRC}/libutf8proc.a ${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKSRC}/utf8proc.h ${PREFIX}/include
|
||||
${LN} -sf ${PREFIX}/lib/libutf8proc.so.0 ${PREFIX}/lib/libutf8proc.so
|
||||
|
||||
.include <bsd.port.mk>
|
3
textproc/utf8proc/distinfo
Normal file
3
textproc/utf8proc/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (utf8proc-v1.1.2.tar.gz) = 28dc73f8f8b479318b08576a0d28c3d2
|
||||
SHA256 (utf8proc-v1.1.2.tar.gz) = d9b8b5e35971da03f397af6ab56a7c37f26a1e48b171cb02c19584fe069a77d0
|
||||
SIZE (utf8proc-v1.1.2.tar.gz) = 283391
|
11
textproc/utf8proc/files/patch-Makefile
Normal file
11
textproc/utf8proc/files/patch-Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.orig 2007-07-22 14:53:03.000000000 +0800
|
||||
+++ Makefile 2007-10-15 10:43:18.000000000 +0800
|
||||
@@ -4,7 +4,7 @@
|
||||
# settings
|
||||
|
||||
cflags = -O2 -std=c99 -pedantic -Wall -fpic $(CFLAGS)
|
||||
-cc = gcc $(cflags)
|
||||
+cc = $(CC) $(cflags)
|
||||
|
||||
|
||||
# meta targets
|
9
textproc/utf8proc/pkg-descr
Normal file
9
textproc/utf8proc/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
utf8proc is a library for processing UTF-8 encoded Unicode strings.
|
||||
Some features are Unicode normalization, stripping of default ignorable
|
||||
characters, case folding and detection of grapheme cluster boundaries.
|
||||
A special character mapping is available, which converts for example the
|
||||
characters "Hyphen" (U+2010), "Minus" (U+2212) and
|
||||
"Hyphen-Minus" (U+002D, ASCII Minus) all into the ASCII minus sign, to
|
||||
make them equal for comparisons.
|
||||
|
||||
WWW: http://www.flexiguided.de/publications.utf8proc.en.html
|
5
textproc/utf8proc/pkg-plist
Normal file
5
textproc/utf8proc/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $FreeBSD$
|
||||
include/utf8proc.h
|
||||
lib/libutf8proc.a
|
||||
lib/libutf8proc.so
|
||||
lib/libutf8proc.so.1
|
Loading…
Reference in New Issue
Block a user