diff options
author | bsiegert <bsiegert> | 2016-08-13 20:21:08 +0000 |
---|---|---|
committer | bsiegert <bsiegert> | 2016-08-13 20:21:08 +0000 |
commit | 9e6f7c45116fc50e4edf3cbe153041fb2428287d (patch) | |
tree | bf0bc09a2a2670dfddb6710d8dc3d8597b063151 /textproc/go-runewidth | |
parent | 68d2201cacfc15bdfff12faf14aa00c0f31904a7 (diff) | |
download | pkgsrc-9e6f7c45116fc50e4edf3cbe153041fb2428287d.tar.gz |
New package, go-runewidth-0.0.1.
go-runewidth provides the RuneWidth and StringWidth functions to get
the fixed width of a Unicode rune or string.
Diffstat (limited to 'textproc/go-runewidth')
-rw-r--r-- | textproc/go-runewidth/DESCR | 2 | ||||
-rw-r--r-- | textproc/go-runewidth/Makefile | 19 | ||||
-rw-r--r-- | textproc/go-runewidth/PLIST | 9 | ||||
-rw-r--r-- | textproc/go-runewidth/buildlink3.mk | 15 | ||||
-rw-r--r-- | textproc/go-runewidth/distinfo | 6 |
5 files changed, 51 insertions, 0 deletions
diff --git a/textproc/go-runewidth/DESCR b/textproc/go-runewidth/DESCR new file mode 100644 index 00000000000..dc584b4c17e --- /dev/null +++ b/textproc/go-runewidth/DESCR @@ -0,0 +1,2 @@ +go-runewidth provides the RuneWidth and StringWidth functions to get +the fixed width of a Unicode rune or string. diff --git a/textproc/go-runewidth/Makefile b/textproc/go-runewidth/Makefile new file mode 100644 index 00000000000..41722474e70 --- /dev/null +++ b/textproc/go-runewidth/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2016/08/13 20:21:08 bsiegert Exp $ + +DISTNAME= go-runewidth-0.0.1 +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_GITHUB:=mattn/} +GITHUB_PROJECT= go-runewidth +GITHUB_TAG= v0.0.1 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/mattn/go-runewidth +COMMENT= Provides functions to get fixed width of a string +LICENSE= mit + +WRKSRC= ${WRKDIR} +GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG:S/v//} +GO_SRCPATH= github.com/mattn/go-runewidth + +.include "../../lang/go/go-package.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/go-runewidth/PLIST b/textproc/go-runewidth/PLIST new file mode 100644 index 00000000000..6041cac10bd --- /dev/null +++ b/textproc/go-runewidth/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2016/08/13 20:21:08 bsiegert Exp $ +gopkg/pkg/${GO_PLATFORM}/github.com/mattn/go-runewidth.a +gopkg/src/github.com/mattn/go-runewidth/README.mkd +gopkg/src/github.com/mattn/go-runewidth/runewidth.go +gopkg/src/github.com/mattn/go-runewidth/runewidth_js.go +gopkg/src/github.com/mattn/go-runewidth/runewidth_posix.go +gopkg/src/github.com/mattn/go-runewidth/runewidth_test.go +gopkg/src/github.com/mattn/go-runewidth/runewidth_windows.go +@pkgdir bin diff --git a/textproc/go-runewidth/buildlink3.mk b/textproc/go-runewidth/buildlink3.mk new file mode 100644 index 00000000000..27ed1cb35b0 --- /dev/null +++ b/textproc/go-runewidth/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/08/13 20:21:08 bsiegert Exp $ + +BUILDLINK_TREE+= go-runewidth + +.if !defined(GO_RUNEWIDTH_BUILDLINK3_MK) +GO_RUNEWIDTH_BUILDLINK3_MK:= + +BUILDLINK_CONTENTS_FILTER.go-runewidth= ${EGREP} gopkg/ +BUILDLINK_DEPMETHOD.go-runewidth?= build + +BUILDLINK_API_DEPENDS.go-runewidth+= go-runewidth>=0.0.1 +BUILDLINK_PKGSRCDIR.go-runewidth?= ../../textproc/go-runewidth +.endif # GO_RUNEWIDTH_BUILDLINK3_MK + +BUILDLINK_TREE+= -go-runewidth diff --git a/textproc/go-runewidth/distinfo b/textproc/go-runewidth/distinfo new file mode 100644 index 00000000000..6cb08b71709 --- /dev/null +++ b/textproc/go-runewidth/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/08/13 20:21:08 bsiegert Exp $ + +SHA1 (go-runewidth-0.0.1.tar.gz) = f76784415e3c47c2239e5fd174c26a79d53f38e1 +RMD160 (go-runewidth-0.0.1.tar.gz) = a0cba59dfc2d9761b58d2abb70062d839ef34d9a +SHA512 (go-runewidth-0.0.1.tar.gz) = 7f23b93c55826fdd6f45cf9a25584386c3c9b3bc3f3de007ed62f5d2cd2275128b2f47c0e39d0f15d92e5eae4d3352dca96a2fcea1c8406a3c2780550e3318ea +Size (go-runewidth-0.0.1.tar.gz) = 5880 bytes |