pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/go-errors
Module Name: pkgsrc
Committed By: gavan
Date: Thu Aug 17 01:23:10 UTC 2017
Added Files:
pkgsrc/devel/go-errors: DESCR Makefile PLIST buildlink3.mk distinfo
Log Message:
Add go-errors package
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/go-errors/DESCR \
pkgsrc/devel/go-errors/Makefile pkgsrc/devel/go-errors/PLIST \
pkgsrc/devel/go-errors/buildlink3.mk pkgsrc/devel/go-errors/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-errors/DESCR
diff -u /dev/null pkgsrc/devel/go-errors/DESCR:1.1
--- /dev/null Thu Aug 17 01:23:10 2017
+++ pkgsrc/devel/go-errors/DESCR Thu Aug 17 01:23:10 2017
@@ -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.
Index: pkgsrc/devel/go-errors/Makefile
diff -u /dev/null pkgsrc/devel/go-errors/Makefile:1.1
--- /dev/null Thu Aug 17 01:23:10 2017
+++ pkgsrc/devel/go-errors/Makefile Thu Aug 17 01:23:10 2017
@@ -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@localhost
+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"
+
Index: pkgsrc/devel/go-errors/PLIST
diff -u /dev/null pkgsrc/devel/go-errors/PLIST:1.1
--- /dev/null Thu Aug 17 01:23:10 2017
+++ pkgsrc/devel/go-errors/PLIST Thu Aug 17 01:23:10 2017
@@ -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
Index: pkgsrc/devel/go-errors/buildlink3.mk
diff -u /dev/null pkgsrc/devel/go-errors/buildlink3.mk:1.1
--- /dev/null Thu Aug 17 01:23:10 2017
+++ pkgsrc/devel/go-errors/buildlink3.mk Thu Aug 17 01:23:10 2017
@@ -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
+
Index: pkgsrc/devel/go-errors/distinfo
diff -u /dev/null pkgsrc/devel/go-errors/distinfo:1.1
--- /dev/null Thu Aug 17 01:23:10 2017
+++ pkgsrc/devel/go-errors/distinfo Thu Aug 17 01:23:10 2017
@@ -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
Home |
Main Index |
Thread Index |
Old Index