From 8b7dbd522f941ed5ee5b9aeeab9190073604ba6e Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Sun, 2 Oct 2022 11:53:50 -0700 Subject: [PATCH] dev-python/soxr: new package, add 0.3.2, 9999 --- dev-python/soxr/Manifest | 4 +++ dev-python/soxr/metadata.xml | 12 ++++++++ dev-python/soxr/soxr-0.3.2.ebuild | 49 +++++++++++++++++++++++++++++++ dev-python/soxr/soxr-9999.ebuild | 49 +++++++++++++++++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 dev-python/soxr/Manifest create mode 100644 dev-python/soxr/metadata.xml create mode 100644 dev-python/soxr/soxr-0.3.2.ebuild create mode 100644 dev-python/soxr/soxr-9999.ebuild diff --git a/dev-python/soxr/Manifest b/dev-python/soxr/Manifest new file mode 100644 index 0000000..746538c --- /dev/null +++ b/dev-python/soxr/Manifest @@ -0,0 +1,4 @@ +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 diff --git a/dev-python/soxr/metadata.xml b/dev-python/soxr/metadata.xml new file mode 100644 index 0000000..02aa8f3 --- /dev/null +++ b/dev-python/soxr/metadata.xml @@ -0,0 +1,12 @@ + + + + + flewkey@2a03.party + Ryan Fox + + + soxr + dofuuz/python-soxr + + diff --git a/dev-python/soxr/soxr-0.3.2.ebuild b/dev-python/soxr/soxr-0.3.2.ebuild new file mode 100644 index 0000000..6d694dc --- /dev/null +++ b/dev-python/soxr/soxr-0.3.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 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}]" + +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 new file mode 100644 index 0000000..6d694dc --- /dev/null +++ b/dev-python/soxr/soxr-9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 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}]" + +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