summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2020-01-01 17:42:11 +0000
committerbsiegert <bsiegert@pkgsrc.org>2020-01-01 17:42:11 +0000
commitb772978d53cc45106dae91506559373b18dedb6b (patch)
tree6c27e193879e92b7d2363aa86c749eb0cc117b8c /devel
parent107a6375aaa57fc240e1dfaf742ff23785e42c91 (diff)
downloadpkgsrc-b772978d53cc45106dae91506559373b18dedb6b.tar.gz
Add a package for go-xerrors (golang.org/x/xerrors).
Go 1.13 contains new functions in the errors package for wrapping error values. This package contains compatibility code to provide equivalent APIs for older Go versions too.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile3
-rw-r--r--devel/go-xerrors/DESCR3
-rw-r--r--devel/go-xerrors/Makefile19
-rw-r--r--devel/go-xerrors/PLIST25
-rw-r--r--devel/go-xerrors/buildlink3.mk15
-rw-r--r--devel/go-xerrors/distinfo6
6 files changed, 70 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 5a156fa2da7..2c48fabe6e3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2969 2020/01/01 05:03:44 pho Exp $
+# $NetBSD: Makefile,v 1.2970 2020/01/01 17:42:11 bsiegert Exp $
#
COMMENT= Development utilities
@@ -440,6 +440,7 @@ SUBDIR+= go-thrift
SUBDIR+= go-tools
SUBDIR+= go-try
SUBDIR+= go-viper
+SUBDIR+= go-xerrors
SUBDIR+= go-yaml
SUBDIR+= gob2
SUBDIR+= gobject-introspection
diff --git a/devel/go-xerrors/DESCR b/devel/go-xerrors/DESCR
new file mode 100644
index 00000000000..58134b90ed6
--- /dev/null
+++ b/devel/go-xerrors/DESCR
@@ -0,0 +1,3 @@
+Go 1.13 contains new functions in the errors package for wrapping error
+values. This package contains compatibility code to provide equivalent
+APIs for older Go versions too.
diff --git a/devel/go-xerrors/Makefile b/devel/go-xerrors/Makefile
new file mode 100644
index 00000000000..69a1df9c04d
--- /dev/null
+++ b/devel/go-xerrors/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2020/01/01 17:42:12 bsiegert Exp $
+#
+
+DISTNAME= go-xerrors-20190719
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/}
+GITHUB_PROJECT= xerrors
+GITHUB_TAG= 9bdfabe685
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://golang.org/x/xerrors
+COMMENT= Transition package for Go 1.13 error values
+LICENSE= modified-bsd
+
+GO_SRCPATH= golang.org/x/xerrors
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/go-xerrors/PLIST b/devel/go-xerrors/PLIST
new file mode 100644
index 00000000000..d0f544ab21b
--- /dev/null
+++ b/devel/go-xerrors/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/01 17:42:12 bsiegert Exp $
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/xerrors.a
+gopkg/pkg/${GO_PLATFORM}/golang.org/x/xerrors/internal.a
+gopkg/src/golang.org/x/xerrors/LICENSE
+gopkg/src/golang.org/x/xerrors/PATENTS
+gopkg/src/golang.org/x/xerrors/README
+gopkg/src/golang.org/x/xerrors/adaptor.go
+gopkg/src/golang.org/x/xerrors/codereview.cfg
+gopkg/src/golang.org/x/xerrors/doc.go
+gopkg/src/golang.org/x/xerrors/errors.go
+gopkg/src/golang.org/x/xerrors/errors_test.go
+gopkg/src/golang.org/x/xerrors/example_As_test.go
+gopkg/src/golang.org/x/xerrors/example_FormatError_test.go
+gopkg/src/golang.org/x/xerrors/example_test.go
+gopkg/src/golang.org/x/xerrors/fmt.go
+gopkg/src/golang.org/x/xerrors/fmt_test.go
+gopkg/src/golang.org/x/xerrors/fmt_unexported_test.go
+gopkg/src/golang.org/x/xerrors/format.go
+gopkg/src/golang.org/x/xerrors/frame.go
+gopkg/src/golang.org/x/xerrors/go.mod
+gopkg/src/golang.org/x/xerrors/internal/internal.go
+gopkg/src/golang.org/x/xerrors/stack_test.go
+gopkg/src/golang.org/x/xerrors/wrap.go
+gopkg/src/golang.org/x/xerrors/wrap_113_test.go
+gopkg/src/golang.org/x/xerrors/wrap_test.go
diff --git a/devel/go-xerrors/buildlink3.mk b/devel/go-xerrors/buildlink3.mk
new file mode 100644
index 00000000000..03e55fa15ca
--- /dev/null
+++ b/devel/go-xerrors/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/01/01 17:42:12 bsiegert Exp $
+
+BUILDLINK_TREE+= go-xerrors
+
+.if !defined(GO_XERRORS_BUILDLINK3_MK)
+GO_XERRORS_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-xerrors= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-xerrors?= build
+
+BUILDLINK_API_DEPENDS.go-xerrors+= go-xerrors>=20190719
+BUILDLINK_PKGSRCDIR.go-xerrors?= ../../wip/go-xerrors
+.endif # GO_XERRORS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-xerrors
diff --git a/devel/go-xerrors/distinfo b/devel/go-xerrors/distinfo
new file mode 100644
index 00000000000..a2ef4ee5688
--- /dev/null
+++ b/devel/go-xerrors/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/01/01 17:42:12 bsiegert Exp $
+
+SHA1 (go-xerrors-20190719-9bdfabe685.tar.gz) = 1fc793c05d63019a565f75d9ca8c1c40f70ec987
+RMD160 (go-xerrors-20190719-9bdfabe685.tar.gz) = e3aa1982f3557027fe0b99cbdbdec1d50480a5c4
+SHA512 (go-xerrors-20190719-9bdfabe685.tar.gz) = 9f6f524feda6c6fcf56c0a2347362a245d7a6f7f430826d2ccf56c521f6db6c913d8788f7894866dd6667c9ed65b5a6c35176e5952f8687f71cd7c7b179083f9
+Size (go-xerrors-20190719-9bdfabe685.tar.gz) = 13661 bytes