summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorgavan <gavan@pkgsrc.org>2017-08-17 01:36:26 +0000
committergavan <gavan@pkgsrc.org>2017-08-17 01:36:26 +0000
commit909b57fd80de51c10f6c81b5ca0b4cb3f2ce0b0e (patch)
treee17d977865e3927da87096d4c235980f1716ee7f /devel
parente2d37188c731e0352b7d7c8e3d6a07d227853f21 (diff)
downloadpkgsrc-909b57fd80de51c10f6c81b5ca0b4cb3f2ce0b0e.tar.gz
Add go-pflag package
Diffstat (limited to 'devel')
-rw-r--r--devel/go-pflag/DESCR5
-rw-r--r--devel/go-pflag/Makefile20
-rw-r--r--devel/go-pflag/PLIST48
-rw-r--r--devel/go-pflag/buildlink3.mk17
-rw-r--r--devel/go-pflag/distinfo6
5 files changed, 96 insertions, 0 deletions
diff --git a/devel/go-pflag/DESCR b/devel/go-pflag/DESCR
new file mode 100644
index 00000000000..28a22fb2e85
--- /dev/null
+++ b/devel/go-pflag/DESCR
@@ -0,0 +1,5 @@
+pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
+
+pflag is compatible with the GNU extensions to the POSIX recommendations for command-line options. For a more precise description, see the "Command-line flag syntax" section below.
+
+pflag is available under the same style of BSD license as the Go language, which can be found in the LICENSE file.
diff --git a/devel/go-pflag/Makefile b/devel/go-pflag/Makefile
new file mode 100644
index 00000000000..1d72cc9a257
--- /dev/null
+++ b/devel/go-pflag/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:36:26 gavan Exp $
+
+DISTNAME= pflag-1.0.0
+PKGNAME= go-${DISTNAME}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=spf13/}
+CATEGORIES= devel
+GITHUB_TAG= v${PKGVERSION_NOREV}
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/spf13/pflag
+COMMENT= Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
+LICENSE= modified-bsd
+
+GO_DIST_BASE= ${DISTNAME}
+GO_SRCPATH= github.com/spf13/pflag
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff --git a/devel/go-pflag/PLIST b/devel/go-pflag/PLIST
new file mode 100644
index 00000000000..f6e56ef305a
--- /dev/null
+++ b/devel/go-pflag/PLIST
@@ -0,0 +1,48 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:36:26 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/spf13/pflag.a
+gopkg/src/github.com/spf13/pflag/LICENSE
+gopkg/src/github.com/spf13/pflag/README.md
+gopkg/src/github.com/spf13/pflag/bool.go
+gopkg/src/github.com/spf13/pflag/bool_slice.go
+gopkg/src/github.com/spf13/pflag/bool_slice_test.go
+gopkg/src/github.com/spf13/pflag/bool_test.go
+gopkg/src/github.com/spf13/pflag/count.go
+gopkg/src/github.com/spf13/pflag/count_test.go
+gopkg/src/github.com/spf13/pflag/duration.go
+gopkg/src/github.com/spf13/pflag/example_test.go
+gopkg/src/github.com/spf13/pflag/export_test.go
+gopkg/src/github.com/spf13/pflag/flag.go
+gopkg/src/github.com/spf13/pflag/flag_test.go
+gopkg/src/github.com/spf13/pflag/float32.go
+gopkg/src/github.com/spf13/pflag/float64.go
+gopkg/src/github.com/spf13/pflag/golangflag.go
+gopkg/src/github.com/spf13/pflag/golangflag_test.go
+gopkg/src/github.com/spf13/pflag/int.go
+gopkg/src/github.com/spf13/pflag/int32.go
+gopkg/src/github.com/spf13/pflag/int64.go
+gopkg/src/github.com/spf13/pflag/int8.go
+gopkg/src/github.com/spf13/pflag/int_slice.go
+gopkg/src/github.com/spf13/pflag/int_slice_test.go
+gopkg/src/github.com/spf13/pflag/ip.go
+gopkg/src/github.com/spf13/pflag/ip_slice.go
+gopkg/src/github.com/spf13/pflag/ip_slice_test.go
+gopkg/src/github.com/spf13/pflag/ip_test.go
+gopkg/src/github.com/spf13/pflag/ipmask.go
+gopkg/src/github.com/spf13/pflag/ipnet.go
+gopkg/src/github.com/spf13/pflag/ipnet_test.go
+gopkg/src/github.com/spf13/pflag/string.go
+gopkg/src/github.com/spf13/pflag/string_array.go
+gopkg/src/github.com/spf13/pflag/string_array_test.go
+gopkg/src/github.com/spf13/pflag/string_slice.go
+gopkg/src/github.com/spf13/pflag/string_slice_test.go
+gopkg/src/github.com/spf13/pflag/uint.go
+gopkg/src/github.com/spf13/pflag/uint16.go
+gopkg/src/github.com/spf13/pflag/uint32.go
+gopkg/src/github.com/spf13/pflag/uint64.go
+gopkg/src/github.com/spf13/pflag/uint8.go
+gopkg/src/github.com/spf13/pflag/uint_slice.go
+gopkg/src/github.com/spf13/pflag/uint_slice_test.go
+gopkg/src/github.com/spf13/pflag/verify/all.sh
+gopkg/src/github.com/spf13/pflag/verify/gofmt.sh
+gopkg/src/github.com/spf13/pflag/verify/golint.sh
+@pkgdir bin
diff --git a/devel/go-pflag/buildlink3.mk b/devel/go-pflag/buildlink3.mk
new file mode 100644
index 00000000000..ff7c7c0596f
--- /dev/null
+++ b/devel/go-pflag/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:36:26 gavan Exp $
+
+BUILDLINK_TREE+= go-pflag
+
+.if !defined(GO_PFLAG_BUILDLINK3_MK)
+GO_PFLAG_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-pflag= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-pflag?= build
+
+BUILDLINK_API_DEPENDS.go-pflag+= go-pflag>=1.0.0
+BUILDLINK_PKGSRCDIR.go-pflag?= ../../devel/go-pflag
+
+.endif # GO_PFLAG_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-pflag
+
diff --git a/devel/go-pflag/distinfo b/devel/go-pflag/distinfo
new file mode 100644
index 00000000000..378269fb8bd
--- /dev/null
+++ b/devel/go-pflag/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:36:26 gavan Exp $
+
+SHA1 (pflag-1.0.0.tar.gz) = bd8b8ba3a2a3f55be98a28b55d0e867ef74e50c8
+RMD160 (pflag-1.0.0.tar.gz) = 65c8e80a001a4e72190030b3eaaa3273fcc97e48
+SHA512 (pflag-1.0.0.tar.gz) = 44355d7cec724b947482d9dbbf84b387fc11b8a00bd42579bb99b3da5849fcb22a134a255e2f941d4594481cadd2b497c9c96b748d68c6f0dff29575eac6c616
+Size (pflag-1.0.0.tar.gz) = 38988 bytes