git: ba5d78d64b8e - main - textproc/py-griffelib: New port

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sun, 29 Mar 2026 12:22:09 UTC
The branch main has been updated by kai:

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

commit ba5d78d64b8eff38607e247678fe68019fc5afa9
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2026-03-29 12:21:47 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2026-03-29 12:21:47 +0000

    textproc/py-griffelib: New port
    
    Signatures for entire Python programs.  Extract the structure, the
    frame, the skeleton of your project, to generate API documentation
    or find breaking changes in your API.
    
    This package contains the library components.
---
 textproc/Makefile               |  1 +
 textproc/py-griffelib/Makefile  | 32 ++++++++++++++++++++++++++++++++
 textproc/py-griffelib/distinfo  |  3 +++
 textproc/py-griffelib/pkg-descr |  5 +++++
 4 files changed, 41 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index b2ec2b4e57b6..eae116f7b5e7 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1414,6 +1414,7 @@
     SUBDIR += py-graphemeu
     SUBDIR += py-grep-ast
     SUBDIR += py-griffe
+    SUBDIR += py-griffelib
     SUBDIR += py-grimoire-elk
     SUBDIR += py-grimoirelab-panels
     SUBDIR += py-guess-language
diff --git a/textproc/py-griffelib/Makefile b/textproc/py-griffelib/Makefile
new file mode 100644
index 000000000000..f45aae6c953f
--- /dev/null
+++ b/textproc/py-griffelib/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	griffelib
+DISTVERSION=	2.0.2
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Signatures for entire Python programs / library components
+WWW=		https://github.com/mkdocstrings/griffe
+
+LICENSE=	ISCL
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}uv-dynamic-versioning>=0.7:devel/py-uv-dynamic-versioning@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}colorama>=0.4:devel/py-colorama@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+OPTIONS_DEFINE=	PYPI
+
+PYPI_DESC=	Support for download/inspect packages from PyPI
+
+PYPI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pip>=24.0:devel/py-pip@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}platformdirs>=4.2:devel/py-platformdirs@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}wheel>=0.42:devel/py-wheel@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/textproc/py-griffelib/distinfo b/textproc/py-griffelib/distinfo
new file mode 100644
index 000000000000..5f51b45b8493
--- /dev/null
+++ b/textproc/py-griffelib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1774703598
+SHA256 (griffelib-2.0.2.tar.gz) = 3cf20b3bc470e83763ffbf236e0076b1211bac1bc67de13daf494640f2de707e
+SIZE (griffelib-2.0.2.tar.gz) = 166461
diff --git a/textproc/py-griffelib/pkg-descr b/textproc/py-griffelib/pkg-descr
new file mode 100644
index 000000000000..30df72204787
--- /dev/null
+++ b/textproc/py-griffelib/pkg-descr
@@ -0,0 +1,5 @@
+Signatures for entire Python programs.  Extract the structure, the frame, the
+skeleton of your project, to generate API documentation or find breaking
+changes in your API.
+
+This package contains the library components.