pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/go-mapstructure Add go-mapstructure package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b758382daaf
branches:  trunk
changeset: 366646:0b758382daaf
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Aug 17 01:32:00 2017 +0000

description:
Add go-mapstructure package

diffstat:

 devel/go-mapstructure/DESCR         |   3 +++
 devel/go-mapstructure/Makefile      |  20 ++++++++++++++++++++
 devel/go-mapstructure/PLIST         |  13 +++++++++++++
 devel/go-mapstructure/buildlink3.mk |  17 +++++++++++++++++
 devel/go-mapstructure/distinfo      |   6 ++++++
 5 files changed, 59 insertions(+), 0 deletions(-)

diffs (79 lines):

diff -r dda79a20e2fe -r 0b758382daaf devel/go-mapstructure/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure/DESCR       Thu Aug 17 01:32:00 2017 +0000
@@ -0,0 +1,3 @@
+mapstructure is a Go library for decoding generic map values to structures and vice versa, while providing helpful error handling.
+
+This library is most useful when decoding values from some data stream (JSON, Gob, etc.) where you don't quite know the structure of the underlying data until you read a part of it. You can 
therefore read a map[string]interface{} and use this library to decode it into the proper underlying native Go structure.
diff -r dda79a20e2fe -r 0b758382daaf devel/go-mapstructure/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure/Makefile    Thu Aug 17 01:32:00 2017 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:32:00 gavan Exp $
+
+DISTNAME=      mapstructure-0.0.20160212
+PKGNAME=       go-${DISTNAME}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mitchellh/}
+CATEGORIES=    devel
+GITHUB_TAG=    d2dd0262208475919e1a362f675cfc0e7c10e905
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/mitchellh/mapstructure
+COMMENT=       Go library for decoding generic map values into native Go structures.
+LICENSE=       mit
+
+GO_DIST_BASE=  ${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH=    github.com/mitchellh/mapstructure
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r dda79a20e2fe -r 0b758382daaf devel/go-mapstructure/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure/PLIST       Thu Aug 17 01:32:00 2017 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:32:00 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/mitchellh/mapstructure.a
+gopkg/src/github.com/mitchellh/mapstructure/LICENSE
+gopkg/src/github.com/mitchellh/mapstructure/README.md
+gopkg/src/github.com/mitchellh/mapstructure/decode_hooks.go
+gopkg/src/github.com/mitchellh/mapstructure/decode_hooks_test.go
+gopkg/src/github.com/mitchellh/mapstructure/error.go
+gopkg/src/github.com/mitchellh/mapstructure/mapstructure.go
+gopkg/src/github.com/mitchellh/mapstructure/mapstructure_benchmark_test.go
+gopkg/src/github.com/mitchellh/mapstructure/mapstructure_bugs_test.go
+gopkg/src/github.com/mitchellh/mapstructure/mapstructure_examples_test.go
+gopkg/src/github.com/mitchellh/mapstructure/mapstructure_test.go
+@pkgdir bin
diff -r dda79a20e2fe -r 0b758382daaf devel/go-mapstructure/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure/buildlink3.mk       Thu Aug 17 01:32:00 2017 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:32:00 gavan Exp $
+
+BUILDLINK_TREE+=       go-mapstructure
+
+.if !defined(GO_MAPSTRUCTURE_BUILDLINK3_MK)
+GO_MAPSTRUCTURE_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-mapstructure=     ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-mapstructure?=  build
+
+BUILDLINK_API_DEPENDS.go-mapstructure+=        go-mapstructure>=0.0
+BUILDLINK_PKGSRCDIR.go-mapstructure?=  ../../devel/go-mapstructure
+
+.endif  # GO_MAPSTRUCTURE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-mapstructure
+
diff -r dda79a20e2fe -r 0b758382daaf devel/go-mapstructure/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure/distinfo    Thu Aug 17 01:32:00 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:32:00 gavan Exp $
+
+SHA1 (mapstructure-0.0.20160212-d2dd0262208475919e1a362f675cfc0e7c10e905.tar.gz) = 6524fc3e153081b7dc68bc7b1526e11330b37ae4
+RMD160 (mapstructure-0.0.20160212-d2dd0262208475919e1a362f675cfc0e7c10e905.tar.gz) = 19d72ef5ea5ddc158ac21168e0de528aade21485
+SHA512 (mapstructure-0.0.20160212-d2dd0262208475919e1a362f675cfc0e7c10e905.tar.gz) = 
32001d4fb82661ae01e6fa8fb8af2547671a50763121ff81073bfcb982078496639027427ce134b3f54ba121c9626cf0d5a21004f86ade7cf54ce113e86d779e
+Size (mapstructure-0.0.20160212-d2dd0262208475919e1a362f675cfc0e7c10e905.tar.gz) = 14263 bytes



Home | Main Index | Thread Index | Old Index