Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2025 13:27:44 GMT
From:      =?utf-8?Q?=C3=84lven?= <alven@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 85a135160175 - main - cad/py-amaranth: Update 0.5.7 => 0.5.8
Message-ID:  <202511101327.5AADRiR4073535@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by alven:

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

commit 85a13516017590c71f16015990ab522e3d29df8b
Author:     Älven <alven@FreeBSD.org>
AuthorDate: 2025-11-09 11:07:07 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2025-11-10 13:27:23 +0000

    cad/py-amaranth: Update 0.5.7 => 0.5.8
    
    Changelogs:
    * https://amaranth-lang.org/docs/amaranth/v0.5.8/changes.html#version-0-5-8
    
    * Clarify the LICENSE
    * Add LICENSE_FILE
    * Add DOCS and EXAMPLES options
    
    Approved by:            yuri@ (maintainer, Mentor)
    Differential Revision:  https://reviews.freebsd.org/D53643
---
 cad/py-amaranth/Makefile | 22 +++++++++++++++++-----
 cad/py-amaranth/distinfo |  6 +++---
 2 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/cad/py-amaranth/Makefile b/cad/py-amaranth/Makefile
index b9ce40a81050..a83a983a9078 100644
--- a/cad/py-amaranth/Makefile
+++ b/cad/py-amaranth/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	amaranth
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.5.7
+DISTVERSION=	0.5.8
 CATEGORIES=	cad python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -9,7 +9,8 @@ COMMENT=	Amaranth hardware definition language
 WWW=		https://amaranth-lang.org/docs/amaranth/latest/ \
 		https://github.com/amaranth-lang/amaranth
 
-LICENSE=	BSD3CLAUSE
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
@@ -20,16 +21,21 @@ TEST_DEPENDS=	sby:cad/symbiyosys \
 		yosys:cad/yosys
 
 USES=		python
-USE_PYTHON=	pep517 autoplist pytest
+USE_PYTHON=	autoplist pep517 pytest
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	amaranth-lang
 
-NO_ARCH=	yes
-
 MAKE_ENV=	PDM_BUILD_SCM_VERSION=${DISTVERSION} # this allows to build from a tarball (otherwise PDM wouldn't be able to determine the version)
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
+NO_ARCH=	yes
+
+PORTDOCS=	*
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 do-install: # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272771
 	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 	@cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PEP517_INSTALL_CMD}
@@ -50,6 +56,12 @@ do-install: # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=2
 			${_PYTHONPKGLIST}
 	@cd ${STAGEDIR}${PREFIX} && ${FIND} lib -name '*.pyc' >> ${_PYTHONPKGLIST}
 
+do-install-DOCS-on:
+	@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+
+do-install-EXAMPLES-on:
+	@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
+
 # tests as of 0.5.6: 1187 passed, 4 warnings in 46.66s
 
 .include <bsd.port.mk>
diff --git a/cad/py-amaranth/distinfo b/cad/py-amaranth/distinfo
index e9580b804794..d01e97e8875a 100644
--- a/cad/py-amaranth/distinfo
+++ b/cad/py-amaranth/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1753029759
-SHA256 (amaranth-lang-amaranth-v0.5.7_GH0.tar.gz) = 2670e07c7bcebb9fbd444d8b9ef9ba7942b0d51f9a54e6a58a091c6fb0fafa92
-SIZE (amaranth-lang-amaranth-v0.5.7_GH0.tar.gz) = 749105
+TIMESTAMP = 1762685265
+SHA256 (amaranth-lang-amaranth-v0.5.8_GH0.tar.gz) = 97e4aeb78d387c37ef4961013c1a8c3318242cdc394f41627c417d4bcffe6ab5
+SIZE (amaranth-lang-amaranth-v0.5.8_GH0.tar.gz) = 749621


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202511101327.5AADRiR4073535>