pkgsrc-WIP-changes archive

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

Import go-errwrap-1.1.0 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Thu Jan 21 09:26:59 2021 +0100
Changeset:	39969904aeadf76af664bc7fc90022d8d81463f9

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

Log Message:
Import go-errwrap-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=39969904aeadf76af664bc7fc90022d8d81463f9

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

diffstat:
 Makefile                 |  1 +
 go-errwrap/DESCR         |  3 +++
 go-errwrap/Makefile      | 19 +++++++++++++++++++
 go-errwrap/PLIST         |  7 +++++++
 go-errwrap/buildlink3.mk | 15 +++++++++++++++
 go-errwrap/distinfo      |  6 ++++++
 6 files changed, 51 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 7c771373ba..e3aeaadf5e 100644
--- a/Makefile
+++ b/Makefile
@@ -1200,6 +1200,7 @@ SUBDIR+=	go-douceur-aymerick
 SUBDIR+=	go-easyjson
 SUBDIR+=	go-err113
 SUBDIR+=	go-errlog
+SUBDIR+=	go-errwrap
 SUBDIR+=	go-errorx
 SUBDIR+=	go-eventsource
 SUBDIR+=	go-ewma
diff --git a/go-errwrap/DESCR b/go-errwrap/DESCR
new file mode 100644
index 0000000000..3744274b44
--- /dev/null
+++ b/go-errwrap/DESCR
@@ -0,0 +1,3 @@
+errwrap is a package for Go that formalizes the pattern
+of wrapping errors and checking if an error contains
+another error.
diff --git a/go-errwrap/Makefile b/go-errwrap/Makefile
new file mode 100644
index 0000000000..e48a4cc32f
--- /dev/null
+++ b/go-errwrap/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME=	go-errwrap-1.1.0
+GITHUB_PROJECT=	errwrap
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=hashicorp/}
+
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/hashicorp/errwrap/
+COMMENT=	Library for wrapping and querying errors
+LICENSE=	mpl-2.0
+
+GO_SRCPATH=	github.com/hashicorp/errwrap/
+GO_DIST_BASE=	errwrap-${PKGVERSION_NOREV}
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-errwrap/PLIST b/go-errwrap/PLIST
new file mode 100644
index 0000000000..cafa7e281b
--- /dev/null
+++ b/go-errwrap/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/hashicorp/errwrap.a
+gopkg/src/github.com/hashicorp/errwrap/LICENSE
+gopkg/src/github.com/hashicorp/errwrap/README.md
+gopkg/src/github.com/hashicorp/errwrap/errwrap.go
+gopkg/src/github.com/hashicorp/errwrap/errwrap_test.go
+gopkg/src/github.com/hashicorp/errwrap/go.mod
diff --git a/go-errwrap/buildlink3.mk b/go-errwrap/buildlink3.mk
new file mode 100644
index 0000000000..a936f44edd
--- /dev/null
+++ b/go-errwrap/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-errwrap
+
+.if !defined(GO_ERRWRAP_BUILDLINK3_MK)
+GO_ERRWRAP_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-errwrap=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-errwrap?=	build
+
+BUILDLINK_API_DEPENDS.go-errwrap+=	go-errwrap>=1.1.0
+BUILDLINK_PKGSRCDIR.go-errwrap?=	../../wip/go-errwrap
+.endif	# GO_ERRWRAP_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-errwrap
diff --git a/go-errwrap/distinfo b/go-errwrap/distinfo
new file mode 100644
index 0000000000..dc3feecfa7
--- /dev/null
+++ b/go-errwrap/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-errwrap-1.1.0.tar.gz) = fe6fa2243e8f415faca7162e00b8747ca49c7bda
+RMD160 (go-errwrap-1.1.0.tar.gz) = 23fa74fa6067346e9b09af9a5c9f33f5887229a7
+SHA512 (go-errwrap-1.1.0.tar.gz) = 5cf01184123d5907f0d4885155b888f34b07acb75f2a74e31d9dcaca531d2864c82c1f0e9f694e81a4c5bc829dc02780803fa8912ce6112e407d5fdee330cd27
+Size (go-errwrap-1.1.0.tar.gz) = 8581 bytes


Home | Main Index | Thread Index | Old Index