mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
Result of running the command: grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
51 lines
982 B
Bash
51 lines
982 B
Bash
# Copyright 1999-2025 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 ~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
|
|
}
|