diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2016-08-13 20:21:08 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2016-08-13 20:21:08 +0000 |
commit | a08caf61ebb97490bd199984bac0c750a148663e (patch) | |
tree | bfdcb07df795d6d12565fdf838ecdfcb28617571 /textproc | |
parent | 5e62f13e16b836c5460d948dda6dc0095a1d8725 (diff) | |
download | pkgsrc-a08caf61ebb97490bd199984bac0c750a148663e.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')
-rw-r--r-- | textproc/Makefile | 3 | ||||
-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 |
6 files changed, 53 insertions, 1 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 12097c216d8..a41a851bf3a 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.893 2016/07/30 13:18:31 mef Exp $ +# $NetBSD: Makefile,v 1.894 2016/08/13 20:21:08 bsiegert Exp $ # COMMENT= Text processing utilities (does not include desktop publishing) @@ -191,6 +191,7 @@ SUBDIR+= glimpse SUBDIR+= gnome-doc-utils SUBDIR+= gnome-spell SUBDIR+= gnome-subtitles +SUBDIR+= go-runewidth SUBDIR+= go-text SUBDIR+= grep SUBDIR+= grepcidr 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 |