git: b50cd4a799e7 - main - textproc/py-docx-generator: New port: Tool to generate docx report from docx template and json data

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Sun, 30 Apr 2023 07:11:39 UTC
The branch main has been updated by acm:

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

commit b50cd4a799e7d7f73f757f17e62824fbc8e69725
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2023-04-30 07:10:36 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2023-04-30 07:10:36 +0000

    textproc/py-docx-generator: New port: Tool to generate docx report from docx template and json data
    
    Tool to generate docx report from docx template and json data
---
 textproc/Makefile                    |  1 +
 textproc/py-docx-generator/Makefile  | 29 +++++++++++++++++++++++++++++
 textproc/py-docx-generator/distinfo  |  3 +++
 textproc/py-docx-generator/pkg-descr |  1 +
 4 files changed, 34 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index e6eb7393de7e..9a8b2bc4a38f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1320,6 +1320,7 @@
     SUBDIR += py-docstring-parser
     SUBDIR += py-docstring-to-markdown
     SUBDIR += py-docutils
+    SUBDIR += py-docx-generator
     SUBDIR += py-docx2txt
     SUBDIR += py-docxcompose
     SUBDIR += py-docxtpl
diff --git a/textproc/py-docx-generator/Makefile b/textproc/py-docx-generator/Makefile
new file mode 100644
index 000000000000..b17c63efc53f
--- /dev/null
+++ b/textproc/py-docx-generator/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	docx-generator
+PORTVERSION=	0.8.0
+CATEGORIES=	textproc python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	acm@FreeBSD.org
+COMMENT=	Tool to generate docx report from docx template and json data
+WWW=		https://github.com/dfir-iris/docx-generator
+
+LICENSE=	LGPL3
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}docxcompose>0:textproc/py-docxcompose@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}docxtpl>0:textproc/py-docxtpl@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}python-docx>0:textproc/py-python-docx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mistletoe>0:textproc/py-mistletoe@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}markupsafe>0:textproc/py-markupsafe@${PY_FLAVOR}
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	dfir-iris
+GH_PROJECT=	${PORTNAME}
+GH_TAGNAME=	6b2d68f2ea8b34daac76bd399b083d5e85eee23b
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-docx-generator/distinfo b/textproc/py-docx-generator/distinfo
new file mode 100644
index 000000000000..a1506a7d9409
--- /dev/null
+++ b/textproc/py-docx-generator/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1682838277
+SHA256 (dfir-iris-docx-generator-0.8.0-6b2d68f2ea8b34daac76bd399b083d5e85eee23b_GH0.tar.gz) = 5608f69a0d37629dc9a3ac91d77b31e19bd29d382149fd916de5317ed3099549
+SIZE (dfir-iris-docx-generator-0.8.0-6b2d68f2ea8b34daac76bd399b083d5e85eee23b_GH0.tar.gz) = 6352886
diff --git a/textproc/py-docx-generator/pkg-descr b/textproc/py-docx-generator/pkg-descr
new file mode 100644
index 000000000000..764ca15e1205
--- /dev/null
+++ b/textproc/py-docx-generator/pkg-descr
@@ -0,0 +1 @@
+Tool to generate docx report from docx template and json data