summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authornikita <nikita@pkgsrc.org>2020-04-27 15:42:20 +0000
committernikita <nikita@pkgsrc.org>2020-04-27 15:42:20 +0000
commit423daf418c521e5ee300cb688e5b68911bf90eff (patch)
treed70b0df517648b83dce66a7a6ef686b5aad1c7cb /devel
parent78dc023eb95017e3f31255b25bf7831a4718ff70 (diff)
downloadpkgsrc-423daf418c521e5ee300cb688e5b68911bf90eff.tar.gz
Add devel/go-textseg version 12.0.0
go-textseg s an implementation of the Unicode Text Segmentation specification for Go. Specifically, it currently includes only the "grapheme cluster" segmentation algorithm. Each major version of Unicode includes a set of tables that define how each codepoint participates in the segmentation algorithms. Therefore any caller of this library must select a specific version of Unicode to support. To allow for each caller to make that decision separately even though multiple callers may coexist in the same program, there is a separate major release of this module for each supported major Unicode version. Therefore you can select the specific version you want by module path.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile3
-rw-r--r--devel/go-textseg/DESCR14
-rw-r--r--devel/go-textseg/Makefile18
-rw-r--r--devel/go-textseg/PLIST19
-rw-r--r--devel/go-textseg/buildlink3.mk16
-rw-r--r--devel/go-textseg/distinfo6
6 files changed, 75 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 40a65b5efe1..f78b6808106 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3110 2020/04/27 15:15:08 nikita Exp $
+# $NetBSD: Makefile,v 1.3111 2020/04/27 15:42:20 nikita Exp $
#
COMMENT= Development utilities
@@ -450,6 +450,7 @@ SUBDIR+= go-sync
SUBDIR+= go-sys
SUBDIR+= go-termbox
SUBDIR+= go-testify
+SUBDIR+= go-textseg
SUBDIR+= go-thrift
SUBDIR+= go-tmc
SUBDIR+= go-tools
diff --git a/devel/go-textseg/DESCR b/devel/go-textseg/DESCR
new file mode 100644
index 00000000000..df325fbae88
--- /dev/null
+++ b/devel/go-textseg/DESCR
@@ -0,0 +1,14 @@
+go-textseg s an implementation of the Unicode Text Segmentation
+specification for Go. Specifically, it currently includes only the
+"grapheme cluster" segmentation algorithm.
+
+Each major version of Unicode includes a set of tables that define how
+each codepoint participates in the segmentation algorithms. Therefore
+any caller of this library must select a specific version of Unicode
+to support.
+
+To allow for each caller to make that decision separately even though
+multiple callers may coexist in the same program, there is a separate
+major release of this module for each supported major Unicode
+version. Therefore you can select the specific version you want by
+module path.
diff --git a/devel/go-textseg/Makefile b/devel/go-textseg/Makefile
new file mode 100644
index 00000000000..b53781daa8c
--- /dev/null
+++ b/devel/go-textseg/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2020/04/27 15:42:20 nikita Exp $
+
+DISTNAME= go-textseg-12.0.0
+MASTER_SITES= ${MASTER_SITE_GITHUB:=apparentlymart/}
+CATEGORIES= devel
+GITHUB_PROJECT= go-textseg
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/apparentlymart/go-textseg
+COMMENT= Go implementation of Unicode Text Segmentation
+LICENSE= mit AND apache-2.0 AND unicode
+
+GO_DIST_BASE= ${DISTNAME}
+GO_SRCPATH= github.com/apparentlymart/go-textseg
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/go-textseg/PLIST b/devel/go-textseg/PLIST
new file mode 100644
index 00000000000..492f9649993
--- /dev/null
+++ b/devel/go-textseg/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/27 15:42:20 nikita Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/apparentlymart/go-textseg/textseg.a
+gopkg/src/github.com/apparentlymart/go-textseg/LICENSE
+gopkg/src/github.com/apparentlymart/go-textseg/go.mod
+gopkg/src/github.com/apparentlymart/go-textseg/go.sum
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/all_tokens.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/all_tokens_test.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/emoji_table.rl
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/generate.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/grapheme_clusters.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/grapheme_clusters.rl
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/grapheme_clusters_table.rl
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/grapheme_clusters_test.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/make_tables.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/make_test_tables.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/tables.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/tables_test.go
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/unicode2ragel.rb
+gopkg/src/github.com/apparentlymart/go-textseg/textseg/utf8_seqs.go
diff --git a/devel/go-textseg/buildlink3.mk b/devel/go-textseg/buildlink3.mk
new file mode 100644
index 00000000000..62c2bc2c5b5
--- /dev/null
+++ b/devel/go-textseg/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/04/27 15:42:20 nikita Exp $
+
+BUILDLINK_TREE+= go-textseg
+
+.if !defined(GO_TEXTSEG_BUILDLINK3_MK)
+GO_TEXTSEG_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-textseg= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-textseg?= build
+
+BUILDLINK_API_DEPENDS.go-textseg+= go-textseg>=12.0.0
+BUILDLINK_PKGSRCDIR.go-textseg?= ../../devel/go-textseg
+
+.endif # GO_TEXTSEG_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-textseg
diff --git a/devel/go-textseg/distinfo b/devel/go-textseg/distinfo
new file mode 100644
index 00000000000..4f6fb6db98d
--- /dev/null
+++ b/devel/go-textseg/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/04/27 15:42:20 nikita Exp $
+
+SHA1 (go-textseg-12.0.0.tar.gz) = 0cad6a543430f52178d29bca41347ec82f3af514
+RMD160 (go-textseg-12.0.0.tar.gz) = 66894fb99006109566318ddbd98405984b78af1d
+SHA512 (go-textseg-12.0.0.tar.gz) = 9e6079a3ddeeee672209307d95f0311ad7782240035148ed1037f4d69537f445fb439a71ee3da2a3d4f3db4d67cd7def5a1b6a81763003c61ef34bcd0acadd7e
+Size (go-textseg-12.0.0.tar.gz) = 125616 bytes