diff options
author | gavan <gavan@pkgsrc.org> | 2017-08-17 01:23:10 +0000 |
---|---|---|
committer | gavan <gavan@pkgsrc.org> | 2017-08-17 01:23:10 +0000 |
commit | 8333bf32c0d724dcab90a9fbcbba5431c51a1a96 (patch) | |
tree | e673a6108fdb141b910b71ffcb668095180fe876 /devel | |
parent | 6a19ae578215e02f4a4ceafb79b0534f21a8348f (diff) | |
download | pkgsrc-8333bf32c0d724dcab90a9fbcbba5431c51a1a96.tar.gz |
Add go-errors package
Diffstat (limited to 'devel')
-rw-r--r-- | devel/go-errors/DESCR | 9 | ||||
-rw-r--r-- | devel/go-errors/Makefile | 20 | ||||
-rw-r--r-- | devel/go-errors/PLIST | 11 | ||||
-rw-r--r-- | devel/go-errors/buildlink3.mk | 17 | ||||
-rw-r--r-- | devel/go-errors/distinfo | 6 |
5 files changed, 63 insertions, 0 deletions
diff --git a/devel/go-errors/DESCR b/devel/go-errors/DESCR new file mode 100644 index 00000000000..b18f2927ebd --- /dev/null +++ b/devel/go-errors/DESCR @@ -0,0 +1,9 @@ +Package errors provides simple error handling primitives. + +The traditional error handling idiom in Go is roughly akin to + +if err != nil { + return err +} + +which applied recursively up the call stack results in error reports without context or debugging information. The errors package allows programmers to add context to the failure path in their code in a way that does not destroy the original value of the error. diff --git a/devel/go-errors/Makefile b/devel/go-errors/Makefile new file mode 100644 index 00000000000..e5977d2c89e --- /dev/null +++ b/devel/go-errors/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2017/08/17 01:23:10 gavan Exp $ + +DISTNAME= errors-0.6.0 +PKGNAME= go-${DISTNAME} +MASTER_SITES= ${MASTER_SITE_GITHUB:=pkg/} +CATEGORIES= devel +GITHUB_TAG= v${PKGVERSION_NOREV} +GITHUB_PROJECT= ${PKGBASE:S/^go-//} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/pkg/errors +COMMENT= Simple error handling primitives +LICENSE= 2-clause-bsd + +GO_DIST_BASE= ${DISTNAME} +GO_SRCPATH= github.com/pkg/errors + +.include "../../lang/go/go-package.mk" +.include "../../mk/bsd.pkg.mk" + diff --git a/devel/go-errors/PLIST b/devel/go-errors/PLIST new file mode 100644 index 00000000000..9ca9df71639 --- /dev/null +++ b/devel/go-errors/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:23:10 gavan Exp $ +gopkg/pkg/${GO_PLATFORM}/github.com/pkg/errors.a +gopkg/src/github.com/pkg/errors/LICENSE +gopkg/src/github.com/pkg/errors/README.md +gopkg/src/github.com/pkg/errors/appveyor.yml +gopkg/src/github.com/pkg/errors/errors.go +gopkg/src/github.com/pkg/errors/errors_test.go +gopkg/src/github.com/pkg/errors/example_test.go +gopkg/src/github.com/pkg/errors/stack.go +gopkg/src/github.com/pkg/errors/stack_test.go +@pkgdir bin diff --git a/devel/go-errors/buildlink3.mk b/devel/go-errors/buildlink3.mk new file mode 100644 index 00000000000..a0782f4aa15 --- /dev/null +++ b/devel/go-errors/buildlink3.mk @@ -0,0 +1,17 @@ +# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:23:10 gavan Exp $ + +BUILDLINK_TREE+= go-errors + +.if !defined(GO_ERRORS_BUILDLINK3_MK) +GO_ERRORS_BUILDLINK3_MK:= + +BUILDLINK_CONTENTS_FILTER.go-errors= ${EGREP} gopkg/ +BUILDLINK_DEPMETHOD.go-errors?= build + +BUILDLINK_API_DEPENDS.go-errors+= go-errors>=0.6.0 +BUILDLINK_PKGSRCDIR.go-errors?= ../../devel/go-errors + +.endif # GO_ERRORS_BUILDLINK3_MK + +BUILDLINK_TREE+= -go-errors + diff --git a/devel/go-errors/distinfo b/devel/go-errors/distinfo new file mode 100644 index 00000000000..68f44063dc0 --- /dev/null +++ b/devel/go-errors/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2017/08/17 01:23:10 gavan Exp $ + +SHA1 (errors-0.6.0.tar.gz) = 1cdcb7955c31269164c1e23f697c72d149b761bc +RMD160 (errors-0.6.0.tar.gz) = a46a88c12490c1295aff9a981756dccb908fa309 +SHA512 (errors-0.6.0.tar.gz) = bc60e598230c36bd3b81a311c31736ac59a0e88ae2952501422df46437bc35349119fd57df7f0e0d0e39300af7d6d794b3bf5298499729531946499f64643718 +Size (errors-0.6.0.tar.gz) = 7853 bytes |