diff options
author | Kai Knoblich <kai@FreeBSD.org> | 2023-09-02 06:41:56 +0000 |
---|---|---|
committer | Kai Knoblich <kai@FreeBSD.org> | 2023-09-02 06:59:19 +0000 |
commit | 9276ea755361d328a97c99e8aeaf5957d2dcbc17 (patch) | |
tree | 0c6ae4e31b9181d5a6084d692018b43b6a2fbeae | |
parent | 54c4d15e3e7b367a16b0188b4a94f474c5963c04 (diff) | |
download | ports-9276ea755361d328a97c99e8aeaf5957d2dcbc17.tar.gz ports-9276ea755361d328a97c99e8aeaf5957d2dcbc17.zip |
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.
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/py-paginate/Makefile | 18 | ||||
-rw-r--r-- | textproc/py-paginate/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-paginate/pkg-descr | 8 |
4 files changed, 30 insertions, 0 deletions
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. |