Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2026 00:49:47 +0000
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f36b89c0f6d4 - main - devel/py-coherent.licensed: New port
Message-ID:  <6a406fab.3fb6f.459c9ff@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by bofh:

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

commit f36b89c0f6d46279c4c655af767ccd4b1b0468bd
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2026-06-27 21:57:48 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2026-06-28 00:30:58 +0000

    devel/py-coherent.licensed: New port
    
    This library was built for coherent.build and skeleton projects to
    inject a license file at build time to reflect the license declared in
    the License Expression.
    
    WWW: https://github.com/coherent-oss/coherent.licensed
---
 devel/Makefile                       |  1 +
 devel/py-coherent.licensed/Makefile  | 47 ++++++++++++++++++++++++++++++++++++
 devel/py-coherent.licensed/distinfo  |  3 +++
 devel/py-coherent.licensed/pkg-descr |  3 +++
 4 files changed, 54 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index de97c063d2aa..5caa86af9e24 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4774,6 +4774,7 @@
     SUBDIR += py-cobble
     SUBDIR += py-codegen
     SUBDIR += py-cogapp
+    SUBDIR += py-coherent.licensed
     SUBDIR += py-collections-extended
     SUBDIR += py-colorama
     SUBDIR += py-colored-traceback
diff --git a/devel/py-coherent.licensed/Makefile b/devel/py-coherent.licensed/Makefile
new file mode 100644
index 000000000000..2d6f3e42b7c9
--- /dev/null
+++ b/devel/py-coherent.licensed/Makefile
@@ -0,0 +1,47 @@
+PORTNAME=	coherent.licensed
+DISTVERSION=	0.5.2
+CATEGORIES=	devel
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/./_/}-${DISTVERSION}
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Inject a license file at build time
+WWW=		https://github.com/coherent-oss/coherent.licensed
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.11:devel/py-flit-core@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+# remove the following blocks after setuptools/python.mk update
+# incorporating the period (.) portion of name normalisation
+# https://packaging.python.org/en/latest/specifications/name-normalization/
+# https://packaging.python.org/en/latest/specifications/binary-distribution-format/#escaping-and-unicode
+PEP517_INSTALL_CMD=	${PYTHON_CMD} -m installer --destdir ${STAGEDIR} --prefix ${PREFIX} \
+  		${BUILD_WRKSRC}/dist/${PORTNAME:tl:C|[-_.]+|_|g}-${DISTVERSION}*.whl
+
+NO_ARCH=	yes
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+	@cd ${INSTALL_WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${PEP517_INSTALL_CMD}
+	@${PYTHON_CMD} -B ${PORTSDIR}/Mk/Scripts/strip_RECORD.py \
+		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME:C|[-_.]+|_|g}-${DISTVERSION}*.dist-info/RECORD >> ${_PYTHONPKGLIST}
+	@${REINPLACE_CMD} \
+		-e '/\.pyc$$/d' \
+		-e 's|^|${PYTHONPREFIX_SITELIBDIR}/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../etc/|etc/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../bin/|bin/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../include/|include/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../lib/|lib/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../libdata/|libdata/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../libexec/|libexec/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../man/|man/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../sbin/|sbin/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../share/|share/|' \
+			${_PYTHONPKGLIST}
+	@cd ${STAGEDIR}${PREFIX} && ${FIND} lib -name '*.pyc' >> ${_PYTHONPKGLIST}
+
+.include <bsd.port.mk>
diff --git a/devel/py-coherent.licensed/distinfo b/devel/py-coherent.licensed/distinfo
new file mode 100644
index 000000000000..2b5e6115c046
--- /dev/null
+++ b/devel/py-coherent.licensed/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1782591137
+SHA256 (coherent_licensed-0.5.2.tar.gz) = d8071403ce742d3ac3592ddc4fb7057a46caffb415b928b4d52802e5f208416d
+SIZE (coherent_licensed-0.5.2.tar.gz) = 3475
diff --git a/devel/py-coherent.licensed/pkg-descr b/devel/py-coherent.licensed/pkg-descr
new file mode 100644
index 000000000000..75159682dfc2
--- /dev/null
+++ b/devel/py-coherent.licensed/pkg-descr
@@ -0,0 +1,3 @@
+This library was built for coherent.build and skeleton projects to
+inject a license file at build time to reflect the license declared in
+the License Expression.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a406fab.3fb6f.459c9ff>