diff --git a/devel/nanobind/Makefile b/devel/nanobind/Makefile index c8ee7f1ff77b..4156b6684695 100644 --- a/devel/nanobind/Makefile +++ b/devel/nanobind/Makefile @@ -1,71 +1,71 @@ PORTNAME= nanobind DISTVERSIONPREFIX= v -DISTVERSION= 2.13.0 +DISTVERSION= 3.0.1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Tiny and efficient C++/Python bindings (C++ version) WWW= https://nanobind.readthedocs.io/en/latest/ \ https://github.com/wjakob/nanobind LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= robin-map>0:devel/robin-map RUN_DEPENDS= robin-map>0:devel/robin-map TEST_DEPENDS= eigen>0:math/eigen3 \ gmake:devel/gmake \ pytest:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jax>0:math/py-jax@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} # ${PYTHON_PKGNAMEPREFIX}tensorflow>0:science/py-tensorflow@${PY_FLAVORA} # tensorflow tests crash the python process USES= cmake:testing localbase python:test USE_GITHUB= yes GH_ACCOUNT= wjakob CMAKE_ARGS= -DNB_INSTALL_DATADIR=${PREFIX} CMAKE_ON= NB_CREATE_INSTALL_RULES CMAKE_OFF= NB_USE_SUBMODULE_DEPS \ NB_TEST_FREE_THREADED \ NB_TEST \ CMAKE_SKIP_INSTALL_RULES CMAKE_TESTING_ON= NB_TEST CMAKE_TESTING_TARGET= copy-tests CXXFLAGS+= -I${WRKSRC}/include \ -I${PYTHON_INCLUDEDIR} INSTALL_TARGET= install TEST_WRKSRC= ${BUILD_WRKSRC}/tests NO_ARCH= yes post-install: # workaround for https://github.com/wjakob/nanobind/issues/1300 @${RM} \ ${STAGEDIR}${PREFIX}/cmake/darwin-ld-cpython.sym \ ${STAGEDIR}${PREFIX}/cmake/darwin-ld-pypy.sym \ ${STAGEDIR}${PREFIX}/cmake/darwin-python-path.py # correct path to the src directory in cmake file @${REINPLACE_CMD} -i '' -e 's|$${NB_DIR}/src/|${DATADIR}/src/|g' \ ${STAGEDIR}${PREFIX}/cmake/nanobind-config.cmake post-test: @cd ${TEST_WRKSRC} && \ pytest . -# tests as of 2.12.0: -# Results (41.59s): -# 2 failed -# 1486 passed -# 19 skipped -# 2 warnings +# tests as of 3.0.1: +# Results (46.19s): +# 610 passed +# 1 failed +# - test_inter_module.py:26 test02_reload_module +# 92 skipped # cmake installs files into non-standard locations, see https://github.com/wjakob/nanobind/issues/810 # hostile upstream, do not create bug reports .include diff --git a/devel/nanobind/distinfo b/devel/nanobind/distinfo index 3bb0b5dde8b6..55ac7d5a6a65 100644 --- a/devel/nanobind/distinfo +++ b/devel/nanobind/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1781768189 -SHA256 (wjakob-nanobind-v2.13.0_GH0.tar.gz) = cb25a582ccade4b6067bc73c78b84ad9dbd0bbe0e537320711d18015ccafc4ef -SIZE (wjakob-nanobind-v2.13.0_GH0.tar.gz) = 989569 +TIMESTAMP = 1789104380 +SHA256 (wjakob-nanobind-v3.0.1_GH0.tar.gz) = 34ded7cf2292f08a92c45490a095e76334a57751bbae03a8c83241803bf19623 +SIZE (wjakob-nanobind-v3.0.1_GH0.tar.gz) = 1080674 diff --git a/devel/nanobind/files/patch-cmake_nanobind-config.cmake b/devel/nanobind/files/patch-cmake_nanobind-config.cmake new file mode 100644 index 000000000000..2b1d48319810 --- /dev/null +++ b/devel/nanobind/files/patch-cmake_nanobind-config.cmake @@ -0,0 +1,20 @@ +-- remove -mtls-dialect=gnu2 since it breaks generated binaries +-- and they can't be loaded with unknown relocation entry types + +--- cmake/nanobind-config.cmake.orig 2026-09-11 05:35:01 UTC ++++ cmake/nanobind-config.cmake +@@ -108,10 +108,10 @@ set(NB_OPT_SIZE $,$