pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import go-genny-20200409 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Tue Jan 19 09:26:29 2021 +0100
Changeset:	f05d104d66c3fc5f1c812e1a600bee1f53166ba4

Modified Files:
	Makefile
Added Files:
	go-genny/DESCR
	go-genny/Makefile
	go-genny/PLIST
	go-genny/buildlink3.mk
	go-genny/distinfo

Log Message:
Import go-genny-20200409 to wip

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f05d104d66c3fc5f1c812e1a600bee1f53166ba4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile               |  1 +
 go-genny/DESCR         | 23 +++++++++++++++
 go-genny/Makefile      | 20 +++++++++++++
 go-genny/PLIST         | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++
 go-genny/buildlink3.mk | 18 ++++++++++++
 go-genny/distinfo      |  6 ++++
 6 files changed, 147 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index cfef333c8b..a041700e1d 100644
--- a/Makefile
+++ b/Makefile
@@ -1206,6 +1206,7 @@ SUBDIR+=	go-flags
 SUBDIR+=	go-flock
 SUBDIR+=	go-freetype
 SUBDIR+=	go-fsnotify
+SUBDIR+=	go-genny
 SUBDIR+=	go-ghodss-yaml
 SUBDIR+=	go-godot
 SUBDIR+=	go-gomail
