git: 9276ea755361 - main - textproc/py-paginate: New port

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sat, 02 Sep 2023 06:59:39 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9276ea755361d328a97c99e8aeaf5957d2dcbc17

commit 9276ea755361d328a97c99e8aeaf5957d2dcbc17
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-09-02 06:41:56 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-09-02 06:59:19 +0000

    textproc/py-paginate: New port
    
    This module helps dividing large lists of items into pages. The user is
    shown one page at a time and can navigate to other pages.
    
    Imagine you are offering a company phonebook and let the user search the
    entries. If the search result contains 23 entries but you may want to
    display no more than 10 entries at once.
    
    The first page contains entries 1-10, the second 11-20 and the
    third 21-23.
---
 textproc/Makefile              |  1 +
 textproc/py-paginate/Makefile  | 18 ++++++++++++++++++
 textproc/py-paginate/distinfo  |  3 +++
 textproc/py-paginate/pkg-descr |  8 ++++++++
 4 files changed, 30 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index b9bc40227ec9..99e073a5aa17 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1457,6 +1457,7 @@
     SUBDIR += py-os-api-ref
     SUBDIR += py-packageurl-python
     SUBDIR += py-pager
+    SUBDIR += py-paginate
     SUBDIR += py-pallets-sphinx-themes
     SUBDIR += py-pandocfilters
     SUBDIR += py-paragrep
diff --git a/textproc/py-paginate/Makefile b/textproc/py-paginate/Makefile
new file mode 100644
index 000000000000..7aa6ae70d2b8
--- /dev/null
+++ b/textproc/py-paginate/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	paginate
+DISTVERSION=	0.5.6
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Divides large result sets into pages for easier browsing
+WWW=		https://github.com/Pylons/paginate
+
+LICENSE=	MIT
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-paginate/distinfo b/textproc/py-paginate/distinfo
new file mode 100644
index 000000000000..88b1187f8d89
--- /dev/null
+++ b/textproc/py-paginate/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1693486033
+SHA256 (paginate-0.5.6.tar.gz) = 5e6007b6a9398177a7e1648d04fdd9f8c9766a1a945bceac82f1929e8c78af2d
+SIZE (paginate-0.5.6.tar.gz) = 12840
diff --git a/textproc/py-paginate/pkg-descr b/textproc/py-paginate/pkg-descr
new file mode 100644
index 000000000000..632ad91eb32b
--- /dev/null
+++ b/textproc/py-paginate/pkg-descr
@@ -0,0 +1,8 @@
+This module helps dividing large lists of items into pages. The user is shown
+one page at a time and can navigate to other pages.
+
+Imagine you are offering a company phonebook and let the user search the
+entries. If the search result contains 23 entries but you may want to
+display no more than 10 entries at once.
+
+The first page contains entries 1-10, the second 11-20 and the third 21-23.