pkgsrc-WIP-changes archive

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

Import go-jsoncolor-0.3.0 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Tue Jan 26 00:51:18 2021 +0100
Changeset:	627458c5738b277abff17654b3829c8bbd7cd1c0

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

Log Message:
Import go-jsoncolor-0.3.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=627458c5738b277abff17654b3829c8bbd7cd1c0

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

diffstat:
 Makefile                   |  1 +
 go-jsoncolor/DESCR         |  3 +++
 go-jsoncolor/Makefile      | 20 ++++++++++++++++++++
 go-jsoncolor/PLIST         |  7 +++++++
 go-jsoncolor/buildlink3.mk | 17 +++++++++++++++++
 go-jsoncolor/distinfo      |  6 ++++++
 6 files changed, 54 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f17aedb9ce..8007fb052e 100644
--- a/Makefile
+++ b/Makefile
@@ -1245,6 +1245,7 @@ SUBDIR+=	go-jettison
 SUBDIR+=	go-jira
 SUBDIR+=	go-jpillora-backoff
 SUBDIR+=	go-json-iterator
+SUBDIR+=	go-jsoncolor
 SUBDIR+=	go-jsonerror
 SUBDIR+=	go-jsonparser
 SUBDIR+=	go-jump
diff --git a/go-jsoncolor/DESCR b/go-jsoncolor/DESCR
new file mode 100644
index 0000000000..bc336dd07c
--- /dev/null
+++ b/go-jsoncolor/DESCR
@@ -0,0 +1,3 @@
+jsoncolor is a drop-in replacement for encoding/json's
+Marshal and MarshalIndent functions and Encoder type
+which produce colorized output using fatih's color package
diff --git a/go-jsoncolor/Makefile b/go-jsoncolor/Makefile
new file mode 100644
index 0000000000..b113c7a281
--- /dev/null
+++ b/go-jsoncolor/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	jsoncolor-0.3.0
+PKGNAME=	go-${DISTNAME}
+GITHUB_PROJECT=	jsoncolor
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=nwidger/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://godoc.org/github.com/nwidger/jsoncolor
+COMMENT=	Colorized JSON output for Go
+LICENSE=	mit
+
+GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+GO_SRCPATH=	github.com/nwidger/jsoncolor
+
+.include "../../wip/go-color/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-jsoncolor/PLIST b/go-jsoncolor/PLIST
new file mode 100644
index 0000000000..115b3ff055
--- /dev/null
+++ b/go-jsoncolor/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/nwidger/jsoncolor.a
+gopkg/src/github.com/nwidger/jsoncolor/LICENSE
+gopkg/src/github.com/nwidger/jsoncolor/README.md
+gopkg/src/github.com/nwidger/jsoncolor/go.mod
+gopkg/src/github.com/nwidger/jsoncolor/go.sum
+gopkg/src/github.com/nwidger/jsoncolor/jsoncolor.go
diff --git a/go-jsoncolor/buildlink3.mk b/go-jsoncolor/buildlink3.mk
new file mode 100644
index 0000000000..fa1ed00ee8
--- /dev/null
+++ b/go-jsoncolor/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-jsoncolor
+
+.if !defined(GO_JSONCOLOR_BUILDLINK3_MK)
+GO_JSONCOLOR_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-jsoncolor=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-jsoncolor?=	build
+
+BUILDLINK_API_DEPENDS.go-jsoncolor+=	go-jsoncolor>=0.3.0
+BUILDLINK_PKGSRCDIR.go-jsoncolor?=	../../wip/go-jsoncolor
+
+.include "../../wip/go-color/buildlink3.mk"
+.endif	# GO_JSONCOLOR_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-jsoncolor
diff --git a/go-jsoncolor/distinfo b/go-jsoncolor/distinfo
new file mode 100644
index 0000000000..9f5faf7934
--- /dev/null
+++ b/go-jsoncolor/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (jsoncolor-0.3.0.tar.gz) = 779efe6c69f6bc258fa0bad38eb3d9144d42c73d
+RMD160 (jsoncolor-0.3.0.tar.gz) = ab339470099fc127fee8b5a3318fc86d89904711
+SHA512 (jsoncolor-0.3.0.tar.gz) = 8c88bf5620a47f8e9a907a5a5a3654bcf4ee73c5b3c0d7d0a67b3d0f22888698e79339aeabb1f2fa68724a234bffa23eefc074d6567bc74716bb7ce2e31bb135
+Size (jsoncolor-0.3.0.tar.gz) = 6199 bytes


Home | Main Index | Thread Index | Old Index