1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

audio/py-soxr: update 0.4.0 → 0.5.0

Reported by:	portscout
This commit is contained in:
Yuri Victorovich 2024-09-17 08:14:12 -07:00
parent 18a4eb5b7b
commit 69041ba06c
4 changed files with 8 additions and 45 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= soxr
DISTVERSION= 0.4.0
DISTVERSION= 0.5.0
CATEGORIES= audio python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -14,9 +14,10 @@ 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} \
cmake:devel/cmake-core \
${PYTHON_PKGNAMEPREFIX}nanobind>0:devel/py-nanobind@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scikit-build-core>=0.9.0:devel/py-scikit-build-core@${PY_FLAVOR} \
${PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYNUMPY}
@ -25,7 +26,7 @@ USE_PYTHON= pep517 autoplist pytest
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
xpost-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

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1721972280
SHA256 (soxr-0.4.0.tar.gz) = 02385e3de07e28ddbc19ab41216075d889575895e778ce2ada950d5f46cf6a52
SIZE (soxr-0.4.0.tar.gz) = 300434
TIMESTAMP = 1726596269
SHA256 (soxr-0.5.0.tar.gz) = 6db338bbb01b73ad31534dd48e1b1eafa767714223f7d403c7633c987bdbd719
SIZE (soxr-0.5.0.tar.gz) = 170686

View File

@ -1,18 +0,0 @@
--- pyproject.toml.orig 2024-07-25 13:58:38 UTC
+++ pyproject.toml
@@ -2,13 +2,13 @@ requires = [
requires = [
"setuptools>=42",
"wheel",
- "Cython>=3.0a7",
+ "Cython",
"setuptools_scm[toml]>=6.2",
# 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"

View File

@ -1,20 +0,0 @@
- workaround for https://github.com/dofuuz/python-soxr/issues/25
--- setup.py.orig 2024-07-25 13:58:38 UTC
+++ setup.py
@@ -122,12 +122,13 @@ if '-arm' in platform:
platform = sysconfig.get_platform()
if '-arm' in platform:
- compile_args.append('-mfpu=neon')
+ #compile_args.append('-mfpu=neon')
+ pass
elif '-i686' in platform:
compile_args.append('-msse')
if get_default_compiler() in ['unix', 'mingw32']:
- compile_args += ['-std=gnu99', '-Werror=implicit']
+ compile_args += ['-std=gnu99']
extensions = [
CySoxrExtension(