git: 7670362c37d1 - main - textproc/py-mkdocs-minify-plugin: Add py-mkdocs-minify-plugin 0.7.2

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

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

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

    textproc/py-mkdocs-minify-plugin: Add py-mkdocs-minify-plugin 0.7.2
    
    mkdocs-minify-plugin is an MkDocs plugin to minify HTML, JS or CSS files prior
    to being written to disk.
    
    HTML minification is done using htmlmin2.
    
    JS minification is done using jsmin.
    
    CSS minification is done using csscompressor.
---
 textproc/Makefile                          |  1 +
 textproc/py-mkdocs-minify-plugin/Makefile  | 24 ++++++++++++++++++++++++
 textproc/py-mkdocs-minify-plugin/distinfo  |  3 +++
 textproc/py-mkdocs-minify-plugin/pkg-descr |  8 ++++++++
 4 files changed, 36 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index e77adcb4ef3b..4519241c9389 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1442,6 +1442,7 @@
     SUBDIR += py-mkdocs-material
     SUBDIR += py-mkdocs-material-extensions
     SUBDIR += py-mkdocs-mermaid2-plugin
+    SUBDIR += py-mkdocs-minify-plugin
     SUBDIR += py-mkdocs-nature
     SUBDIR += py-mkdocs-redirects
     SUBDIR += py-mkdocs-simple-hooks
diff --git a/textproc/py-mkdocs-minify-plugin/Makefile b/textproc/py-mkdocs-minify-plugin/Makefile
new file mode 100644
index 000000000000..9f7ea2c194e1
--- /dev/null
+++ b/textproc/py-mkdocs-minify-plugin/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	mkdocs-minify-plugin
+PORTVERSION=	0.7.2
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Minify HTML, JS or CSS files prior to being written to disk
+WWW=		https://github.com/byrnereese/mkdocs-minify-plugin
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}csscompressor>=0.9.5:www/py-csscompressor@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}htmlmin2>=0.1.13:textproc/py-htmlmin2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsmin>=3.0.1:devel/py-jsmin@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mkdocs>=1.4.1:textproc/py-mkdocs@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-mkdocs-minify-plugin/distinfo b/textproc/py-mkdocs-minify-plugin/distinfo
new file mode 100644
index 000000000000..a2200d120a99
--- /dev/null
+++ b/textproc/py-mkdocs-minify-plugin/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703495781
+SHA256 (mkdocs-minify-plugin-0.7.2.tar.gz) = 6a551e22d6517eaef9e1890afd60021dc1dcd1255de02d266f588d1ace040713
+SIZE (mkdocs-minify-plugin-0.7.2.tar.gz) = 8137
diff --git a/textproc/py-mkdocs-minify-plugin/pkg-descr b/textproc/py-mkdocs-minify-plugin/pkg-descr
new file mode 100644
index 000000000000..04d6f557f787
--- /dev/null
+++ b/textproc/py-mkdocs-minify-plugin/pkg-descr
@@ -0,0 +1,8 @@
+mkdocs-minify-plugin is an MkDocs plugin to minify HTML, JS or CSS files prior
+to being written to disk.
+
+HTML minification is done using htmlmin2.
+
+JS minification is done using jsmin.
+
+CSS minification is done using csscompressor.