pkgsrc-WIP-changes archive

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

Import go-structs-1.1.0 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Fri Jan 8 22:26:55 2021 +0100
Changeset:	105de06afe028fe28b0af5a675d2d54aca3ad7d3

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

Log Message:
Import go-structs-1.1.0 to wip

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

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

diffstat:
 Makefile                 |  1 +
 go-structs/DESCR         | 20 ++++++++++++++++++++
 go-structs/Makefile      | 18 ++++++++++++++++++
 go-structs/PLIST         | 11 +++++++++++
 go-structs/buildlink3.mk | 15 +++++++++++++++
 go-structs/distinfo      |  6 ++++++
 6 files changed, 71 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 40af8c7c25..bf30cd3bf9 100644
--- a/Makefile
+++ b/Makefile
@@ -1220,6 +1220,7 @@ SUBDIR+=	go-rateio
 SUBDIR+=	go-rest
 SUBDIR+=	go-resty
 SUBDIR+=	go-riff
+SUBDIR+=	go-structs
 SUBDIR+=	go-tiff
 SUBDIR+=	go-transcoder
 SUBDIR+=	go-trie
diff --git a/go-structs/DESCR b/go-structs/DESCR
new file mode 100644
index 0000000000..b7aefe3e38
--- /dev/null
+++ b/go-structs/DESCR
@@ -0,0 +1,20 @@
+Structs contains various utilities to work
+with Go (Golang) structs. It was
+initially used by me to convert a struct into a `map[string]interface{}`. With
+time I've added other utilities for structs.  It's basically a high level
+package based on primitives from the reflect package. Feel free to add new
+functions or improve the existing code.
+
+## Install
+
+```bash
+go get github.com/fatih/structs
+```
+
+## Usage and Examples
+
+Just like the standard lib `strings`, `bytes` and co packages, `structs` has
+many global functions to manipulate or organize your struct data. Lets define
+and declare a struct:
+
+...
diff --git a/go-structs/Makefile b/go-structs/Makefile
new file mode 100644
index 0000000000..daca679d0b
--- /dev/null
+++ b/go-structs/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME=	go-structs-1.1.0
+GITHUB_PROJECT=	structs
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=fatih/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/fatih/structs/
+COMMENT=	Utilities for Go structs
+LICENSE=	mit
+
+GO_SRCPATH=	github.com/fatih/structs
+GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-structs/PLIST b/go-structs/PLIST
new file mode 100644
index 0000000000..bb31ba5aba
--- /dev/null
+++ b/go-structs/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/fatih/structs.a
+gopkg/src/github.com/fatih/structs/LICENSE
+gopkg/src/github.com/fatih/structs/README.md
+gopkg/src/github.com/fatih/structs/field.go
+gopkg/src/github.com/fatih/structs/field_test.go
+gopkg/src/github.com/fatih/structs/structs.go
+gopkg/src/github.com/fatih/structs/structs_example_test.go
+gopkg/src/github.com/fatih/structs/structs_test.go
+gopkg/src/github.com/fatih/structs/tags.go
+gopkg/src/github.com/fatih/structs/tags_test.go
diff --git a/go-structs/buildlink3.mk b/go-structs/buildlink3.mk
new file mode 100644
index 0000000000..0bb1479dbd
--- /dev/null
+++ b/go-structs/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-structs
+
+.if !defined(GO_STRUCTS_BUILDLINK3_MK)
+GO_STRUCTS_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-structs=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-structs?=	build
+
+BUILDLINK_API_DEPENDS.go-structs+=	go-structs>=1.1.0
+BUILDLINK_PKGSRCDIR.go-structs?=	../../wip/go-structs
+.endif	# GO_STRUCTS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-structs
diff --git a/go-structs/distinfo b/go-structs/distinfo
new file mode 100644
index 0000000000..f195aee047
--- /dev/null
+++ b/go-structs/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-structs-1.1.0.tar.gz) = 676136de58c8d58b05567cc10b30b17fbe0dcfa3
+RMD160 (go-structs-1.1.0.tar.gz) = 0372aea1c23977f26418fe39477c1aae30f68ecb
+SHA512 (go-structs-1.1.0.tar.gz) = b399b09df793c0aa4817c6dfc03b5ebbfae53967a31c4b44e21a6002e648e6c870ff56932050d2089b03a5c7bae8508edcb999cbed4e0076b01eee337f828ae5
+Size (go-structs-1.1.0.tar.gz) = 14444 bytes


Home | Main Index | Thread Index | Old Index