From 615bbee610c52afb19b2971ae8da83fe3d95d528 Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Sun, 26 Mar 2023 21:41:17 -0700 Subject: [PATCH] dev-python/soxr: add 0.3.4 --- dev-python/soxr/Manifest | 4 +-- dev-python/soxr/soxr-0.3.4.ebuild | 52 +++++++++++++++++++++++++++++++ dev-python/soxr/soxr-9999.ebuild | 7 +++-- 3 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 dev-python/soxr/soxr-0.3.4.ebuild diff --git a/dev-python/soxr/Manifest b/dev-python/soxr/Manifest index 746538c..1b413e4 100644 --- a/dev-python/soxr/Manifest +++ b/dev-python/soxr/Manifest @@ -1,4 +1,2 @@ DIST soxr-0.3.2.gh.tar.gz 22550 BLAKE2B 2ed2ab4be23d42551a7bf47dd21b354b8a7a5ebfb118dddb2b93de3b9f18791e227119e92a560cf9cb4726138221be6f1819cc87aa58d6ea39c87548de3d4b9f SHA512 7e9fd8c8885717abe7fe5f6705c2ffc61bd38a3eadd1fd1a189b1bae0e13122765679a198a9fb0bece188b0cccb387a2c647c8fca832bfac6a91547dbd0eb198 -EBUILD soxr-0.3.2.ebuild 1122 BLAKE2B 96542408fa9f7c3e2951c47c35b55794c6fbc04b589feeb2a970794d57a389a1c8a61df2bfd6f75112f9a5ae11dc5c454ec113f6477916798f0347e1e30201e0 SHA512 735b77bd4adf4a026d8e59efdbad71b76b978df456ee21ac425f31d6ca18829171da0c16ec077f5af47a7c363bb7d8317b3ab81379359e032ab27c8460233409 -EBUILD soxr-9999.ebuild 1122 BLAKE2B 96542408fa9f7c3e2951c47c35b55794c6fbc04b589feeb2a970794d57a389a1c8a61df2bfd6f75112f9a5ae11dc5c454ec113f6477916798f0347e1e30201e0 SHA512 735b77bd4adf4a026d8e59efdbad71b76b978df456ee21ac425f31d6ca18829171da0c16ec077f5af47a7c363bb7d8317b3ab81379359e032ab27c8460233409 -MISC metadata.xml 367 BLAKE2B ac830f3b16c5096f88487aef48f4596923256d0c79072142b1618cba27bc094a60431082f34596eb764671378d928234f54316e85b7d468820cc71b4f4c93dd5 SHA512 11b2743e67b1dd8651337a570b8524f30419956b164b043a65ff88bfee362dcb7d85ac713cf2ab51f4a1da6a98680e73a0b636098dbf22ea96f2eb870c74568b +DIST soxr-0.3.4.gh.tar.gz 22664 BLAKE2B 0b8715ac0ff5e65302c773137d2e9e83dd0a7c5ac12a6d12d13168e639aae1d4f35a3dd5f1fb8d584ff1f285fed4f2bd10e2f26eb0b22c81209a91c13e7531ec SHA512 5ea3f5eb5c9a012987d070a97a83bc0077aea5056e5a0b0fc08bebedb07233bb144c2ac496c4df2468d60ad5d399f90b42c9318bd7ca89d6bd9eaaa67f780b76 diff --git a/dev-python/soxr/soxr-0.3.4.ebuild b/dev-python/soxr/soxr-0.3.4.ebuild new file mode 100644 index 0000000..a915ae2 --- /dev/null +++ b/dev-python/soxr/soxr-0.3.4.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 diff --git a/dev-python/soxr/soxr-9999.ebuild b/dev-python/soxr/soxr-9999.ebuild index 6d694dc..a915ae2 100644 --- a/dev-python/soxr/soxr-9999.ebuild +++ b/dev-python/soxr/soxr-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -30,7 +30,10 @@ RDEPEND=" ${DEPEND} dev-python/numpy[${PYTHON_USEDEP}] " -BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" src_configure() { DISTUTILS_ARGS=( --use-system-libsoxr )