diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2021-10-04 17:19:26 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-10-04 17:21:46 +0300 |
commit | 271ccf11f2a6af294c41f01e27decd1da00cb8f5 (patch) | |
tree | 9f787fe7b79b5c1039b3ef744fc9c389d49f555d /dev-python/pgzero | |
parent | dev-python/pygame: enable py3.10 (diff) | |
download | gentoo-271ccf11f2a6af294c41f01e27decd1da00cb8f5.tar.gz gentoo-271ccf11f2a6af294c41f01e27decd1da00cb8f5.tar.bz2 gentoo-271ccf11f2a6af294c41f01e27decd1da00cb8f5.zip |
dev-python/pgzero: enable py3.10, cleanup ebuild
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/pgzero')
-rw-r--r-- | dev-python/pgzero/pgzero-1.2.1-r1.ebuild | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/dev-python/pgzero/pgzero-1.2.1-r1.ebuild b/dev-python/pgzero/pgzero-1.2.1-r1.ebuild index abeeb71b78ed..fe32cc7764fa 100644 --- a/dev-python/pgzero/pgzero-1.2.1-r1.ebuild +++ b/dev-python/pgzero/pgzero-1.2.1-r1.ebuild @@ -3,16 +3,18 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8,9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 -distutils_enable_tests unittest MY_PV="${PV/_p/.post}" MY_P="${PN}-${MY_PV}" + DESCRIPTION="A zero-boilerplate games programming framework based on Pygame" HOMEPAGE="https://pygame-zero.readthedocs.io/" SRC_URI="https://github.com/lordmauve/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64" @@ -22,15 +24,16 @@ RDEPEND=" dev-python/pygame[${PYTHON_USEDEP}] " -DEPEND=" - ${RDEPEND} +BDEPEND=" test? ( media-libs/sdl2-image[png] media-libs/sdl2-mixer[vorbis] ) " +distutils_enable_tests unittest -S="${WORKDIR}/${MY_P}" - -# Allow the tests to pass without real audio or video. -export SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy +python_test() { + # Allow the tests to pass without real audio or video. + local -x SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy + eunittest +} |