pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/go-immutable-radix Add go-immutable-radix package
details: https://anonhg.NetBSD.org/pkgsrc/rev/18414e5478a9
branches: trunk
changeset: 366644:18414e5478a9
user: gavan <gavan%pkgsrc.org@localhost>
date: Thu Aug 17 01:30:27 2017 +0000
description:
Add go-immutable-radix package
diffstat:
devel/go-immutable-radix/DESCR | 11 +++++++++++
devel/go-immutable-radix/Makefile | 21 +++++++++++++++++++++
devel/go-immutable-radix/PLIST | 11 +++++++++++
devel/go-immutable-radix/buildlink3.mk | 18 ++++++++++++++++++
devel/go-immutable-radix/distinfo | 6 ++++++
5 files changed, 67 insertions(+), 0 deletions(-)
diffs (87 lines):
diff -r 463fb6e3087b -r 18414e5478a9 devel/go-immutable-radix/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-immutable-radix/DESCR Thu Aug 17 01:30:27 2017 +0000
@@ -0,0 +1,11 @@
+Provides the iradix package that implements an immutable radix tree. The package only provides a single Tree implementation, optimized for sparse nodes.
+
+As a radix tree, it provides the following:
+
+ O(k) operations. In many cases, this can be faster than a hash table since the hash function is an O(k) operation, and hash tables have very poor cache locality.
+ Minimum / Maximum value lookups
+ Ordered iteration
+
+A tree supports using a transaction to batch multiple updates (insert, delete) in a more efficient manner than performing each operation one at a time.
+
+For a mutable variant, see go-radix.
diff -r 463fb6e3087b -r 18414e5478a9 devel/go-immutable-radix/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-immutable-radix/Makefile Thu Aug 17 01:30:27 2017 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:30:27 gavan Exp $
+
+DISTNAME= go-immutable-radix-0.0.20170725
+MASTER_SITES= ${MASTER_SITE_GITHUB:=hashicorp/}
+CATEGORIES= devel
+GITHUB_TAG= 8aac2701530899b64bdea735a1de8da899815220
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/hashicorp/go-immutable-radix
+COMMENT= An immutable radix tree implementation in Golang
+
+LICENSE= mpl-2.0
+
+GO_DIST_BASE= ${DISTNAME}
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH= github.com/hashicorp/go-immutable-radix
+
+.include "../../devel/go-golang-lru/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r 463fb6e3087b -r 18414e5478a9 devel/go-immutable-radix/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-immutable-radix/PLIST Thu Aug 17 01:30:27 2017 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:30:27 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/hashicorp/go-immutable-radix.a
+gopkg/src/github.com/hashicorp/go-immutable-radix/LICENSE
+gopkg/src/github.com/hashicorp/go-immutable-radix/README.md
+gopkg/src/github.com/hashicorp/go-immutable-radix/edges.go
+gopkg/src/github.com/hashicorp/go-immutable-radix/iradix.go
+gopkg/src/github.com/hashicorp/go-immutable-radix/iradix_test.go
+gopkg/src/github.com/hashicorp/go-immutable-radix/iter.go
+gopkg/src/github.com/hashicorp/go-immutable-radix/node.go
+gopkg/src/github.com/hashicorp/go-immutable-radix/raw_iter.go
+@pkgdir bin
diff -r 463fb6e3087b -r 18414e5478a9 devel/go-immutable-radix/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-immutable-radix/buildlink3.mk Thu Aug 17 01:30:27 2017 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:30:27 gavan Exp $
+
+BUILDLINK_TREE+= go-immutable-radix
+
+.if !defined(GO_IMMUTABLE_RADIX_BUILDLINK3_MK)
+GO_IMMUTABLE_RADIX_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-immutable-radix= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-immutable-radix?= build
+
+BUILDLINK_API_DEPENDS.go-immutable-radix+= go-immutable-radix>=0.0
+BUILDLINK_PKGSRCDIR.go-immutable-radix?= ../../devel/go-immutable-radix
+
+.include "../../devel/go-golang-lru/buildlink3.mk"
+.endif # GO_IMMUTABLE_RADIX_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-immutable-radix
+
diff -r 463fb6e3087b -r 18414e5478a9 devel/go-immutable-radix/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-immutable-radix/distinfo Thu Aug 17 01:30:27 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:30:27 gavan Exp $
+
+SHA1 (go-immutable-radix-0.0.20170725-8aac2701530899b64bdea735a1de8da899815220.tar.gz) = a48e74b5701df19bc2c879d391d5d8e534596150
+RMD160 (go-immutable-radix-0.0.20170725-8aac2701530899b64bdea735a1de8da899815220.tar.gz) = e8790af287cd48d44f65f8cc70d39f884eb8ae04
+SHA512 (go-immutable-radix-0.0.20170725-8aac2701530899b64bdea735a1de8da899815220.tar.gz) =
6b748a06d21972f9011cd85e9128cc27ac67539f8a1be021733b25055d8c6c731a393078ee0418a1929e35cd701bba128a96053cd77fc0a01af51ee58baa5c36
+Size (go-immutable-radix-0.0.20170725-8aac2701530899b64bdea735a1de8da899815220.tar.gz) = 18806 bytes
Home |
Main Index |
Thread Index |
Old Index