diff --git a/dev-python/soxr/Manifest b/dev-python/soxr/Manifest index 7a7550e..5e0c319 100644 --- a/dev-python/soxr/Manifest +++ b/dev-python/soxr/Manifest @@ -1 +1,2 @@ DIST soxr-0.3.4.gh.tar.gz 22664 BLAKE2B 0b8715ac0ff5e65302c773137d2e9e83dd0a7c5ac12a6d12d13168e639aae1d4f35a3dd5f1fb8d584ff1f285fed4f2bd10e2f26eb0b22c81209a91c13e7531ec SHA512 5ea3f5eb5c9a012987d070a97a83bc0077aea5056e5a0b0fc08bebedb07233bb144c2ac496c4df2468d60ad5d399f90b42c9318bd7ca89d6bd9eaaa67f780b76 +DIST soxr-0.3.5.gh.tar.gz 22771 BLAKE2B 5a516ef1738130c736b88b1eb27ed855fd65916061d2b6c3ea0f5285e2c82fd37b527bed2dfb557c303e495a5e0f9f6351f7e706cd8daf938e5cd8b7b4e824b4 SHA512 400bf1b79f8177627acef19751d52c890e2352b1bb65b05514a17e356753b268610a670adc7ec52afaaac10befa4ed9d5a28bbf2561075ed0f22abacc3cf48f3 diff --git a/dev-python/soxr/soxr-0.3.5.ebuild b/dev-python/soxr/soxr-0.3.5.ebuild new file mode 100644 index 0000000..a915ae2 --- /dev/null +++ b/dev-python/soxr/soxr-0.3.5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dofuuz/python-soxr.git" + EGIT_SUBMODULES=() +else + MY_PN="python-soxr" + MY_P="${MY_PN}-${PV}" + S="${WORKDIR}/${MY_P}" + SRC_URI="https://github.com/dofuuz/python-soxr/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Resampling library for Python" +HOMEPAGE="https://github.com/dofuuz/python-soxr" +LICENSE="LGPL-2.1" +SLOT="0" + +DEPEND="media-libs/soxr" +RDEPEND=" + ${DEPEND} + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" + +src_configure() { + DISTUTILS_ARGS=( --use-system-libsoxr ) +} + +python_prepare_all() { + # https://github.com/cython/cython/issues/3783 + sed -i 's/const datatype_t/datatype_t/g' "${S}/src/soxr/cysoxr.pyx" + distutils-r1_python_prepare_all +} + +python_compile() { + SETUPTOOLS_SCM_PRETEND_VERSION="${PV}" distutils-r1_python_compile +} + +distutils_enable_tests pytest