summaryrefslogtreecommitdiff
path: root/dev-python/pyalsa
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-09 18:44:29 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-09 18:44:29 +0000
commitdc41efad78c64df9b74ed6f94dcf25391b8fc5e1 (patch)
tree0e9943dbba2f7bc3f723f1e68720b1500c61ac94 /dev-python/pyalsa
parent20d4435a7d9459953db77f3256f699f420d3e484 (diff)
gentoo auto-resync : 09:03:2024 - 18:44:28
Diffstat (limited to 'dev-python/pyalsa')
-rw-r--r--dev-python/pyalsa/Manifest1
-rw-r--r--dev-python/pyalsa/pyalsa-1.2.7-r1.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/pyalsa/Manifest b/dev-python/pyalsa/Manifest
index a16ce662da56..9dca7b379445 100644
--- a/dev-python/pyalsa/Manifest
+++ b/dev-python/pyalsa/Manifest
@@ -1,4 +1,5 @@
AUX pyalsa-1.1.6-no-build-symlinks.patch 682 BLAKE2B 046f4cffa0b08a32360356d82384148b805544b6f05e44ec329bef2299b67e46c68401b800761e9dff2141b22bc029a55fd5cf01cd5cdb533303aef91a2bbe0f SHA512 fd3937df5a69326908da942a8926e10221bb85693c863cc06ca363ca8fb07761173d2b51113615970887442d8779b2e9ff468b927b078acf52620e944b71b779
DIST pyalsa-1.2.7.tar.bz2 40132 BLAKE2B c100d16bd8c0d9fc6eddcda360f3582c55ed1b143a58a49caf76a62494882952d311271941ce0ecdf57ac934f3564dc922c80e8a5f5742b593341ff4215b700c SHA512 126501fe7b9c006f28e9290bdd3ad907ea9e053b71e21e2c6f0b0beeecdba07b4b557014041b03452f96be690f59f2e647e075487ee87054f21f66df7f39b34b
+EBUILD pyalsa-1.2.7-r1.ebuild 1119 BLAKE2B bc2399e4c75be81c7c86d623135e879d5cce3b7f63b5236569312de7daa2604ca1c0dcb6a85d2a98845a58fb5ab0ab08d1255bca2ab56a32398c95cf8dead2c6 SHA512 39f136d6c57144b9995ef2f6096a97c69c5d27b7eacd5063a689eb2d45f28c2216567b975fadafaccfb8100eeee86e79286d6fa8281f1e971da1e76386f44a55
EBUILD pyalsa-1.2.7.ebuild 980 BLAKE2B f27d5b3de6b41fc70fb4e1764c4e02ff09190a3afd43f9f41baafccf965260b78c47d4073a67abb3917e274cc80ac8f6f91073b820c53ad2e7d8132df322ad93 SHA512 6a52512e4c9a2af5199749e894b4bc8daeefd96cf13a7ecd6ebeaaf15a5a12685bff87e986e4637e760f73ffdd1ffbcba5a89438961c4fdaf3c339be1413bd1f
MISC metadata.xml 491 BLAKE2B b44d13fa5ffd8b1eceaedbfd6b4fa564d93b99be45dec176817a9665153988d6a91f892edab698e50d2ae761edc7ec11371fa07ef3dd6976977c7dd84f9ba9ae SHA512 bbafa414b3416db7abb27921ce74d532f4b16f145a91f46075be9abaf6cf46017e8cd17c61fa019c662fc93ff9286747822b4ec8f6d19f69857cc3221e3f9a25
diff --git a/dev-python/pyalsa/pyalsa-1.2.7-r1.ebuild b/dev-python/pyalsa/pyalsa-1.2.7-r1.ebuild
new file mode 100644
index 000000000000..3d8bf8f0ae68
--- /dev/null
+++ b/dev-python/pyalsa/pyalsa-1.2.7-r1.ebuild
@@ -0,0 +1,55 @@
+# 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
+# py3.12: https://github.com/alsa-project/alsa-python/issues/8
+PYTHON_COMPAT=( python3_{10..11} )
+
+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}]
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.1.6-no-build-symlinks.patch"
+)
+
+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
+}