git: 4f924cb3b42d - main - devel/py-pdoc: Add py-pdoc 13.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 27 Apr 2023 15:52:14 UTC
The branch main has been updated by sunpoet:

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

commit 4f924cb3b42d3df97f9603ab735e63826f287811
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-27 15:28:00 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-27 15:28:00 +0000

    devel/py-pdoc: Add py-pdoc 13.1.0
    
    pdoc auto-generates API documentation that follows your project's Python module
    hierarchy.
    
    pdoc's main feature is a focus on simplicity: pdoc aims to do one thing and do
    it well.
    
    - Easy setup, no configuration necessary.
    - Documentation is plain Markdown.
    - First-class support for type annotations.
    - Builtin web server with live reloading.
    - Customizable HTML templates.
    - Understands numpydoc and Google-style docstrings.
---
 devel/Makefile          |  1 +
 devel/py-pdoc/Makefile  | 32 ++++++++++++++++++++++++++++++++
 devel/py-pdoc/distinfo  |  3 +++
 devel/py-pdoc/pkg-descr | 12 ++++++++++++
 4 files changed, 48 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 27bde59118bd..ea96c5fe8ad9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5060,6 +5060,7 @@
     SUBDIR += py-pdm
     SUBDIR += py-pdm-backend
     SUBDIR += py-pdm-pep517
+    SUBDIR += py-pdoc
     SUBDIR += py-pebble
     SUBDIR += py-pefile
     SUBDIR += py-pendulum
diff --git a/devel/py-pdoc/Makefile b/devel/py-pdoc/Makefile
new file mode 100644
index 000000000000..92018c2accdf
--- /dev/null
+++ b/devel/py-pdoc/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	pdoc
+PORTVERSION=	13.1.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	API Documentation for Python Projects
+WWW=		https://pdoc.dev/ \
+		https://github.com/mitmproxy/pdoc
+
+LICENSE=	UNLICENSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Jinja2>=2.11.0:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}markupsafe>=0:textproc/py-markupsafe@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pygments>=2.12.0:textproc/py-pygments@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}astunparse>=0:devel/py-astunparse@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-pdoc/distinfo b/devel/py-pdoc/distinfo
new file mode 100644
index 000000000000..33172f5bf4d6
--- /dev/null
+++ b/devel/py-pdoc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1682354448
+SHA256 (pdoc-13.1.0.tar.gz) = 074ae532b3df71c90df043303a83dcbc92a54e6e63ebf12f30bdd0c7b6f6dbb4
+SIZE (pdoc-13.1.0.tar.gz) = 138969
diff --git a/devel/py-pdoc/pkg-descr b/devel/py-pdoc/pkg-descr
new file mode 100644
index 000000000000..8ee6bd0c47fd
--- /dev/null
+++ b/devel/py-pdoc/pkg-descr
@@ -0,0 +1,12 @@
+pdoc auto-generates API documentation that follows your project's Python module
+hierarchy.
+
+pdoc's main feature is a focus on simplicity: pdoc aims to do one thing and do
+it well.
+
+- Easy setup, no configuration necessary.
+- Documentation is plain Markdown.
+- First-class support for type annotations.
+- Builtin web server with live reloading.
+- Customizable HTML templates.
+- Understands numpydoc and Google-style docstrings.