diff --git a/science/py-dwave-preprocessing/Makefile b/science/py-dwave-preprocessing/Makefile index d146d70e12b4..66e04f7f77f0 100644 --- a/science/py-dwave-preprocessing/Makefile +++ b/science/py-dwave-preprocessing/Makefile @@ -1,38 +1,39 @@ PORTNAME= dwave-preprocessing -DISTVERSION= 0.5.2 +DISTVERSION= 0.5.4 CATEGORIES= science python # quantum-computing PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= DWave: Preprocessing tools to aid in solving binary quadratic models WWW= https://github.com/dwavesystems/dwave-preprocessing LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>0:science/py-dimod@${PY_FLAVOR} \ +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>=0.12.2:science/py-dimod@${PY_FLAVOR} \ ${PYNUMPY} BUILD_DEPENDS= ${PY_DEPENDS} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0.30.0:devel/py-wheel@${PY_FLAVOR} +LIB_DEPENDS= libspdlog.so:devel/spdlog RUN_DEPENDS= ${PY_DEPENDS} -USES= python:3.7+ -USE_PYTHON= distutils cython unittest +USES= localbase:ldflags python:3.7+ +USE_PYTHON= distutils cython unittest # 1 test fails, see https://github.com/dwavesystems/dwave-preprocessing/issues/74 USE_GITHUB= yes GH_ACCOUNT= dwavesystems TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/tests post-install: # strip binaries @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/preprocessing/cyfix_variables${PYTHON_EXT_SUFFIX}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/preprocessing/presolve/cypresolve${PYTHON_EXT_SUFFIX}.so # remove conflicting __init__.py, see https://github.com/dwavesystems/dwave-preprocessing/issues/45 @${RM} -r \ ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/__init__.py \ ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/__pycache__ .include diff --git a/science/py-dwave-preprocessing/distinfo b/science/py-dwave-preprocessing/distinfo index 9a51e1da7352..00656393515d 100644 --- a/science/py-dwave-preprocessing/distinfo +++ b/science/py-dwave-preprocessing/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1668294419 -SHA256 (dwavesystems-dwave-preprocessing-0.5.2_GH0.tar.gz) = 07f80f4e8ede2f22d65a94711ca98fc41ce76c2825a917b0f70b8c6eeb569db7 -SIZE (dwavesystems-dwave-preprocessing-0.5.2_GH0.tar.gz) = 101675 +TIMESTAMP = 1671954380 +SHA256 (dwavesystems-dwave-preprocessing-0.5.4_GH0.tar.gz) = 864ec18a8f14a83f0439d3cb6a9006c0d9577012f2cab14b622dc715bac17b24 +SIZE (dwavesystems-dwave-preprocessing-0.5.4_GH0.tar.gz) = 104138 diff --git a/science/py-dwave-preprocessing/files/patch-setup.py b/science/py-dwave-preprocessing/files/patch-setup.py new file mode 100644 index 000000000000..eb472512857e --- /dev/null +++ b/science/py-dwave-preprocessing/files/patch-setup.py @@ -0,0 +1,10 @@ +--- setup.py.orig 2022-12-25 07:50:44 UTC ++++ setup.py +@@ -26,6 +26,7 @@ extra_compile_args = { + 'msvc': ['/std:c++17', '/EHsc'], + 'unix': [ + '-std=c++17', ++ '-DSPDLOG_FMT_EXTERNAL=1', + ], + } +