From edf5cff945050ce332234dbdffa3eb29d89d2bba Mon Sep 17 00:00:00 2001 From: markd Date: Thu, 14 Mar 2024 19:15:29 +0000 Subject: [PATCH] libunibreak: add version 6.1 This is libunibreak, an implementation of the line breaking and word/grapheme breaking algorithms as described in [Unicode Standard Annex 14][1] (UAX #14) and [Unicode Standard Annex 29][2] (UAX #29). As of February 2024, Unicode 15.0 support for line breaking, as well as full Unicode 15.1 support for word/grapheme breaking, is provided. There is currently no plan to implement full Unicode 15.1 support for line breaking, mostly because tailoring for Brahmic scripts, as described in LB28a of UAX #14-51, is problematic within the current framework. --- textproc/Makefile | 3 ++- textproc/libunibreak/DESCR | 10 ++++++++++ textproc/libunibreak/Makefile | 18 ++++++++++++++++++ textproc/libunibreak/PLIST | 11 +++++++++++ textproc/libunibreak/buildlink3.mk | 12 ++++++++++++ textproc/libunibreak/distinfo | 5 +++++ 6 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 textproc/libunibreak/DESCR create mode 100644 textproc/libunibreak/Makefile create mode 100644 textproc/libunibreak/PLIST create mode 100644 textproc/libunibreak/buildlink3.mk create mode 100644 textproc/libunibreak/distinfo diff --git a/textproc/Makefile b/textproc/Makefile index c1ba374552f4..0cb4d9bd35bb 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1455 2024/03/09 06:51:34 adam Exp $ +# $NetBSD: Makefile,v 1.1456 2024/03/14 19:15:29 markd Exp $ # COMMENT= Text processing utilities (does not include desktop publishing) @@ -500,6 +500,7 @@ SUBDIR+= libodfgen SUBDIR+= libpinyin SUBDIR+= libplist SUBDIR+= libstemmer +SUBDIR+= libunibreak SUBDIR+= libunicode SUBDIR+= libuninameslist SUBDIR+= libunistring diff --git a/textproc/libunibreak/DESCR b/textproc/libunibreak/DESCR new file mode 100644 index 000000000000..2c7d1a4dcb80 --- /dev/null +++ b/textproc/libunibreak/DESCR @@ -0,0 +1,10 @@ +This is libunibreak, an implementation of the line breaking and +word/grapheme breaking algorithms as described in [Unicode Standard +Annex 14][1] (UAX #14) and [Unicode Standard Annex 29][2] (UAX #29). + +As of February 2024, Unicode 15.0 support for line breaking, as well as +full Unicode 15.1 support for word/grapheme breaking, is provided. +There is currently no plan to implement full Unicode 15.1 support for +line breaking, mostly because tailoring for Brahmic scripts, as +described in LB28a of UAX #14-51, is problematic within the current +framework. diff --git a/textproc/libunibreak/Makefile b/textproc/libunibreak/Makefile new file mode 100644 index 000000000000..5fb354df466a --- /dev/null +++ b/textproc/libunibreak/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2024/03/14 19:15:29 markd Exp $ + +DISTNAME= libunibreak-6.1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=adah1972/} +GITHUB_RELEASE= ${DISTNAME:S/-/_/:S/./_/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/adah1972/libunibreak/ +COMMENT= Implementation of line breaking algorithm described in Unicode 5.2.0 SA 14 +LICENSE= zlib + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes + +PKGCONFIG_OVERRIDE+= libunibreak.pc.in + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/libunibreak/PLIST b/textproc/libunibreak/PLIST new file mode 100644 index 000000000000..2c9fdbe249bf --- /dev/null +++ b/textproc/libunibreak/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2024/03/14 19:15:29 markd Exp $ +include/eastasianwidthdef.h +include/graphemebreak.h +include/linebreak.h +include/linebreakdef.h +include/unibreakbase.h +include/unibreakdef.h +include/wordbreak.h +lib/liblinebreak.a +lib/libunibreak.la +lib/pkgconfig/libunibreak.pc diff --git a/textproc/libunibreak/buildlink3.mk b/textproc/libunibreak/buildlink3.mk new file mode 100644 index 000000000000..da5cacb7d0da --- /dev/null +++ b/textproc/libunibreak/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2024/03/14 19:15:29 markd Exp $ + +BUILDLINK_TREE+= libunibreak + +.if !defined(LIBUNIBREAK_BUILDLINK3_MK) +LIBUNIBREAK_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libunibreak+= libunibreak>=6.1 +BUILDLINK_PKGSRCDIR.libunibreak?= ../../textproc/libunibreak +.endif # LIBUNIBREAK_BUILDLINK3_MK + +BUILDLINK_TREE+= -libunibreak diff --git a/textproc/libunibreak/distinfo b/textproc/libunibreak/distinfo new file mode 100644 index 000000000000..81dfcbcde60d --- /dev/null +++ b/textproc/libunibreak/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2024/03/14 19:15:30 markd Exp $ + +BLAKE2s (libunibreak-6.1.tar.gz) = 64d5851078e73846a42bcbb6cb28e8b2e2d20913517cadee599832447d7f001f +SHA512 (libunibreak-6.1.tar.gz) = 8ffde29a9b90ddcbfabb61d7302ffe3b17473cd6d30fe1a4403d857e6191291d7e7a6f23bde58654155ed95f4a0f31e082cdf424a82da46722a811291ef38c2f +Size (libunibreak-6.1.tar.gz) = 855733 bytes