pkgsrc-WIP-changes archive

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

Import to go-concurrent-1.0.3 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Wed Jan 20 10:54:05 2021 +0100
Changeset:	0d5d469a3b3082a8bb848f975e34b59753df4fd7

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

Log Message:
Import to go-concurrent-1.0.3 to wip

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0d5d469a3b3082a8bb848f975e34b59753df4fd7

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

diffstat:
 Makefile                    |  1 +
 go-concurrent/DESCR         | 23 +++++++++++++++++++++++
 go-concurrent/Makefile      | 18 ++++++++++++++++++
 go-concurrent/PLIST         | 12 ++++++++++++
 go-concurrent/buildlink3.mk | 15 +++++++++++++++
 go-concurrent/distinfo      |  6 ++++++
 6 files changed, 75 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 8a11c11353..0e73ed19e1 100644
--- a/Makefile
+++ b/Makefile
@@ -1188,6 +1188,7 @@ SUBDIR+=	go-circbuf
 SUBDIR+=	go-clir
 SUBDIR+=	go-collectd
 SUBDIR+=	go-color
+SUBDIR+=	go-concurrent
 SUBDIR+=	go-config
 SUBDIR+=	go-context
 SUBDIR+=	go-copier
diff --git a/go-concurrent/DESCR b/go-concurrent/DESCR
new file mode 100644
index 0000000000..98dada11ae
--- /dev/null
+++ b/go-concurrent/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+# concurrent
+
+[![Sourcegraph](https://sourcegraph.com/github.com/modern-go/concurrent/-/badge.svg)](https://sourcegraph.com/github.com/modern-go/concurrent?badge)
+[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/modern-go/concurrent)
+[![Build Status](https://travis-ci.org/modern-go/concurrent.svg?branch=master)](https://travis-ci.org/modern-go/concurrent)
+[![codecov](https://codecov.io/gh/modern-go/concurrent/branch/master/graph/badge.svg)](https://codecov.io/gh/modern-go/concurrent)
+[![rcard](https://goreportcard.com/badge/github.com/modern-go/concurrent)](https://goreportcard.com/report/github.com/modern-go/concurrent)
+[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://raw.githubusercontent.com/modern-go/concurrent/master/LICENSE)
+
+* concurrent.Map: backport sync.Map for go below 1.9
+* concurrent.Executor: goroutine with explicit ownership and cancellable
+
+# concurrent.Map
+
+because sync.Map is only available in go 1.9, we can use concurrent.Map to make code portable
+
+```go
+m := concurrent.NewMap()
+m.Store("hello", "world")
+elem, found := m.Load("hello")
+...
diff --git a/go-concurrent/Makefile b/go-concurrent/Makefile
new file mode 100644
index 0000000000..840b68c7fa
--- /dev/null
+++ b/go-concurrent/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME=	go-concurrent-1.0.3
+GITHUB_PROJECT=	concurrent
+GITHUB_TAG=	${PKGVERSION_NOREV}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=modern-go/}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/modern-go/concurrent/
+COMMENT=	Concurrency utilities
+LICENSE=	apache-2.0
+
+GO_DIST_BASE=	${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH=	github.com/modern-go/${GITHUB_PROJECT}
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-concurrent/PLIST b/go-concurrent/PLIST
new file mode 100644
index 0000000000..b22c69a37c
--- /dev/null
+++ b/go-concurrent/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/modern-go/concurrent.a
+gopkg/src/github.com/modern-go/concurrent/LICENSE
+gopkg/src/github.com/modern-go/concurrent/README.md
+gopkg/src/github.com/modern-go/concurrent/executor.go
+gopkg/src/github.com/modern-go/concurrent/go_above_19.go
+gopkg/src/github.com/modern-go/concurrent/go_below_19.go
+gopkg/src/github.com/modern-go/concurrent/log.go
+gopkg/src/github.com/modern-go/concurrent/map_test.go
+gopkg/src/github.com/modern-go/concurrent/test.sh
+gopkg/src/github.com/modern-go/concurrent/unbounded_executor.go
+gopkg/src/github.com/modern-go/concurrent/unbounded_executor_test.go
diff --git a/go-concurrent/buildlink3.mk b/go-concurrent/buildlink3.mk
new file mode 100644
index 0000000000..3d695438b8
--- /dev/null
+++ b/go-concurrent/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-concurrent
+
+.if !defined(GO_CONCURRENT_BUILDLINK3_MK)
+GO_CONCURRENT_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-concurrent=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-concurrent?=		build
+
+BUILDLINK_API_DEPENDS.go-concurrent+=	go-concurrent>=1.0.3
+BUILDLINK_PKGSRCDIR.go-concurrent?=	../../wip/go-concurrent
+.endif	# GO_CONCURRENT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-concurrent
diff --git a/go-concurrent/distinfo b/go-concurrent/distinfo
new file mode 100644
index 0000000000..b6b869ae01
--- /dev/null
+++ b/go-concurrent/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-concurrent-1.0.3.tar.gz) = c78b1ea33f0f75a19b2fd2f2350437b45053856f
+RMD160 (go-concurrent-1.0.3.tar.gz) = 5af524af065cfe90ecb8f65929026534ec8fc9ef
+SHA512 (go-concurrent-1.0.3.tar.gz) = 2af4f6db624f66e033891b418003cc6c82708bb26ca3877ea5dd1e87e832a7160debe98ecca5c3edb633e427935011ef8b9a0c12976c6c7b25ca7d2184b18330
+Size (go-concurrent-1.0.3.tar.gz) = 7527 bytes


Home | Main Index | Thread Index | Old Index