pkgsrc-WIP-changes archive

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

Import go-ksuid-1.0.3 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Tue Jan 19 09:40:19 2021 +0100
Changeset:	16ce5bea0f9488606811a83f2bd989711e233cc1

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

Log Message:
Import go-ksuid-1.0.3 to wip

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

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

diffstat:
 Makefile               |  1 +
 go-ksuid/DESCR         | 23 +++++++++++++++++++++++
 go-ksuid/Makefile      | 18 ++++++++++++++++++
 go-ksuid/PLIST         | 18 ++++++++++++++++++
 go-ksuid/buildlink3.mk | 15 +++++++++++++++
 go-ksuid/distinfo      |  6 ++++++
 6 files changed, 81 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f3fb160554..381362dca2 100644
--- a/Makefile
+++ b/Makefile
@@ -1237,6 +1237,7 @@ SUBDIR+=	go-jump
 SUBDIR+=	go-junit-report
 SUBDIR+=	go-kong
 SUBDIR+=	go-kr-text
+SUBDIR+=	go-ksuid
 SUBDIR+=	go-log
 SUBDIR+=	go-lzw
 SUBDIR+=	go-madon
diff --git a/go-ksuid/DESCR b/go-ksuid/DESCR
new file mode 100644
index 0000000000..16c4834adb
--- /dev/null
+++ b/go-ksuid/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+# ksuid [![Go Report Card](https://goreportcard.com/badge/github.com/segmentio/ksuid)](https://goreportcard.com/report/github.com/segmentio/ksuid) [![GoDoc](https://godoc.org/github.com/segmentio/ksuid?status.svg)](https://godoc.org/github.com/segmentio/ksuid) [![Circle CI](https://circleci.com/gh/segmentio/ksuid.svg?style=shield)](https://circleci.com/gh/segmentio/ksuid.svg?style=shield)
+
+ksuid is a Go library that can generate and parse KSUIDs.
+
+# Install
+```bash
+go get -u github.com/segmentio/ksuid
+```
+
+# What is a KSUID?
+
+KSUID is for K-Sortable Unique IDentifier. It's a way to generate globally
+unique IDs similar to RFC 4122 UUIDs, but contain a time component so they
+can be "roughly" sorted by time of creation. The remainder of the KSUID is
+randomly generated bytes.
+
+# Why use KSUIDs?
+
+Distributed systems often require unique IDs. There are numerous solutions
+out there for doing this, so why KSUID?
+...
diff --git a/go-ksuid/Makefile b/go-ksuid/Makefile
new file mode 100644
index 0000000000..c056c88cc3
--- /dev/null
+++ b/go-ksuid/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME=	go-ksuid-1.0.3
+GITHUB_PROJECT=	ksuid
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=segmentio/}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://segment.com/blog/a-brief-history-of-the-uuid/
+COMMENT=	K-Sortable Globally Unique IDs
+LICENSE=	mit
+
+GO_DIST_BASE=   ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+GO_SRCPATH=     github.com/segmentio/ksuid
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-ksuid/PLIST b/go-ksuid/PLIST
new file mode 100644
index 0000000000..f1dd9a19ea
--- /dev/null
+++ b/go-ksuid/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD$
+bin/ksuid
+gopkg/pkg/${GO_PLATFORM}/github.com/segmentio/ksuid.a
+gopkg/src/github.com/segmentio/ksuid/LICENSE.md
+gopkg/src/github.com/segmentio/ksuid/README.md
+gopkg/src/github.com/segmentio/ksuid/base62.go
+gopkg/src/github.com/segmentio/ksuid/base62_test.go
+gopkg/src/github.com/segmentio/ksuid/cmd/ksuid/main.go
+gopkg/src/github.com/segmentio/ksuid/go.mod
+gopkg/src/github.com/segmentio/ksuid/ksuid.go
+gopkg/src/github.com/segmentio/ksuid/ksuid_test.go
+gopkg/src/github.com/segmentio/ksuid/rand.go
+gopkg/src/github.com/segmentio/ksuid/sequence.go
+gopkg/src/github.com/segmentio/ksuid/sequence_test.go
+gopkg/src/github.com/segmentio/ksuid/set.go
+gopkg/src/github.com/segmentio/ksuid/set_test.go
+gopkg/src/github.com/segmentio/ksuid/uint128.go
+gopkg/src/github.com/segmentio/ksuid/uint128_test.go
diff --git a/go-ksuid/buildlink3.mk b/go-ksuid/buildlink3.mk
new file mode 100644
index 0000000000..cc967a5bd7
--- /dev/null
+++ b/go-ksuid/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-ksuid
+
+.if !defined(GO_KSUID_BUILDLINK3_MK)
+GO_KSUID_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-ksuid=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-ksuid?=		build
+
+BUILDLINK_API_DEPENDS.go-ksuid+=	go-ksuid>=1.0.3
+BUILDLINK_PKGSRCDIR.go-ksuid?=	../../wip/go-ksuid
+.endif	# GO_KSUID_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-ksuid
diff --git a/go-ksuid/distinfo b/go-ksuid/distinfo
new file mode 100644
index 0000000000..0f8bb129af
--- /dev/null
+++ b/go-ksuid/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-ksuid-1.0.3.tar.gz) = 63d90edd7144126c972d5ec806d728f389ec24f2
+RMD160 (go-ksuid-1.0.3.tar.gz) = f22d5f3ab06cae925efa93afee70aea6eed20985
+SHA512 (go-ksuid-1.0.3.tar.gz) = d0655a0b095d0ab81094f7718be549dfd58f2f7f19b85c7a67ddd7beeb6afc522df07dab15feeedce6b86aaf488bfc395e102362d0c6d71e9fcaddb646dca8b7
+Size (go-ksuid-1.0.3.tar.gz) = 17872 bytes


Home | Main Index | Thread Index | Old Index