git: 21301ab9515d - main - textproc/py-mkdocs-rss-plugin: New port

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sat, 07 Sep 2024 06:57:46 UTC
The branch main has been updated by kai:

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

commit 21301ab9515d7c0d7405ca215cffb07f911d8f1e
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2024-09-07 06:46:53 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-09-07 06:55:20 +0000

    textproc/py-mkdocs-rss-plugin: New port
    
    This MkDocs plugin creates RSS 2.0 and JSON Feed 1.1 feeds using the
    creation and modification dates from git log and page metadata (YAML
    frontmatter).
    
    PR:             280489
    Reported by:    Vedran Miletic
---
 textproc/Makefile                       |  1 +
 textproc/py-mkdocs-rss-plugin/Makefile  | 32 ++++++++++++++++++++++++++++++++
 textproc/py-mkdocs-rss-plugin/distinfo  |  3 +++
 textproc/py-mkdocs-rss-plugin/pkg-descr |  2 ++
 4 files changed, 38 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 163630eaf17d..579556c2df04 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1462,6 +1462,7 @@
     SUBDIR += py-mkdocs-minify-plugin
     SUBDIR += py-mkdocs-nature
     SUBDIR += py-mkdocs-redirects
+    SUBDIR += py-mkdocs-rss-plugin
     SUBDIR += py-mkdocs-simple-hooks
     SUBDIR += py-mkdocstrings
     SUBDIR += py-mkdocstrings-crystal
diff --git a/textproc/py-mkdocs-rss-plugin/Makefile b/textproc/py-mkdocs-rss-plugin/Makefile
new file mode 100644
index 000000000000..56abc6845bca
--- /dev/null
+++ b/textproc/py-mkdocs-rss-plugin/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	mkdocs-rss-plugin
+DISTVERSION=	1.15.0
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Generates a static RSS feed using git log and page.meta
+WWW=		https://github.com/Guts/mkdocs-rss-plugin
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cachecontrol>=0.14<1:www/py-cachecontrol@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}gitpython>=3.1<3.2:devel/py-gitpython@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.31<3:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mkdocs>=1.4.1:textproc/py-mkdocs@${PY_FLAVOR}
+
+USES=		python
+USE_GITHUB=	yes
+GH_ACCOUNT=	Guts
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pytz>=2024,1:devel/py-pytz@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/py-mkdocs-rss-plugin/distinfo b/textproc/py-mkdocs-rss-plugin/distinfo
new file mode 100644
index 000000000000..68ecd6e2eeea
--- /dev/null
+++ b/textproc/py-mkdocs-rss-plugin/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722673643
+SHA256 (Guts-mkdocs-rss-plugin-1.15.0_GH0.tar.gz) = 96e105bc453b4f1adae2b5977241b0561cae3aa64accf72204bf7287e64ce36f
+SIZE (Guts-mkdocs-rss-plugin-1.15.0_GH0.tar.gz) = 557859
diff --git a/textproc/py-mkdocs-rss-plugin/pkg-descr b/textproc/py-mkdocs-rss-plugin/pkg-descr
new file mode 100644
index 000000000000..ca181fe73063
--- /dev/null
+++ b/textproc/py-mkdocs-rss-plugin/pkg-descr
@@ -0,0 +1,2 @@
+This MkDocs plugin creates RSS 2.0 and JSON Feed 1.1 feeds using the creation
+and modification dates from git log and page metadata (YAML frontmatter).