git: 896206b8d221 - main - misc/py-natten: update 0.17.5 → 0.20.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 Jun 2025 16:07:04 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=896206b8d221de032e6cd95ae2eb238e61941864
commit 896206b8d221de032e6cd95ae2eb238e61941864
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-06-15 16:06:01 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-06-15 16:07:02 +0000
misc/py-natten: update 0.17.5 → 0.20.1
---
misc/py-natten/Makefile | 17 +++++++++--------
misc/py-natten/distinfo | 6 +++---
2 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/misc/py-natten/Makefile b/misc/py-natten/Makefile
index adbdca5cf093..3f4cf385219e 100644
--- a/misc/py-natten/Makefile
+++ b/misc/py-natten/Makefile
@@ -1,23 +1,24 @@
PORTNAME= natten
DISTVERSIONPREFIX= v
-DISTVERSION= 0.17.5
-CATEGORIES= misc python
+DISTVERSION= 0.20.1
+CATEGORIES= misc python # machine-learning
#MASTER_SITES= PYPI # no tests
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Neighborhood Attention Extension for PyTorch
-WWW= https://shi-labs.com/natten/ \
+WWW= https://natten.org/ \
https://github.com/SHI-Labs/NATTEN
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= cmake:devel/cmake-core \
+# this BUILD_DEPENDS should be used when CUDA would be available
+#BUILD_DEPENDS= cmake:devel/cmake-core \
pybind11>0:devel/pybind11 \
${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR}
USES= localbase python
USE_PYTHON= distutils autoplist pytest
@@ -28,9 +29,9 @@ GH_PROJECT= NATTEN
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+NO_ARCH= yes # no arch w/out CUDA
+
post-install:
- # strip binary
- @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/natten/libnatten${PYTHON_EXT_SUFFIX}.so
# delete stray files, see https://github.com/SHI-Labs/NATTEN/issues/152
@${RM} -r \
${STAGEDIR}${PYTHON_SITELIBDIR}/CMakeFiles \
diff --git a/misc/py-natten/distinfo b/misc/py-natten/distinfo
index bffd18823a37..5e4a981e7cf4 100644
--- a/misc/py-natten/distinfo
+++ b/misc/py-natten/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1742285229
-SHA256 (SHI-Labs-NATTEN-v0.17.5_GH0.tar.gz) = d5f1f2ee5be3ff2a10dd8a0c794a116338df3c1c2d9702adb555d0ee5e8d2784
-SIZE (SHI-Labs-NATTEN-v0.17.5_GH0.tar.gz) = 12117180
+TIMESTAMP = 1749969908
+SHA256 (SHI-Labs-NATTEN-v0.20.1_GH0.tar.gz) = ceadc8e83114d192d28d1c913e707eaea7f389031a6024d53cf53bdfa745b9c0
+SIZE (SHI-Labs-NATTEN-v0.20.1_GH0.tar.gz) = 6022603