git: e619c0be64df - main - textproc/py-mkdocs-redirects: New port

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Sat, 12 Mar 2022 05:44:38 UTC
The branch main has been updated by nc:

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

commit e619c0be64df05373d75b857b95d0f0c03ebe85b
Author:     Samir Noir <samir@noir.im>
AuthorDate: 2022-02-03 11:37:14 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-03-12 05:43:39 +0000

    textproc/py-mkdocs-redirects: New port
    
    PR:     261321
---
 textproc/Makefile                      |  1 +
 textproc/py-mkdocs-redirects/Makefile  | 28 ++++++++++++++++++++++++++++
 textproc/py-mkdocs-redirects/distinfo  |  3 +++
 textproc/py-mkdocs-redirects/pkg-descr |  3 +++
 4 files changed, 35 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 4dc3eafe1e41..07bc1ed2a065 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1368,6 +1368,7 @@
     SUBDIR += py-mkdocs-material-extensions
     SUBDIR += py-mkdocs-mermaid2-plugin
     SUBDIR += py-mkdocs-nature
+    SUBDIR += py-mkdocs-redirects
     SUBDIR += py-mkdocs-simple-hooks
     SUBDIR += py-mkdocstrings
     SUBDIR += py-mwparserfromhell
diff --git a/textproc/py-mkdocs-redirects/Makefile b/textproc/py-mkdocs-redirects/Makefile
new file mode 100644
index 000000000000..bb25a1db2e24
--- /dev/null
+++ b/textproc/py-mkdocs-redirects/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	mkdocs-redirects
+DISTVERSION=	1.0.3
+CATEGORIES=	textproc python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	samir@noir.im
+COMMENT=	MkDocs plugin for dynamic page redirects to prevent broken links
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mkdocs>=1.0.4:textproc/py-mkdocs@${PY_FLAVOR}
+
+TEST_DEPENDS=	${RUN_DEPENDS} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_GITHUB=	yes
+GH_ACCOUNT=	datarobot
+GH_TAGNAME=	07ef89796ec97be3c6ea2681441992d5d4bfa87b
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+do-test:
+	cd ${WRKSRC} && PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -m pytest -v tests
+
+.include <bsd.port.mk>
diff --git a/textproc/py-mkdocs-redirects/distinfo b/textproc/py-mkdocs-redirects/distinfo
new file mode 100644
index 000000000000..6f025737184e
--- /dev/null
+++ b/textproc/py-mkdocs-redirects/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1643884960
+SHA256 (datarobot-mkdocs-redirects-1.0.3-07ef89796ec97be3c6ea2681441992d5d4bfa87b_GH0.tar.gz) = 8e49d78981bb2cc3f2d00545907baea630d05e12407f40f4567af546a52fc87b
+SIZE (datarobot-mkdocs-redirects-1.0.3-07ef89796ec97be3c6ea2681441992d5d4bfa87b_GH0.tar.gz) = 6395
diff --git a/textproc/py-mkdocs-redirects/pkg-descr b/textproc/py-mkdocs-redirects/pkg-descr
new file mode 100644
index 000000000000..69ce1b777158
--- /dev/null
+++ b/textproc/py-mkdocs-redirects/pkg-descr
@@ -0,0 +1,3 @@
+Plugin for MkDocs to create page redirects (e.g. for moved/renamed pages).
+
+WWW: https://github.com/datarobot/mkdocs-redirects