pkgsrc-WIP-changes archive

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

go-ghodss-yaml: Import go-ghodss-yaml-1.0.0 as wip/go-ghodss-yaml



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Sun Jun 17 18:40:50 2018 +0100
Changeset:	26d1aecfed3b63a8c0329d394d7cd8cbed481f99

Added Files:
	go-ghodss-yaml/DESCR
	go-ghodss-yaml/Makefile
	go-ghodss-yaml/PLIST
	go-ghodss-yaml/buildlink3.mk
	go-ghodss-yaml/distinfo

Log Message:
go-ghodss-yaml: Import go-ghodss-yaml-1.0.0 as wip/go-ghodss-yaml

A wrapper around go-yaml designed to enable a better way of handling
YAML when marshaling to and from structs.

In short, this library first converts YAML to JSON using go-yaml and
then uses json.Marshal and json.Unmarshal to convert to or from the
struct. This means that it effectively reuses the JSON struct tags as well
as the custom JSON methods MarshalJSON and UnmarshalJSON unlike go-yaml.

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

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

diffstat:
 go-ghodss-yaml/DESCR         |  7 +++++++
 go-ghodss-yaml/Makefile      | 20 ++++++++++++++++++++
 go-ghodss-yaml/PLIST         |  7 +++++++
 go-ghodss-yaml/buildlink3.mk | 17 +++++++++++++++++
 go-ghodss-yaml/distinfo      |  6 ++++++
 5 files changed, 57 insertions(+)

diffs:
diff --git a/go-ghodss-yaml/DESCR b/go-ghodss-yaml/DESCR
new file mode 100644
index 0000000000..478f17a0ac
--- /dev/null
+++ b/go-ghodss-yaml/DESCR
@@ -0,0 +1,7 @@
+A wrapper around go-yaml designed to enable a better way of handling
+YAML when marshaling to and from structs.
+
+In short, this library first converts YAML to JSON using go-yaml and
+then uses json.Marshal and json.Unmarshal to convert to or from the
+struct. This means that it effectively reuses the JSON struct tags as well
+as the custom JSON methods MarshalJSON and UnmarshalJSON unlike go-yaml.
diff --git a/go-ghodss-yaml/Makefile b/go-ghodss-yaml/Makefile
new file mode 100644
index 0000000000..19abd027ca
--- /dev/null
+++ b/go-ghodss-yaml/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	go-ghodss-yaml-1.0.0
+CATEGORIES=	textproc devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ghodss/}
+GITHUB_PROJECT=	yaml
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+COMMENT=	YAML marshaling and unmarshaling support for Go
+HOMEPAGE=	https://github.com/ghodss/yaml
+LICENSE=	mit
+
+EXTRACT_USING=	bsdtar
+
+GO_SRCPATH=	github.com/ghodss/yaml/
+GO_DIST_BASE=	yaml-${PKGVERSION_NOREV}
+
+.include "../../lang/go/go-package.mk"
+.include "../../devel/go-yaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-ghodss-yaml/PLIST b/go-ghodss-yaml/PLIST
new file mode 100644
index 0000000000..5f498bb638
--- /dev/null
+++ b/go-ghodss-yaml/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/ghodss/yaml.a
+gopkg/src/github.com/ghodss/yaml/LICENSE
+gopkg/src/github.com/ghodss/yaml/README.md
+gopkg/src/github.com/ghodss/yaml/fields.go
+gopkg/src/github.com/ghodss/yaml/yaml.go
+gopkg/src/github.com/ghodss/yaml/yaml_test.go
diff --git a/go-ghodss-yaml/buildlink3.mk b/go-ghodss-yaml/buildlink3.mk
new file mode 100644
index 0000000000..4ec2f8b0e6
--- /dev/null
+++ b/go-ghodss-yaml/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-ghodss-yaml
+
+.if !defined(GO_GHODSS_YAML_BUILDLINK3_MK)
+GO_GHODSS_YAML_BUILDLINK3_MK=
+
+BUILDLINK_CONTENTS_FILTER.go-ghodss-yaml=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-ghodss-yaml?=		build
+
+BUILDLINK_API_DEPENDS.go-ghodss-yaml+=		go-ghodss-yaml>=0.0
+BUILDLINK_PKGSRCDIR.go-ghodss-yaml?=		../../wip/go-ghodss-yaml
+
+.include "../../devel/go-yaml/buildlink3.mk"
+.endif  # GO_GHODSS_YAML_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-ghodss-yaml
diff --git a/go-ghodss-yaml/distinfo b/go-ghodss-yaml/distinfo
new file mode 100644
index 0000000000..7bcb090b38
--- /dev/null
+++ b/go-ghodss-yaml/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-ghodss-yaml-1.0.0.tar.gz) = 5946d1e72349348b0ea52bd6108a2aa7b252494a
+RMD160 (go-ghodss-yaml-1.0.0.tar.gz) = 434c53d6413487835a363e2f43219dd5bfef82ca
+SHA512 (go-ghodss-yaml-1.0.0.tar.gz) = ea6af2084d3d65d4afbcbf498deda1718e2e692e1bec6d46dd74f4e41ca3151f82d55b1f041ae689606363d37dc604ab20762e773dae964206cb446262963250
+Size (go-ghodss-yaml-1.0.0.tar.gz) = 11772 bytes


Home | Main Index | Thread Index | Old Index