pkgsrc-WIP-changes archive

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

Import go-flock-0.8.0 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Mon Jan 18 14:32:03 2021 +0100
Changeset:	3b2681af5dd65ed456e2c459480a4185d5a06746

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

Log Message:
Import go-flock-0.8.0  to wip

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

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

diffstat:
 Makefile               |  1 +
 go-flock/DESCR         |  4 ++++
 go-flock/Makefile      | 18 ++++++++++++++++++
 go-flock/PLIST         | 13 +++++++++++++
 go-flock/buildlink3.mk | 15 +++++++++++++++
 go-flock/distinfo      |  6 ++++++
 6 files changed, 57 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 321f131162..3cfcf56cfe 100644
--- a/Makefile
+++ b/Makefile
@@ -1201,6 +1201,7 @@ SUBDIR+=	go-eventsource
 SUBDIR+=	go-ewma
 SUBDIR+=	go-flac-eaburns
 SUBDIR+=	go-flags
+SUBDIR+=	go-flock
 SUBDIR+=	go-freetype
 SUBDIR+=	go-fsnotify
 SUBDIR+=	go-ghodss-yaml
diff --git a/go-flock/DESCR b/go-flock/DESCR
new file mode 100644
index 0000000000..3078b332fd
--- /dev/null
+++ b/go-flock/DESCR
@@ -0,0 +1,4 @@
+flock implements a thread-safe sync.Locker
+interface for file locking. It also includes
+a non-blocking TryLock() function to allow
+locking without blocking execution.
diff --git a/go-flock/Makefile b/go-flock/Makefile
new file mode 100644
index 0000000000..89e6074552
--- /dev/null
+++ b/go-flock/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME=	go-flock-0.8.0
+GITHUB_PROJECT=	flock
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=gofrs/}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/gofrs/flock/
+COMMENT=	Thread-safe file locking library in Go
+LICENSE=	2-clause-bsd
+
+GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+GO_SRCPATH=	github.com/gofrs/flock
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-flock/PLIST b/go-flock/PLIST
new file mode 100644
index 0000000000..933ab42944
--- /dev/null
+++ b/go-flock/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/gofrs/flock.a
+gopkg/src/github.com/gofrs/flock/LICENSE
+gopkg/src/github.com/gofrs/flock/README.md
+gopkg/src/github.com/gofrs/flock/appveyor.yml
+gopkg/src/github.com/gofrs/flock/flock.go
+gopkg/src/github.com/gofrs/flock/flock_aix.go
+gopkg/src/github.com/gofrs/flock/flock_example_test.go
+gopkg/src/github.com/gofrs/flock/flock_internal_test.go
+gopkg/src/github.com/gofrs/flock/flock_test.go
+gopkg/src/github.com/gofrs/flock/flock_unix.go
+gopkg/src/github.com/gofrs/flock/flock_winapi.go
+gopkg/src/github.com/gofrs/flock/flock_windows.go
diff --git a/go-flock/buildlink3.mk b/go-flock/buildlink3.mk
new file mode 100644
index 0000000000..ad5a43d844
--- /dev/null
+++ b/go-flock/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-flock
+
+.if !defined(GO_FLOCK_BUILDLINK3_MK)
+GO_FLOCK_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-flock=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-flock?=		build
+
+BUILDLINK_API_DEPENDS.go-flock+=	go-flock>=0.8.0
+BUILDLINK_PKGSRCDIR.go-flock?=	../../wip/go-flock
+.endif	# GO_FLOCK_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-flock
diff --git a/go-flock/distinfo b/go-flock/distinfo
new file mode 100644
index 0000000000..0021fbacfd
--- /dev/null
+++ b/go-flock/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-flock-0.8.0.tar.gz) = 7cad61efbeab927c50f1124fb1addb5ccad4e86c
+RMD160 (go-flock-0.8.0.tar.gz) = 4f90a73e9500da6e8d323326ade28fed1b1acb2e
+SHA512 (go-flock-0.8.0.tar.gz) = cd3a29ca808e96df0d81283e4c57c68411a83e82cf8fc2d50ec9a890f2dabb284f305c73d7d35e0e8077d5e826ac83a089f1d1b4b8fdb0e86c9384aa661a2298
+Size (go-flock-0.8.0.tar.gz) = 8978 bytes


Home | Main Index | Thread Index | Old Index