pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/go-mapstructure



Module Name:    pkgsrc
Committed By:   gavan
Date:           Thu Aug 17 01:32:00 UTC 2017

Added Files:
        pkgsrc/devel/go-mapstructure: DESCR Makefile PLIST buildlink3.mk
            distinfo

Log Message:
Add go-mapstructure package


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/go-mapstructure/DESCR \
    pkgsrc/devel/go-mapstructure/Makefile pkgsrc/devel/go-mapstructure/PLIST \
    pkgsrc/devel/go-mapstructure/buildlink3.mk \
    pkgsrc/devel/go-mapstructure/distinfo

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

Added files:

Index: pkgsrc/devel/go-mapstructure/DESCR
diff -u /dev/null pkgsrc/devel/go-mapstructure/DESCR:1.1
--- /dev/null   Thu Aug 17 01:32:00 2017
+++ pkgsrc/devel/go-mapstructure/DESCR  Thu Aug 17 01:32:00 2017
@@ -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.
Index: pkgsrc/devel/go-mapstructure/Makefile
diff -u /dev/null pkgsrc/devel/go-mapstructure/Makefile:1.1
--- /dev/null   Thu Aug 17 01:32:00 2017
+++ pkgsrc/devel/go-mapstructure/Makefile       Thu Aug 17 01:32:00 2017
@@ -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"
+
Index: pkgsrc/devel/go-mapstructure/PLIST
diff -u /dev/null pkgsrc/devel/go-mapstructure/PLIST:1.1
--- /dev/null   Thu Aug 17 01:32:00 2017
+++ pkgsrc/devel/go-mapstructure/PLIST  Thu Aug 17 01:32:00 2017
@@ -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
Index: pkgsrc/devel/go-mapstructure/buildlink3.mk
diff -u /dev/null pkgsrc/devel/go-mapstructure/buildlink3.mk:1.1
--- /dev/null   Thu Aug 17 01:32:00 2017
+++ pkgsrc/devel/go-mapstructure/buildlink3.mk  Thu Aug 17 01:32:00 2017
@@ -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
+
Index: pkgsrc/devel/go-mapstructure/distinfo
diff -u /dev/null pkgsrc/devel/go-mapstructure/distinfo:1.1
--- /dev/null   Thu Aug 17 01:32:00 2017
+++ pkgsrc/devel/go-mapstructure/distinfo       Thu Aug 17 01:32:00 2017
@@ -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