aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authordbaio <dbaio@FreeBSD.org>2018-12-23 04:36:02 +0800
committerdbaio <dbaio@FreeBSD.org>2018-12-23 04:36:02 +0800
commitd3ba9dc104531339f7993aecde30573683d9a474 (patch)
tree058b396f651f354be3059c7a72c0f7195b89c667 /devel
parent84b7e415b123d074acf64797af61ccafbb7c53bd (diff)
downloadfreebsd-ports-gnome-d3ba9dc104531339f7993aecde30573683d9a474.tar.gz
freebsd-ports-gnome-d3ba9dc104531339f7993aecde30573683d9a474.tar.zst
freebsd-ports-gnome-d3ba9dc104531339f7993aecde30573683d9a474.zip
Add devel/py-portalocker: Python library that provides an easy API to file locking
An important detail to note is that on Linux and Unix systems the locks are advisory by default. By specifying the -o mand option to the mount command it is possible to enable mandatory file locking on Linux. This is generally not recommended however. For more information about the subject: https://en.wikipedia.org/wiki/File_locking http://stackoverflow.com/questions/39292051/portalocker-does-not-seem-to-lock https://stackoverflow.com/questions/12062466/mandatory-file-lock-on-linux WWW: https://pypi.org/project/portalocker/
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-portalocker/Makefile20
-rw-r--r--devel/py-portalocker/distinfo3
-rw-r--r--devel/py-portalocker/pkg-descr11
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index d39d09840f17..74245a42bd8e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4890,6 +4890,7 @@
SUBDIR += py-podcastparser
SUBDIR += py-polib
SUBDIR += py-pooch
+ SUBDIR += py-portalocker
SUBDIR += py-positional
SUBDIR += py-posix_ipc
SUBDIR += py-poyo
diff --git a/devel/py-portalocker/Makefile b/devel/py-portalocker/Makefile
new file mode 100644
index 000000000000..7b87d73dbd44
--- /dev/null
+++ b/devel/py-portalocker/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PORTNAME= portalocker
+PORTVERSION= 1.3.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dbaio@FreeBSD.org
+COMMENT= Python library that provides an easy API to file locking
+
+LICENSE= PSFL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-portalocker/distinfo b/devel/py-portalocker/distinfo
new file mode 100644
index 000000000000..66d6f08572f9
--- /dev/null
+++ b/devel/py-portalocker/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1545509301
+SHA256 (portalocker-1.3.0.tar.gz) = b5ba72ace4f50093e3841c65a24f65d4f1bddd8d47cf439e56ab30b1aebd62a0
+SIZE (portalocker-1.3.0.tar.gz) = 11188
diff --git a/devel/py-portalocker/pkg-descr b/devel/py-portalocker/pkg-descr
new file mode 100644
index 000000000000..c7453897ba29
--- /dev/null
+++ b/devel/py-portalocker/pkg-descr
@@ -0,0 +1,11 @@
+Portalocker is a library to provide an easy API to file locking.
+
+An important detail to note is that on Linux and Unix systems the locks are
+advisory by default. By specifying the -o mand option to the mount command it
+is possible to enable mandatory file locking on Linux. This is generally not
+recommended however. For more information about the subject:
+ https://en.wikipedia.org/wiki/File_locking
+ http://stackoverflow.com/questions/39292051/portalocker-does-not-seem-to-lock
+ https://stackoverflow.com/questions/12062466/mandatory-file-lock-on-linux
+
+WWW: https://pypi.org/project/portalocker/