diff --git a/audio/py-soxr/Makefile b/audio/py-soxr/Makefile index 234c50319aaf..6da19fc95276 100644 --- a/audio/py-soxr/Makefile +++ b/audio/py-soxr/Makefile @@ -1,33 +1,34 @@ PORTNAME= soxr -DISTVERSION= 0.3.7 +DISTVERSION= 0.4.0 CATEGORIES= audio python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= High quality, one-dimensional sample-rate conversion library WWW= https://github.com/dofuuz/python-soxr LICENSE= LGPL21 BSD3CLAUSE LICENSE_COMB= multi BROKEN_i386= fails to compile: ...requires target feature 'sse', but would be inlined into function 'h8' that is compiled without support for 'sse' BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYNUMPY} \ ${PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} USES= python -USE_PYTHON= pep517 cython autoplist pytest +USE_PYTHON= pep517 autoplist pytest TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-install: # strip binary @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/soxr/cysoxr${PYTHON_EXT_SUFFIX}.so # correct version as a workaround for https://github.com/dofuuz/python-soxr/issues/21 @${REINPLACE_CMD} -i '' -e 's|^version |__version__ |' ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/soxr/_version.py .include diff --git a/audio/py-soxr/distinfo b/audio/py-soxr/distinfo index 68af8d2757df..447956378981 100644 --- a/audio/py-soxr/distinfo +++ b/audio/py-soxr/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1704347538 -SHA256 (soxr-0.3.7.tar.gz) = 436ddff00c6eb2c75b79c19cfdca7527b1e31b5fad738652f044045ba6258593 -SIZE (soxr-0.3.7.tar.gz) = 296432 +TIMESTAMP = 1721972280 +SHA256 (soxr-0.4.0.tar.gz) = 02385e3de07e28ddbc19ab41216075d889575895e778ce2ada950d5f46cf6a52 +SIZE (soxr-0.4.0.tar.gz) = 300434 diff --git a/audio/py-soxr/files/patch-pyproject.toml b/audio/py-soxr/files/patch-pyproject.toml index 95bdf298019f..ac0da150892d 100644 --- a/audio/py-soxr/files/patch-pyproject.toml +++ b/audio/py-soxr/files/patch-pyproject.toml @@ -1,14 +1,18 @@ ---- pyproject.toml.orig 2023-08-15 13:45:59 UTC +--- pyproject.toml.orig 2024-07-25 13:58:38 UTC +++ pyproject.toml -@@ -2,9 +2,9 @@ +@@ -2,13 +2,13 @@ requires = [ requires = [ "setuptools>=42", "wheel", - "Cython>=3.0a7", + "Cython", "setuptools_scm[toml]>=6.2", -- "oldest-supported-numpy" + # Note for packagers: this constraint is specific to wheels + # for PyPI; it is also supported to build against 1.xx still. + # If you do so, please ensure to include a `numpy<2.0` + # runtime requirement for those binary packages. +- "numpy>=2.0.0rc1" + "numpy" ] build-backend = "setuptools.build_meta"