git: d34f3249f1c2 - main - textproc/python-pptx: new port

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Mon, 15 Aug 2022 21:17:51 UTC
The branch main has been updated by nc:

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

commit d34f3249f1c231e225bbc71bc1662ad7dc140db6
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@riseup.net>
AuthorDate: 2022-08-11 18:17:20 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-08-15 21:17:46 +0000

    textproc/python-pptx: new port
    
    python-pptx is a Python library for creating and updating PowerPoint
    (.pptx) files.
    
    A typical use would be generating a customized PowerPoint presentation
    from database content, downloadable by clicking a link in a web
    application. Several developers have used it to automate production
    of presentation-ready engineering status reports based on information
    held in their work management system. It could also be used for
    making bulk updates to a library of presentations or simply to
    automate the production of a slide or two that would be tedious to
    get right by hand.
    
    PR:     265763
---
 textproc/Makefile                 |  1 +
 textproc/py-python-pptx/Makefile  | 23 +++++++++++++++++++++++
 textproc/py-python-pptx/distinfo  |  3 +++
 textproc/py-python-pptx/pkg-descr | 13 +++++++++++++
 4 files changed, 40 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index ddf5e0ab1f5a..8a1953f3bc0b 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1456,6 +1456,7 @@
     SUBDIR += py-python-lsp-jsonrpc
     SUBDIR += py-python-lsp-server
     SUBDIR += py-python-markdown-math
+    SUBDIR += py-python-pptx
     SUBDIR += py-python-slugify
     SUBDIR += py-python-xmp-toolkit
     SUBDIR += py-pytidylib
diff --git a/textproc/py-python-pptx/Makefile b/textproc/py-python-pptx/Makefile
new file mode 100644
index 000000000000..de71f1b3853f
--- /dev/null
+++ b/textproc/py-python-pptx/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	python-pptx
+PORTVERSION=	0.6.21
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	DtxdF@riseup.net
+COMMENT=	Generate and manipulate Open XML PowerPoint (.pptx) files
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>=3.1.0:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>=3.3.2:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}XlsxWriter>=0.5.7:textproc/py-xlsxwriter@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}behave>0:devel/py-behave@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyparsing>=2.0.1:devel/py-pyparsing@${PY_FLAVOR}
+
+USES=		python:3.8+
+USE_PYTHON=	autoplist distutils pytest
+
+.include <bsd.port.mk>
diff --git a/textproc/py-python-pptx/distinfo b/textproc/py-python-pptx/distinfo
new file mode 100644
index 000000000000..a5a8d40038a8
--- /dev/null
+++ b/textproc/py-python-pptx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659916659
+SHA256 (python-pptx-0.6.21.tar.gz) = 7798a2aaf89563565b3c7120c0acfe9aff775db0db3580544e3bf4840c2e378f
+SIZE (python-pptx-0.6.21.tar.gz) = 10100675
diff --git a/textproc/py-python-pptx/pkg-descr b/textproc/py-python-pptx/pkg-descr
new file mode 100644
index 000000000000..2774d9142e5f
--- /dev/null
+++ b/textproc/py-python-pptx/pkg-descr
@@ -0,0 +1,13 @@
+python-pptx is a Python library for creating and updating PowerPoint
+(.pptx) files.
+
+A typical use would be generating a customized PowerPoint presentation
+from database content, downloadable by clicking a link in a web
+application. Several developers have used it to automate production
+of presentation-ready engineering status reports based on information
+held in their work management system. It could also be used for
+making bulk updates to a library of presentations or simply to
+automate the production of a slide or two that would be tedious to
+get right by hand.
+
+WWW: https://github.com/scanny/python-pptx