git: a751b015bffd - main - textproc/py-mkdocs-git-revision-date-localized-plugin: Add py-mkdocs-git-revision-date-localized-plugin 1.2.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 25 Dec 2023 16:16:14 UTC
The branch main has been updated by sunpoet:

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

commit a751b015bffd1cd499c4e2de32fa5dfa9c5ed021
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-25 16:01:45 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-25 16:10:49 +0000

    textproc/py-mkdocs-git-revision-date-localized-plugin: Add py-mkdocs-git-revision-date-localized-plugin 1.2.2
    
    mkdocs-git-revision-date-localized-plugin is a MkDocs plugin that enables
    displaying the date of the last git modification of a page. The plugin uses
    babel and timeago.js to provide different localized date formats.
---
 textproc/Makefile                                  |  1 +
 .../Makefile                                       | 25 ++++++++++++++++++++++
 .../distinfo                                       |  3 +++
 .../pkg-descr                                      |  3 +++
 4 files changed, 32 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 83b1cd98ad1e..e77adcb4ef3b 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1438,6 +1438,7 @@
     SUBDIR += py-mistune2
     SUBDIR += py-mkdocs
     SUBDIR += py-mkdocs-autorefs
+    SUBDIR += py-mkdocs-git-revision-date-localized-plugin
     SUBDIR += py-mkdocs-material
     SUBDIR += py-mkdocs-material-extensions
     SUBDIR += py-mkdocs-mermaid2-plugin
diff --git a/textproc/py-mkdocs-git-revision-date-localized-plugin/Makefile b/textproc/py-mkdocs-git-revision-date-localized-plugin/Makefile
new file mode 100644
index 000000000000..612925ba552c
--- /dev/null
+++ b/textproc/py-mkdocs-git-revision-date-localized-plugin/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	mkdocs-git-revision-date-localized-plugin
+PORTVERSION=	1.2.2
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Enable displaying the localized date of the last git modification
+WWW=		https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/ \
+		https://github.com/timvink/mkdocs-git-revision-date-localized-plugin
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Babel>=2.7.0:devel/py-babel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}gitpython>=0:devel/py-gitpython@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mkdocs>=1.0:textproc/py-mkdocs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytz>=0,1:devel/py-pytz@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-mkdocs-git-revision-date-localized-plugin/distinfo b/textproc/py-mkdocs-git-revision-date-localized-plugin/distinfo
new file mode 100644
index 000000000000..831a0e90ec5b
--- /dev/null
+++ b/textproc/py-mkdocs-git-revision-date-localized-plugin/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703495779
+SHA256 (mkdocs-git-revision-date-localized-plugin-1.2.2.tar.gz) = 0c43a9aac1fa69df99a823f833cc223bac9967b60d5261a857761c7c6e3b30de
+SIZE (mkdocs-git-revision-date-localized-plugin-1.2.2.tar.gz) = 27065
diff --git a/textproc/py-mkdocs-git-revision-date-localized-plugin/pkg-descr b/textproc/py-mkdocs-git-revision-date-localized-plugin/pkg-descr
new file mode 100644
index 000000000000..a6ab8459f212
--- /dev/null
+++ b/textproc/py-mkdocs-git-revision-date-localized-plugin/pkg-descr
@@ -0,0 +1,3 @@
+mkdocs-git-revision-date-localized-plugin is a MkDocs plugin that enables
+displaying the date of the last git modification of a page. The plugin uses
+babel and timeago.js to provide different localized date formats.