aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Michiels <driesm@FreeBSD.org>2022-08-08 19:11:53 +0000
committerDries Michiels <driesm@FreeBSD.org>2022-08-08 19:14:37 +0000
commitc39aa34d299da60309ca44a792fd744abca168e9 (patch)
tree59091a7afcf1e1e08dd87787bfb40c03cfa18bd7
parente4a27c2f441df4579efb7e8a0b8c080fe8b5e64f (diff)
downloadports-c39aa34d299da60309ca44a792fd744abca168e9.tar.gz
ports-c39aa34d299da60309ca44a792fd744abca168e9.zip
devel/py-lru-dict: add new port
A fast and memory efficient LRU cache for Python.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-lru-dict/Makefile16
-rw-r--r--devel/py-lru-dict/distinfo3
-rw-r--r--devel/py-lru-dict/files/pkg-message.in16
-rw-r--r--devel/py-lru-dict/pkg-descr6
5 files changed, 42 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 1942b238a863..f9f48009bf00 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4734,6 +4734,7 @@
SUBDIR += py-logutils
SUBDIR += py-logzero
SUBDIR += py-louie
+ SUBDIR += py-lru-dict
SUBDIR += py-lunardate
SUBDIR += py-lxml
SUBDIR += py-lxml-stubs
diff --git a/devel/py-lru-dict/Makefile b/devel/py-lru-dict/Makefile
new file mode 100644
index 000000000000..0951bf853329
--- /dev/null
+++ b/devel/py-lru-dict/Makefile
@@ -0,0 +1,16 @@
+PORTNAME= lru-dict
+DISTVERSION= 1.1.8
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= driesm@FreeBSD.org
+COMMENT= Fast and memory efficient LRU cache for Python
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils pytest
+
+.include <bsd.port.mk>
diff --git a/devel/py-lru-dict/distinfo b/devel/py-lru-dict/distinfo
new file mode 100644
index 000000000000..a6ba533b65b2
--- /dev/null
+++ b/devel/py-lru-dict/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659985642
+SHA256 (lru-dict-1.1.8.tar.gz) = 878bc8ef4073e5cfb953dfc1cf4585db41e8b814c0106abde34d00ee0d0b3115
+SIZE (lru-dict-1.1.8.tar.gz) = 10921
diff --git a/devel/py-lru-dict/files/pkg-message.in b/devel/py-lru-dict/files/pkg-message.in
new file mode 100644
index 000000000000..ae97ff64e4bb
--- /dev/null
+++ b/devel/py-lru-dict/files/pkg-message.in
@@ -0,0 +1,16 @@
+[
+{ type: install
+ message: <<EOM
+Now it is time to set-up the main configuration file.
+
+First run "pyznap setup", a sample configuration will be copied
+to %%ETCDIR%%/pyznap/pyznap.conf.
+
+After configuring the file to your liking setup cron(8) with the
+following entries:
+
+*/15 * * * * root %%BINDIR%%/pyznap snap >> /var/log/pyznap.log
+0 0 * * * root %%BINDIR%%/pyznap send >> /var/log/pyznap.log
+EOM
+}
+]
diff --git a/devel/py-lru-dict/pkg-descr b/devel/py-lru-dict/pkg-descr
new file mode 100644
index 000000000000..3d51b0948dea
--- /dev/null
+++ b/devel/py-lru-dict/pkg-descr
@@ -0,0 +1,6 @@
+A fixed size dict like container which evicts Least Recently Used (LRU)
+items once size limit is exceeded. There are many python implementations
+available which does similar things. This is a fast and efficient C
+implementation. LRU maximum capacity can be modified at run-time.
+
+WWW: https://github.com/amitdev/lru-dict