pkgsrc-WIP-changes archive

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

wip/go-xxhash: import go-xxhash-2.0.0



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

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

Log Message:
wip/go-xxhash: import go-xxhash-2.0.0

Go implementation of the 64-bit xxHash algorithm (XXH64).

This implementation provides a fast pure-Go implementation
and an even faster assembly implementation for amd64.

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

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

diffstat:
 Makefile                |  1 +
 go-xxhash/DESCR         |  4 ++++
 go-xxhash/Makefile      | 19 +++++++++++++++++++
 go-xxhash/PLIST         | 17 +++++++++++++++++
 go-xxhash/buildlink3.mk | 15 +++++++++++++++
 go-xxhash/distinfo      |  6 ++++++
 6 files changed, 62 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ba4cc11f10..0ad3645aea 100644
--- a/Makefile
+++ b/Makefile
@@ -1186,6 +1186,7 @@ SUBDIR+=	go-rateio
 SUBDIR+=	go-rest
 SUBDIR+=	go-trie
 SUBDIR+=	go-upspin
+SUBDIR+=	go-xxhash
 SUBDIR+=	goattracker
 SUBDIR+=	godura
 SUBDIR+=	goldendict
diff --git a/go-xxhash/DESCR b/go-xxhash/DESCR
new file mode 100644
index 0000000000..f659be2f3b
--- /dev/null
+++ b/go-xxhash/DESCR
@@ -0,0 +1,4 @@
+Go implementation of the 64-bit xxHash algorithm (XXH64).
+
+This implementation provides a fast pure-Go implementation
+and an even faster assembly implementation for amd64.
diff --git a/go-xxhash/Makefile b/go-xxhash/Makefile
new file mode 100644
index 0000000000..910750f0ef
--- /dev/null
+++ b/go-xxhash/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME=		go-xxhash-${GITHUB_TAG}
+PKGNAME=		go-xxhash-2.0.0
+GITHUB_PROJECT=		xxhash
+CATEGORIES=		devel
+MASTER_SITES=		${MASTER_SITE_GITHUB:=cespare/}
+GITHUB_TAG=		3b82fb7d186719faeedd0c2864f868c74fbf79a1
+
+MAINTAINER=		ng0%n0.is@localhost
+HOMEPAGE=		https://github.com/cespare/xxhash/
+COMMENT=		Go implementation of the 64bit xxhash algorithm XXh64
+LICENSE=		mit
+
+GO_SRCPATH=		github.com/cespare/xxhash
+GO_DIST_BASE=		${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-xxhash/PLIST b/go-xxhash/PLIST
new file mode 100644
index 0000000000..eb83ce0387
--- /dev/null
+++ b/go-xxhash/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD$
+bin/xxhsum
+gopkg/pkg/${GO_PLATFORM}/github.com/cespare/xxhash.a
+gopkg/src/github.com/cespare/xxhash/LICENSE.txt
+gopkg/src/github.com/cespare/xxhash/README.md
+gopkg/src/github.com/cespare/xxhash/go.mod
+gopkg/src/github.com/cespare/xxhash/go.sum
+gopkg/src/github.com/cespare/xxhash/xxhash.go
+gopkg/src/github.com/cespare/xxhash/xxhash_amd64.go
+gopkg/src/github.com/cespare/xxhash/xxhash_amd64.s
+gopkg/src/github.com/cespare/xxhash/xxhash_other.go
+gopkg/src/github.com/cespare/xxhash/xxhash_safe.go
+gopkg/src/github.com/cespare/xxhash/xxhash_test.go
+gopkg/src/github.com/cespare/xxhash/xxhash_unsafe.go
+gopkg/src/github.com/cespare/xxhash/xxhash_unsafe_test.go
+gopkg/src/github.com/cespare/xxhash/xxhsum/.gitignore
+gopkg/src/github.com/cespare/xxhash/xxhsum/xxhsum.go
diff --git a/go-xxhash/buildlink3.mk b/go-xxhash/buildlink3.mk
new file mode 100644
index 0000000000..e8f0184d98
--- /dev/null
+++ b/go-xxhash/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-xxhash
+
+.if !defined(GO_XXHASH_BUILDLINK3_MK)
+GO_XXHASH_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-xxhash=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-xxhash?=		build
+
+BUILDLINK_API_DEPENDS.go-xxhash+=	go-xxhash>=2.0.0
+BUILDLINK_PKGSRCDIR.go-xxhash?=	../../wip/go-xxhash
+.endif	# GO_XXHASH_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-xxhash
diff --git a/go-xxhash/distinfo b/go-xxhash/distinfo
new file mode 100644
index 0000000000..78f21cdfe4
--- /dev/null
+++ b/go-xxhash/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-xxhash-3b82fb7d186719faeedd0c2864f868c74fbf79a1-3b82fb7d186719faeedd0c2864f868c74fbf79a1.tar.gz) = dcfe4aa297f2b5f949def3a9c446e485914757c5
+RMD160 (go-xxhash-3b82fb7d186719faeedd0c2864f868c74fbf79a1-3b82fb7d186719faeedd0c2864f868c74fbf79a1.tar.gz) = 1992baefac6efdf23c9890490f573fb6ec46b5e8
+SHA512 (go-xxhash-3b82fb7d186719faeedd0c2864f868c74fbf79a1-3b82fb7d186719faeedd0c2864f868c74fbf79a1.tar.gz) = 15719699b4d1019375e07f17b64663735e80f6bb591956bac8746aabc53b4ff995821233b136b99c34f7f2d799bbd908a5ec6af7c213a2aed264c7f176186a0a
+Size (go-xxhash-3b82fb7d186719faeedd0c2864f868c74fbf79a1-3b82fb7d186719faeedd0c2864f868c74fbf79a1.tar.gz) = 8927 bytes


Home | Main Index | Thread Index | Old Index