pkgsrc-WIP-changes archive

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

wip/go-bytebufferpool: import go-bytebufferpool-1.0.0



Module Name:	pkgsrc-wip
Committed By:	ng0 <ng0%n0.is@localhost>
Pushed By:	ng0
Date:		Tue May 21 13:50:41 2019 +0000
Changeset:	4bbcdfdbea271b75e5647eee6197b2dca7c67683

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

Log Message:
wip/go-bytebufferpool: import go-bytebufferpool-1.0.0

go-bytebufferpool is an implementation of a pool of byte buffers
with anti-memory-waste protection.
The pool may waste limited amount of memory due to fragmentation.
This amount equals to the maximum total size of the
byte buffers in concurrent use.

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

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

diffstat:
 Makefile                        |  1 +
 go-bytebufferpool/DESCR         |  5 +++++
 go-bytebufferpool/Makefile      | 20 ++++++++++++++++++++
 go-bytebufferpool/PLIST         | 11 +++++++++++
 go-bytebufferpool/buildlink3.mk | 15 +++++++++++++++
 go-bytebufferpool/distinfo      |  6 ++++++
 6 files changed, 58 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 061064351b..956b1196ea 100644
--- a/Makefile
+++ b/Makefile
@@ -1164,6 +1164,7 @@ SUBDIR+=	gnurl
 SUBDIR+=	gnutls
 SUBDIR+=	go
 SUBDIR+=	go-backoff
+SUBDIR+=	go-bytebufferpool
 SUBDIR+=	go-collectd
 SUBDIR+=	go-cpuid
 SUBDIR+=	go-dotenv
diff --git a/go-bytebufferpool/DESCR b/go-bytebufferpool/DESCR
new file mode 100644
index 0000000000..9ca2b707ee
--- /dev/null
+++ b/go-bytebufferpool/DESCR
@@ -0,0 +1,5 @@
+go-bytebufferpool is an implementation of a pool of byte buffers
+with anti-memory-waste protection.
+The pool may waste limited amount of memory due to fragmentation.
+This amount equals to the maximum total size of the
+byte buffers in concurrent use.
diff --git a/go-bytebufferpool/Makefile b/go-bytebufferpool/Makefile
new file mode 100644
index 0000000000..de667e1f7e
--- /dev/null
+++ b/go-bytebufferpool/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+#
+
+DISTNAME=		go-bytebufferpool-${GITHUB_TAG}
+PKGNAME=		go-bytebufferpool-1.0.0
+GITHUB_PROJECT=		bytebufferpool
+CATEGORIES=		devel
+MASTER_SITES=		${MASTER_SITE_GITHUB:=valyala/}
+GITHUB_TAG=		e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7
+
+MAINTAINER=		ng0%n0.is@localhost
+HOMEPAGE=		https://github.com/valyala/bytebufferpool/
+COMMENT=		Implementation of a pool of byte buffers with anti-memory-waste protection for Go
+LICENSE=		mit
+
+GO_SRCPATH=		github.com/valyala/bytebufferpool
+GO_DIST_BASE=		${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-bytebufferpool/PLIST b/go-bytebufferpool/PLIST
new file mode 100644
index 0000000000..eadc47f34a
--- /dev/null
+++ b/go-bytebufferpool/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/valyala/bytebufferpool.a
+gopkg/src/github.com/valyala/bytebufferpool/LICENSE
+gopkg/src/github.com/valyala/bytebufferpool/README.md
+gopkg/src/github.com/valyala/bytebufferpool/bytebuffer.go
+gopkg/src/github.com/valyala/bytebufferpool/bytebuffer_example_test.go
+gopkg/src/github.com/valyala/bytebufferpool/bytebuffer_test.go
+gopkg/src/github.com/valyala/bytebufferpool/bytebuffer_timing_test.go
+gopkg/src/github.com/valyala/bytebufferpool/doc.go
+gopkg/src/github.com/valyala/bytebufferpool/pool.go
+gopkg/src/github.com/valyala/bytebufferpool/pool_test.go
diff --git a/go-bytebufferpool/buildlink3.mk b/go-bytebufferpool/buildlink3.mk
new file mode 100644
index 0000000000..05eebff1bb
--- /dev/null
+++ b/go-bytebufferpool/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-bytebufferpool
+
+.if !defined(GO_BYTEBUFFERPOOL_BUILDLINK3_MK)
+GO_BYTEBUFFERPOOL_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-bytebufferpool=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-bytebufferpool?=		build
+
+BUILDLINK_API_DEPENDS.go-bytebufferpool+=	go-bytebufferpool>=1.0.0
+BUILDLINK_PKGSRCDIR.go-bytebufferpool?=	../../wip/go-bytebufferpool
+.endif	# GO_BYTEBUFFERPOOL_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-bytebufferpool
diff --git a/go-bytebufferpool/distinfo b/go-bytebufferpool/distinfo
new file mode 100644
index 0000000000..e4eb0c00c9
--- /dev/null
+++ b/go-bytebufferpool/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-bytebufferpool-e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7-e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7.tar.gz) = f72e9c12e1ff9e260c043ff8b0d8df984a8b1aa7
+RMD160 (go-bytebufferpool-e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7-e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7.tar.gz) = 71c267b924ba9728eaf93848720ce7be08fabad5
+SHA512 (go-bytebufferpool-e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7-e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7.tar.gz) = 6b12ab1a99e82fd01467d5664755fde2879cd5d34de62e7a1a0a51452034b0ba16b17b8b98a3c3fd902eee01819f8c315f4d974721aebb1d7cc96feabce52f04
+Size (go-bytebufferpool-e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7-e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7.tar.gz) = 5027 bytes


Home | Main Index | Thread Index | Old Index