summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-06-12 04:38:50 +0100
committerSam James <sam@gentoo.org>2024-06-12 04:48:02 +0100
commit3c422e05a3bdcdb31f8524f37ed9230e32078f52 (patch)
treeb3332fd2f8aa76ca1082a296aa37967cea76feda /dev-python/pyalsa
parentdev-util/ctags: add 20240609.0 (diff)
downloadgentoo-3c422e05a3bdcdb31f8524f37ed9230e32078f52.tar.gz
gentoo-3c422e05a3bdcdb31f8524f37ed9230e32078f52.tar.bz2
gentoo-3c422e05a3bdcdb31f8524f37ed9230e32078f52.zip
dev-python/pyalsa: add 1.2.12
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/pyalsa')
-rw-r--r--dev-python/pyalsa/Manifest1
-rw-r--r--dev-python/pyalsa/pyalsa-1.2.12.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pyalsa/Manifest b/dev-python/pyalsa/Manifest
index 132834427a65..604a0c75bfa4 100644
--- a/dev-python/pyalsa/Manifest
+++ b/dev-python/pyalsa/Manifest
@@ -1 +1,2 @@
+DIST pyalsa-1.2.12.tar.bz2 40133 BLAKE2B 50e4cff2d4fccdf8fd62cb379c08f55f8229b20cb51ac8c89c6ba84214663992748fc9c3555b4242457348dfc877280754f1574eaffb8c9cbc4e82d376d6660c SHA512 9073cb9a1fc6ad04bafa368435e45dd6c8506e14f0e594f02f7d2b7e06c72b8af9babf08cfead57a940a9ebde4548edf608196fea56089fe8d1300a04f573151
DIST pyalsa-1.2.7.tar.bz2 40132 BLAKE2B c100d16bd8c0d9fc6eddcda360f3582c55ed1b143a58a49caf76a62494882952d311271941ce0ecdf57ac934f3564dc922c80e8a5f5742b593341ff4215b700c SHA512 126501fe7b9c006f28e9290bdd3ad907ea9e053b71e21e2c6f0b0beeecdba07b4b557014041b03452f96be690f59f2e647e075487ee87054f21f66df7f39b34b
diff --git a/dev-python/pyalsa/pyalsa-1.2.12.ebuild b/dev-python/pyalsa/pyalsa-1.2.12.ebuild
new file mode 100644
index 000000000000..58b911af0ced
--- /dev/null
+++ b/dev-python/pyalsa/pyalsa-1.2.12.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for ALSA library"
+HOMEPAGE="https://alsa-project.org/wiki/Main_Page"
+SRC_URI="https://www.alsa-project.org/files/pub/pyalsa/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+# Needs access to system's alsa configuration/devices
+RESTRICT="test"
+
+DEPEND="
+ media-libs/alsa-lib
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+python_test() {
+ cd "${T}" || die
+
+ shopt -s nullglob
+ local test
+ local failed
+ for test in "${S}"/test/*.py ; do
+ ${EPYTHON} "${test}" || {
+ eerror "${test} failed with ${EPYTHON}"
+ failed=1
+ break
+ }
+ done
+ shopt -u nullglob
+
+ if [[ ${failed} -eq 1 ]] ; then
+ die "${test} failed with ${EPYTHON}"
+ fi
+}