go-pgzip import to 1.2.5 wip

This commit is contained in:
K.I.A.Derouiche 2020-12-28 21:18:19 +01:00
parent 5a48a07600
commit 37a88e448d
6 changed files with 65 additions and 0 deletions

View File

@ -1190,6 +1190,7 @@ SUBDIR+= go-madon
SUBDIR+= go-notify
SUBDIR+= go-pass
SUBDIR+= go-paths-helper
SUBDIR+= go-pgzip
SUBDIR+= go-properties-map
SUBDIR+= go-protobuf-go
SUBDIR+= go-rateio

7
go-pgzip/DESCR Normal file
View File

@ -0,0 +1,7 @@
Go parallel gzip compression/decompression. This is a fully gzip
compatible drop in replacement for "compress/gzip". This will split
compression into blocks that are compressed in parallel. This can
be useful for compressing big amounts of data. The gzip decompression
is modified so it decompresses ahead of the current reader. This means
that reads will be non-blocking if the decompressor can keep ahead of your
code reading from it. CRC calculation also takes place in a separate goroutine.

19
go-pgzip/Makefile Normal file
View File

@ -0,0 +1,19 @@
# $NetBSD$
DISTNAME= pgzip-1.2.5
PKGNAME= go-${DISTNAME}
CATEGORIES= archivers parallel
MASTER_SITES= ${MASTER_SITE_GITHUB:=klauspost/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= kamelderouiche@yahoo.com
HOMEPAGE= https://github.com/klauspost/pgzip/
COMMENT= Go parallel gzip (de)compression
LICENSE= mit
GO_SRCPATH= github.com/klauspost/pgzip
GO_DIST_BASE= ${DISTNAME}
.include "../../devel/go-compress/buildlink3.mk"
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"

14
go-pgzip/PLIST Normal file
View File

@ -0,0 +1,14 @@
@comment $NetBSD$
gopkg/pkg/${GO_PLATFORM}/github.com/klauspost/pgzip.a
gopkg/src/github.com/klauspost/pgzip/GO_LICENSE
gopkg/src/github.com/klauspost/pgzip/LICENSE
gopkg/src/github.com/klauspost/pgzip/README.md
gopkg/src/github.com/klauspost/pgzip/gunzip.go
gopkg/src/github.com/klauspost/pgzip/gunzip_test.go
gopkg/src/github.com/klauspost/pgzip/gzip.go
gopkg/src/github.com/klauspost/pgzip/gzip_norace_test.go
gopkg/src/github.com/klauspost/pgzip/gzip_test.go
gopkg/src/github.com/klauspost/pgzip/gzip_unreliable_test.go
gopkg/src/github.com/klauspost/pgzip/testdata/bigempty.gz
gopkg/src/github.com/klauspost/pgzip/testdata/issue6550.gz
gopkg/src/github.com/klauspost/pgzip/testdata/test.json

18
go-pgzip/buildlink3.mk Normal file
View File

@ -0,0 +1,18 @@
# $NetBSD$
BUILDLINK_TREE+= go-pgzip
.if !defined(GO_PGZIP_BUILDLINK3_MK)
GO_PGZIP_BUILDLINK3_MK:=
BUILDLINK_CONTENTS_FILTER.go-pgzip= ${EGREP} gopkg/
BUILDLINK_DEPMETHOD.go-pgzip?= build
BUILDLINK_API_DEPENDS.go-pgzip+= go-pgzip>=1.2.5
BUILDLINK_PKGSRCDIR.go-pgzip?= ../../wip/go-pgzip
.include "../../devel/go-compress/buildlink3.mk"
.endif # GO_PGZIP_BUILDLINK3_MK
BUILDLINK_TREE+= -go-pgzip

6
go-pgzip/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (pgzip-1.2.5.tar.gz) = cdb3897d564c2b37870b43b376991cc14dd9f97c
RMD160 (pgzip-1.2.5.tar.gz) = b07ea5c18eebfe26516ad39358006949d5a33b5c
SHA512 (pgzip-1.2.5.tar.gz) = b41d098dbe72f8fb7d8c11bf0cb581868656535942a35cbe4348761cb0c725bdae5e77b0bb666c1d56a07b57d66f6f4d42109927c321ed1007f5f92945a7ca61
Size (pgzip-1.2.5.tar.gz) = 125923 bytes