git: b9f158446825 - main - devel/py-legacy-api-wrap: Add py-legacy-api-wrap 1.4.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 24 Jul 2025 11:25:07 UTC
The branch main has been updated by sunpoet:

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

commit b9f15844682534be618c8adc4f4dd746d4b7f696
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-07-24 11:09:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-07-24 11:18:49 +0000

    devel/py-legacy-api-wrap: Add py-legacy-api-wrap 1.4.1
    
    Legacy API Wrapper defines a decorator to wrap legacy APIs. The primary use case
    is APIs defined before keyword-only parameters existed.
---
 devel/Makefile                     |  1 +
 devel/py-legacy-api-wrap/Makefile  | 24 ++++++++++++++++++++++++
 devel/py-legacy-api-wrap/distinfo  |  3 +++
 devel/py-legacy-api-wrap/pkg-descr |  2 ++
 4 files changed, 30 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index d4b8296dd9ca..c2bcfec23e92 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5187,6 +5187,7 @@
     SUBDIR += py-lazy
     SUBDIR += py-lazy-object-proxy
     SUBDIR += py-lazy_loader
+    SUBDIR += py-legacy-api-wrap
     SUBDIR += py-libcst
     SUBDIR += py-libcst03
     SUBDIR += py-libevdev
diff --git a/devel/py-legacy-api-wrap/Makefile b/devel/py-legacy-api-wrap/Makefile
new file mode 100644
index 000000000000..47c4030f740b
--- /dev/null
+++ b/devel/py-legacy-api-wrap/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	legacy-api-wrap
+PORTVERSION=	1.4.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	legacy_api_wrap-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Wrap legacy APIs in python projects
+WWW=		https://github.com/flying-sheep/legacy-api-wrap
+
+LICENSE=	MPL20
+LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-docstring-description>=0:devel/py-hatch-docstring-description@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0:devel/py-hatch-vcs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-legacy-api-wrap/distinfo b/devel/py-legacy-api-wrap/distinfo
new file mode 100644
index 000000000000..c856b56e5186
--- /dev/null
+++ b/devel/py-legacy-api-wrap/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1753265680
+SHA256 (legacy_api_wrap-1.4.1.tar.gz) = 9c40d67aa8312fec8763e87cbf28fea4b67710c79ca7a18137b573d150f3b2b4
+SIZE (legacy_api_wrap-1.4.1.tar.gz) = 11003
diff --git a/devel/py-legacy-api-wrap/pkg-descr b/devel/py-legacy-api-wrap/pkg-descr
new file mode 100644
index 000000000000..2a3d9f7f1891
--- /dev/null
+++ b/devel/py-legacy-api-wrap/pkg-descr
@@ -0,0 +1,2 @@
+Legacy API Wrapper defines a decorator to wrap legacy APIs. The primary use case
+is APIs defined before keyword-only parameters existed.