summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÄlven <alven@FreeBSD.org>2025-11-09 15:07:07 +0400
committerÄlven <alven@FreeBSD.org>2025-11-10 17:27:23 +0400
commit85a13516017590c71f16015990ab522e3d29df8b (patch)
tree6e13002e707a86e6596443060fd2d48de353f125
parentmultimedia/opentimelineio: Update to 0.18.0 (diff)
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
-rw-r--r--cad/py-amaranth/Makefile22
-rw-r--r--cad/py-amaranth/distinfo6
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