git: fbf2866ff984 - main - devel/py-pdm-build-locked: Add py-pdm-build-locked 0.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 21 Jul 2024 09:59:45 UTC
The branch main has been updated by sunpoet:

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

commit fbf2866ff984d006b367f3230174063428fe1a68
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-21 09:55:08 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-21 09:55:08 +0000

    devel/py-pdm-build-locked: Add py-pdm-build-locked 0.3.0
    
    pdm-build-locked is a pdm plugin to add locked packages as additional optional
    dependency groups to the distribution metadata.
---
 devel/Makefile                      |  1 +
 devel/py-pdm-build-locked/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/py-pdm-build-locked/distinfo  |  3 +++
 devel/py-pdm-build-locked/pkg-descr |  2 ++
 4 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8a93c8302b72..b838f028b544 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5277,6 +5277,7 @@
     SUBDIR += py-pdm
     SUBDIR += py-pdm-autoexport
     SUBDIR += py-pdm-backend
+    SUBDIR += py-pdm-build-locked
     SUBDIR += py-pdm-pep517
     SUBDIR += py-pdoc
     SUBDIR += py-pebble
diff --git a/devel/py-pdm-build-locked/Makefile b/devel/py-pdm-build-locked/Makefile
new file mode 100644
index 000000000000..2934e3342330
--- /dev/null
+++ b/devel/py-pdm-build-locked/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	pdm-build-locked
+PORTVERSION=	0.3.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	pdm_build_locked-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Add locked packages as additional optional dependency groups
+WWW=		https://pdm-build-locked.readthedocs.io/en/stable/ \
+		https://github.com/pdm-project/pdm-build-locked
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pdm-backend>=0:devel/py-pdm-backend@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-pdm-build-locked/distinfo b/devel/py-pdm-build-locked/distinfo
new file mode 100644
index 000000000000..9290cf4f1855
--- /dev/null
+++ b/devel/py-pdm-build-locked/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1721499002
+SHA256 (pdm_build_locked-0.3.0.tar.gz) = 5b3c7c507f07e8ef93f6bfcfbf6708c1361ad9e80c3af15cc9c86fb0f3592abd
+SIZE (pdm_build_locked-0.3.0.tar.gz) = 87421
diff --git a/devel/py-pdm-build-locked/pkg-descr b/devel/py-pdm-build-locked/pkg-descr
new file mode 100644
index 000000000000..a87f7475a432
--- /dev/null
+++ b/devel/py-pdm-build-locked/pkg-descr
@@ -0,0 +1,2 @@
+pdm-build-locked is a pdm plugin to add locked packages as additional optional
+dependency groups to the distribution metadata.