dev-python/soxr: new package, add 0.3.2, 9999
This commit is contained in:
parent
9e1c02b2d0
commit
8b7dbd522f
4
dev-python/soxr/Manifest
Normal file
4
dev-python/soxr/Manifest
Normal file
|
@ -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
|
12
dev-python/soxr/metadata.xml
Normal file
12
dev-python/soxr/metadata.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>flewkey@2a03.party</email>
|
||||
<name>Ryan Fox</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">soxr</remote-id>
|
||||
<remote-id type="github">dofuuz/python-soxr</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
49
dev-python/soxr/soxr-0.3.2.ebuild
Normal file
49
dev-python/soxr/soxr-0.3.2.ebuild
Normal file
|
@ -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
|
49
dev-python/soxr/soxr-9999.ebuild
Normal file
49
dev-python/soxr/soxr-9999.ebuild
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user