1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{7,8} )
8 inherit distutils-r1 virtualx xdg-utils
10 DESCRIPTION="Cross-platform windowing and multimedia library for Python"
11 HOMEPAGE="http://www.pyglet.org/"
12 SRC_URI="https://github.com/pyglet/pyglet/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 IUSE="examples image +sound test"
18 RESTRICT="!test? ( test )"
23 dev-python/pillow[${PYTHON_USEDEP}]
28 media-sound/pulseaudio
31 # ffmpeg? ( media-libs/avbin-bin )
35 dev-python/pillow[${PYTHON_USEDEP}]
36 dev-python/pytest[${PYTHON_USEDEP}]
40 # pyglet.gl.glx_info.GLXInfoException: pyglet requires an X server with GLX
41 # Other tests fail or stall for unknown reasons.
53 run_in_build_dir virtx pytest -v "${S}"/tests
56 python_install_all() {
59 docompress -x /usr/share/doc/${PF}/examples
62 distutils-r1_python_install_all