diff --git a/go-genny/DESCR b/go-genny/DESCR
new file mode 100644
index 0000000000..ad49384935
--- /dev/null
+++ b/go-genny/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+# genny - Generics for Go
+
+[![Build Status](https://travis-ci.org/cheekybits/genny.svg?branch=master)](https://travis-ci.org/cheekybits/genny) [![GoDoc](https://godoc.org/github.com/cheekybits/genny/parse?status.png)](http://godoc.org/github.com/cheekybits/genny/parse)
+
+Install:
+
+```
+go get github.com/cheekybits/genny
+```
+
+=====
+
+(pron. Jenny) by Mat Ryer ([@matryer](https://twitter.com/matryer)) and Tyler Bunnell ([@TylerJBunnell](https://twitter.com/TylerJBunnell)).
+
+Until the Go core team include support for [generics in Go](http://golang.org/doc/faq#generics), `genny` is a code-generation generics solution. It allows you write normal buildable and testable Go code which, when processed by the `genny gen` tool, will replace the generics with specific types.
+
+  * Generic code is valid Go code
+  * Generic code compiles and can be tested
+  * Use `stdin` and `stdout` or specify in and out files
+  * Supports Go 1.4's [go generate](http://tip.golang.org/doc/go1.4#gogenerate)
+...
diff --git a/go-genny/Makefile b/go-genny/Makefile
new file mode 100644
index 0000000000..6da79c6870
--- /dev/null
+++ b/go-genny/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	go-genny-20200409
+GITHUB_PROJECT=	genny
+GITHUB_TAG=	3e22f1a
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=cheekybits/}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/cheekybits/genny/
+COMMENT=	Elegant generics for Go
+LICENSE=	mit
+
+GO_DIST_BASE=	${GITHUB_PROJECT}-${GITHUB_TAG}*
+GO_SRCPATH=	github.com/cheekybits/genny
+
+.include "../../devel/go-mod/buildlink3.mk"
+.include "../../devel/go-tools/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-genny/PLIST b/go-genny/PLIST
new file mode 100644
index 0000000000..9dae48ca7d
--- /dev/null
+++ b/go-genny/PLIST
@@ -0,0 +1,79 @@
+@comment $NetBSD$
+bin/genny
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/examples/davechaney.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/examples/go-generate.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/examples/queue.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/generic.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/out.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse/test/bugreports.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse/test/multipletypes.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse/test/multipletypesets.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse/test/numbers.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse/test/queue.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse/test/queue/changed.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse/test/slice.a
+gopkg/pkg/${GO_PLATFORM}/github.com/cheekybits/genny/parse/test/unexported.a
+gopkg/src/github.com/cheekybits/genny/LICENSE
+gopkg/src/github.com/cheekybits/genny/README.md
+gopkg/src/github.com/cheekybits/genny/doc.go
+gopkg/src/github.com/cheekybits/genny/examples/davechaney/func_thing.go
+gopkg/src/github.com/cheekybits/genny/examples/davechaney/gen.sh
+gopkg/src/github.com/cheekybits/genny/examples/davechaney/generic_max.go
+gopkg/src/github.com/cheekybits/genny/examples/davechaney/max_test.go
+gopkg/src/github.com/cheekybits/genny/examples/davechaney/numbers_func_thing.go
+gopkg/src/github.com/cheekybits/genny/examples/go-generate/gen-go-generate.go
+gopkg/src/github.com/cheekybits/genny/examples/go-generate/go-generate.go
+gopkg/src/github.com/cheekybits/genny/examples/queue/build.sh
+gopkg/src/github.com/cheekybits/genny/examples/queue/queue_generic.go
+gopkg/src/github.com/cheekybits/genny/examples/queue/queue_generic_test.go
+gopkg/src/github.com/cheekybits/genny/generic/doc.go
+gopkg/src/github.com/cheekybits/genny/generic/generic.go
+gopkg/src/github.com/cheekybits/genny/go.mod
+gopkg/src/github.com/cheekybits/genny/go.sum
+gopkg/src/github.com/cheekybits/genny/main.go
+gopkg/src/github.com/cheekybits/genny/main_test.go
+gopkg/src/github.com/cheekybits/genny/out/lazy_file.go
+gopkg/src/github.com/cheekybits/genny/out/lazy_file_test.go
+gopkg/src/github.com/cheekybits/genny/parse/builtins.go
+gopkg/src/github.com/cheekybits/genny/parse/doc.go
+gopkg/src/github.com/cheekybits/genny/parse/errors.go
+gopkg/src/github.com/cheekybits/genny/parse/parse.go
+gopkg/src/github.com/cheekybits/genny/parse/parse_int_test.go
+gopkg/src/github.com/cheekybits/genny/parse/parse_test.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/cell_int.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/cell_x.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/generic_digraph.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/generic_new_and_make_slice.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/int_digraph.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/int_new_and_make_slice.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/interface_generic_type.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/interface_uint8.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/negation_generic.go
+gopkg/src/github.com/cheekybits/genny/parse/test/bugreports/negation_string.go
+gopkg/src/github.com/cheekybits/genny/parse/test/buildtags/buildtags.go
+gopkg/src/github.com/cheekybits/genny/parse/test/buildtags/buildtags_expected.go
+gopkg/src/github.com/cheekybits/genny/parse/test/buildtags/buildtags_expected_nostrip.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypes/custom_types.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypes/custom_types_simplemap.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypes/generic_simplemap.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypes/generic_simplemap_test.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypes/interface_int_simplemap.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypes/string_int_simplemap.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypesets/generic_simplemap.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypesets/generic_simplemap_test.go
+gopkg/src/github.com/cheekybits/genny/parse/test/multipletypesets/many_simplemaps.go
+gopkg/src/github.com/cheekybits/genny/parse/test/numbers/generic_number.go
+gopkg/src/github.com/cheekybits/genny/parse/test/numbers/int_number.go
+gopkg/src/github.com/cheekybits/genny/parse/test/queue/changed/int_queue.go
+gopkg/src/github.com/cheekybits/genny/parse/test/queue/float32_queue.go
+gopkg/src/github.com/cheekybits/genny/parse/test/queue/generic_queue.go
+gopkg/src/github.com/cheekybits/genny/parse/test/queue/generic_queue_test.go
+gopkg/src/github.com/cheekybits/genny/parse/test/queue/int_queue.go
+gopkg/src/github.com/cheekybits/genny/parse/test/slice/ensure_slice.go
+gopkg/src/github.com/cheekybits/genny/parse/test/slice/ensure_slice_test.go
+gopkg/src/github.com/cheekybits/genny/parse/test/unexported/custom_types.go
+gopkg/src/github.com/cheekybits/genny/parse/test/unexported/generic_internal.go
+gopkg/src/github.com/cheekybits/genny/parse/test/unexported/mytype_internal.go
+gopkg/src/github.com/cheekybits/genny/parse/typesets.go
+gopkg/src/github.com/cheekybits/genny/parse/typesets_test.go
diff --git a/go-genny/buildlink3.mk b/go-genny/buildlink3.mk
new file mode 100644
index 0000000000..99961abb39
--- /dev/null
+++ b/go-genny/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-genny
+
+.if !defined(GO_GENNY_BUILDLINK3_MK)
+GO_GENNY_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-genny=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-genny?=		build
+
+BUILDLINK_API_DEPENDS.go-genny+=	go-genny>=20200409
+BUILDLINK_PKGSRCDIR.go-genny?=		../../wip/go-genny
+
+.include "../../devel/go-mod/buildlink3.mk"
+.include "../../devel/go-tools/buildlink3.mk"
+.endif	# GO_GENNY_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-genny
diff --git a/go-genny/distinfo b/go-genny/distinfo
new file mode 100644
index 0000000000..259a779f5c
--- /dev/null
+++ b/go-genny/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-genny-20200409-3e22f1a.tar.gz) = ab735f422bafe148d128d44fe8accef9fff14042
+RMD160 (go-genny-20200409-3e22f1a.tar.gz) = 9087114b2d0f32df8027a59a905b3264d7346f85
+SHA512 (go-genny-20200409-3e22f1a.tar.gz) = 35dc2ccd47e5486b33df97f45890b52b992cfc1c31cce70f21836605b4e91713cba87d4fb3e251bcde189c8588971825ad0b74109565900ba3ae79d2c766f2a7
+Size (go-genny-20200409-3e22f1a.tar.gz) = 16892 bytes


Home | Main Index | Thread Index | Old Index