From 75dd4297fe51cdbf8f58bb3fee2c07a20e0ec517 Mon Sep 17 00:00:00 2001 From: "K.I.A.Derouiche" Date: Mon, 28 Dec 2020 00:59:09 +0100 Subject: [PATCH] go-circbuf-0.0.14022019 import to wip --- Makefile | 1 + go-circbuf/DESCR | 5 +++++ go-circbuf/Makefile | 19 +++++++++++++++++++ go-circbuf/PLIST | 7 +++++++ go-circbuf/buildlink3.mk | 15 +++++++++++++++ go-circbuf/distinfo | 6 ++++++ 6 files changed, 53 insertions(+) create mode 100644 go-circbuf/DESCR create mode 100644 go-circbuf/Makefile create mode 100644 go-circbuf/PLIST create mode 100644 go-circbuf/buildlink3.mk create mode 100644 go-circbuf/distinfo diff --git a/Makefile b/Makefile index ae304846c9..0d7319d731 100644 --- a/Makefile +++ b/Makefile @@ -4392,6 +4392,7 @@ SUBDIR+= py-test-nbval SUBDIR+= py-test-ordering SUBDIR+= py-test-remotedata SUBDIR+= py-test-repeat +SUBDIR+= py-testing-common-database SUBDIR+= py-testfixtures SUBDIR+= py-texext SUBDIR+= py-texml diff --git a/go-circbuf/DESCR b/go-circbuf/DESCR new file mode 100644 index 0000000000..67ef782b56 --- /dev/null +++ b/go-circbuf/DESCR @@ -0,0 +1,5 @@ +This repository provides the `circbuf` package. +This provides a Buffer object which is a circular +(or ring) buffer. It has a fixed size, but can be written +to infinitely. Only the last size bytes are ever +retained. The buffer implements the io.Writer interface. diff --git a/go-circbuf/Makefile b/go-circbuf/Makefile new file mode 100644 index 0000000000..3c3e191913 --- /dev/null +++ b/go-circbuf/Makefile @@ -0,0 +1,19 @@ +# $NetBSD$ + +DISTNAME= circbuf-0.0.14022019 +PKGNAME= go-${DISTNAME} +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=armon/} +GITHUB_TAG= 5111143e8da2e98b4ea6a8f32b9065ea1821c191 +GITHUB_PROJECT= ${PKGBASE:S/^go-//} + +MAINTAINER= kamelderouiche@yahoo.com +HOMEPAGE= https://github.com/kiaderouiche/circbuf/ +COMMENT= Golang circular (ring) buffer +LICENSE= mit + +GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG} +GO_SRCPATH= github.com/kr/fs + +.include "../../lang/go/go-package.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/go-circbuf/PLIST b/go-circbuf/PLIST new file mode 100644 index 0000000000..b58e5f7ee3 --- /dev/null +++ b/go-circbuf/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD$ +gopkg/pkg/${GO_PLATFORM}/github.com/kr/fs.a +gopkg/src/github.com/kr/fs/LICENSE +gopkg/src/github.com/kr/fs/README.md +gopkg/src/github.com/kr/fs/circbuf.go +gopkg/src/github.com/kr/fs/circbuf_test.go +gopkg/src/github.com/kr/fs/go.mod diff --git a/go-circbuf/buildlink3.mk b/go-circbuf/buildlink3.mk new file mode 100644 index 0000000000..dea0d4fee7 --- /dev/null +++ b/go-circbuf/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD$ + +BUILDLINK_TREE+= go-circbuf + +.if !defined(GO_CIRCBUF_BUILDLINK3_MK) +GO_CIRCBUF_BUILDLINK3_MK:= + +BUILDLINK_CONTENTS_FILTER.go-circbuf= ${EGREP} gopkg/ +BUILDLINK_DEPMETHOD.go-circbuf?= build + +BUILDLINK_API_DEPENDS.go-circbuf+= go-circbuf>=0.0.14022019 +BUILDLINK_PKGSRCDIR.go-circbuf?= ../../wip/go-circbuf +.endif # GO_CIRCBUF_BUILDLINK3_MK + +BUILDLINK_TREE+= -go-circbuf diff --git a/go-circbuf/distinfo b/go-circbuf/distinfo new file mode 100644 index 0000000000..481ed308f8 --- /dev/null +++ b/go-circbuf/distinfo @@ -0,0 +1,6 @@ +$NetBSD$ + +SHA1 (circbuf-0.0.14022019-5111143e8da2e98b4ea6a8f32b9065ea1821c191.tar.gz) = 1569e8153493a73951648df51371dd898a3872f3 +RMD160 (circbuf-0.0.14022019-5111143e8da2e98b4ea6a8f32b9065ea1821c191.tar.gz) = b486a9afc284c54a5340604062d5ea9b29ec10c3 +SHA512 (circbuf-0.0.14022019-5111143e8da2e98b4ea6a8f32b9065ea1821c191.tar.gz) = 59bfce2db8b7c4f0b44f0f919941bca8cb46cdedb6ae0ebb8d727df23905c535592812eab8450948f536a388a4bca5c0339f2bf08b027a43be374056938ab564 +Size (circbuf-0.0.14022019-5111143e8da2e98b4ea6a8f32b9065ea1821c191.tar.gz) = 2921 bytes