git: c39aa34d299d - main - devel/py-lru-dict: add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Aug 2022 19:14:53 UTC
The branch main has been updated by driesm: URL: https://cgit.FreeBSD.org/ports/commit/?id=c39aa34d299da60309ca44a792fd744abca168e9 commit c39aa34d299da60309ca44a792fd744abca168e9 Author: Dries Michiels <driesm@FreeBSD.org> AuthorDate: 2022-08-08 19:11:53 +0000 Commit: Dries Michiels <driesm@FreeBSD.org> CommitDate: 2022-08-08 19:14:37 +0000 devel/py-lru-dict: add new port A fast and memory efficient LRU cache for Python. --- devel/Makefile | 1 + devel/py-lru-dict/Makefile | 16 ++++++++++++++++ devel/py-lru-dict/distinfo | 3 +++ devel/py-lru-dict/files/pkg-message.in | 16 ++++++++++++++++ devel/py-lru-dict/pkg-descr | 6 ++++++ 5 files changed, 42 insertions(+) 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