git: 1c10b1f54d26 - main - textproc/py-file-read-backwards: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Oct 2024 08:05:46 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=1c10b1f54d269b1e6e5c3078e85048f044a7d699 commit 1c10b1f54d269b1e6e5c3078e85048f044a7d699 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2024-10-10 07:38:17 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2024-10-10 08:05:10 +0000 textproc/py-file-read-backwards: New port Memory efficient way of reading files line-by-line from the end of file This package is for reading file backward line by line as unicode in a memory efficient manner for both Python 2.7 and Python 3. It currently supports ascii, latin-1, and utf-8 encodings. It supports "\r", "\r\n", and "\n" as new lines. WWW: https://github.com/RobinNil/file_read_backwards Sponsored by: The FreeBSD Foundation --- textproc/Makefile | 1 + textproc/py-file-read-backwards/Makefile | 24 ++++++++++++++++++++++++ textproc/py-file-read-backwards/distinfo | 3 +++ textproc/py-file-read-backwards/pkg-descr | 6 ++++++ 4 files changed, 34 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index ae558c71f491..b4b0e8b8dd22 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1380,6 +1380,7 @@ SUBDIR += py-fasttext-predict SUBDIR += py-faust-cchardet SUBDIR += py-feedparser + SUBDIR += py-file-read-backwards SUBDIR += py-fingerprints SUBDIR += py-flor SUBDIR += py-fluent.syntax diff --git a/textproc/py-file-read-backwards/Makefile b/textproc/py-file-read-backwards/Makefile new file mode 100644 index 000000000000..16b37b5d56a3 --- /dev/null +++ b/textproc/py-file-read-backwards/Makefile @@ -0,0 +1,24 @@ +PORTNAME= file-read-backwards +DISTVERSION= 3.1.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSION} + +MAINTAINER= bofh@FreeBSD.org +COMMENT= Memory efficient way of reading files line-by-line from the end of file +WWW= https://github.com/RobinNil/file_read_backwards + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils unittest2 + +NO_ARCH= yes + +TEST_WRKSRC= ${WRKSRC}/tests + +.include <bsd.port.mk> diff --git a/textproc/py-file-read-backwards/distinfo b/textproc/py-file-read-backwards/distinfo new file mode 100644 index 000000000000..7966b5d9c77e --- /dev/null +++ b/textproc/py-file-read-backwards/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1728545451 +SHA256 (file_read_backwards-3.1.0.tar.gz) = bd04593bc1938a003224be451d5d735f1f4490e1e70a568ce8d330bb7652a684 +SIZE (file_read_backwards-3.1.0.tar.gz) = 23328 diff --git a/textproc/py-file-read-backwards/pkg-descr b/textproc/py-file-read-backwards/pkg-descr new file mode 100644 index 000000000000..bc5821694d7d --- /dev/null +++ b/textproc/py-file-read-backwards/pkg-descr @@ -0,0 +1,6 @@ +This package is for reading file backward line by line as unicode in a +memory efficient manner for both Python 2.7 and Python 3. + +It currently supports ascii, latin-1, and utf-8 encodings. + +It supports "\r", "\r\n", and "\n" as new lines.