From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/pyaudio/Manifest | 1 + dev-python/pyaudio/metadata.xml | 20 +++++++++++++++ dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild | 39 +++++++++++++++++++++++++++++ dev-python/pyaudio/pyaudio-0.2.11.ebuild | 36 ++++++++++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 dev-python/pyaudio/Manifest create mode 100644 dev-python/pyaudio/metadata.xml create mode 100644 dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild create mode 100644 dev-python/pyaudio/pyaudio-0.2.11.ebuild (limited to 'dev-python/pyaudio') diff --git a/dev-python/pyaudio/Manifest b/dev-python/pyaudio/Manifest new file mode 100644 index 000000000000..e9c29753003d --- /dev/null +++ b/dev-python/pyaudio/Manifest @@ -0,0 +1 @@ +DIST PyAudio-0.2.11.tar.gz 37428 BLAKE2B 18db51a651876135a6afc6c8c60e2221017a311fe1aec10497905bc35b81a73b5e9f27201431566bac3d13bcf582ec12a3b818c51f0e5e70aeb4ad177608461a SHA512 64db5542ee60837c9b07677e146fc7b060ff47c8b1c04cbb575bce79dd3ed4776c201e169ff2860f27dbe9e00a77046ba0cb925b55f7c546f8de46c6df68954e diff --git a/dev-python/pyaudio/metadata.xml b/dev-python/pyaudio/metadata.xml new file mode 100644 index 000000000000..b2f573dfb8e4 --- /dev/null +++ b/dev-python/pyaudio/metadata.xml @@ -0,0 +1,20 @@ + + + + + gentoo.2019@r123.de + Robert Siebeck + + + proxy-maint@gentoo.org + Proxy Maintainers + + + PyAudio provides Python bindings for PortAudio (media-libs/portaudio), + the cross-platform audio I/O library. + + + PyAudio + + gentoo-staging + diff --git a/dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild b/dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild new file mode 100644 index 000000000000..ec8e831d71f5 --- /dev/null +++ b/dev-python/pyaudio/pyaudio-0.2.11-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 + +MY_PN="PyAudio" + +DESCRIPTION="Python bindings for PortAudio" +HOMEPAGE="http://people.csail.mit.edu/hubert/pyaudio/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Tests work if you have the correct HW device(s) to test. 0.2.11-r1. +RESTRICT="test" + +RDEPEND="media-libs/portaudio" +DEPEND="${RDEPEND} + test? ( dev-python/numpy )" + +distutils_enable_sphinx sphinx +distutils_enable_tests unittest + +python_test() { + elog "These tests require an OS loopback sound device that forwards audio" + elog "output, generated by PyAudio for playback, and forwards it to an input" + elog "device, which PyAudio can record and verify against a test signal." + + cd tests || die + # pyaudio_tests have very complicated runtime requirements, therefore skipping them. + "${EPYTHON}" -m unittest error_tests -v || + die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/pyaudio/pyaudio-0.2.11.ebuild b/dev-python/pyaudio/pyaudio-0.2.11.ebuild new file mode 100644 index 000000000000..248a4891ebc4 --- /dev/null +++ b/dev-python/pyaudio/pyaudio-0.2.11.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +MY_PN="PyAudio" + +DESCRIPTION="Python bindings for PortAudio" +HOMEPAGE="http://people.csail.mit.edu/hubert/pyaudio/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc" + +RDEPEND="media-libs/portaudio" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx )" + +S=${WORKDIR}/PyAudio-${PV} + +src_compile() { + distutils-r1_src_compile + use doc && emake docs +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/. ) + distutils-r1_python_install_all +} -- cgit v1.3.1