diff options
Diffstat (limited to 'dev-python/pgzero')
-rw-r--r-- | dev-python/pgzero/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pgzero/pgzero-1.2.1-r1.ebuild | 19 |
2 files changed, 12 insertions, 9 deletions
diff --git a/dev-python/pgzero/Manifest b/dev-python/pgzero/Manifest index e147f1b58efb..b67baf92571a 100644 --- a/dev-python/pgzero/Manifest +++ b/dev-python/pgzero/Manifest @@ -1,3 +1,3 @@ DIST pgzero-1.2.1.tar.gz 2503205 BLAKE2B 616129da20cc5db67bfe826816bd454a76016d80a155296bbbe8e6febbb48aa2070fac1701b22ce7a522597f85b2e272151828f9dfbac367e33e3e0b35e9d260 SHA512 7988d114f6c037fe5ef4690ded878c63f73589e56fb7f79fa3604a7b4bc8433d75aabb80229159921a3dd6af4e3fe6740520a33f2a6b29aba034a63e6e154c33 -EBUILD pgzero-1.2.1-r1.ebuild 814 BLAKE2B 345375234b1dd048c90e2a856b729ff6d136721b461d4eef8b5173f94af741b6607444459f11144b379adcc90f8dd70716f8875610d4576ceb1599ddd446c583 SHA512 3ea463ecd72c1a92a2b2ba7093c6f86c98ec6ca71142b5551f9e5b19b812904aa9d36a03b1c4eb90e7c178ffda3a334cd5c0c6d8442a7b703829afa40a38252e +EBUILD pgzero-1.2.1-r1.ebuild 839 BLAKE2B 04f2074c80d38a9b1fccc5dd3fd8b7cfff29c8bd1fdedb61f4093f857789684b011c2dbb0c2299c04793d664e9d1f455e096e24b4f9e54df1ab96625be26ccee SHA512 70def9b9cba8b3db00f5514f6731e07bf6c69c6c761cfaf8865f070108ba3dcf36f1723be4eccaafafa21b1b476f5befe24d7f63109f34c79f277df9f73c386c MISC metadata.xml 373 BLAKE2B 283390d9823aff5b03d6338acbe36718260ffcb64b0d46d1ac81e764b90c445d25daec60939a21b95aa769cf5b8f6a50971a625dcbae896dfa3f1094a7d50cb2 SHA512 7852f071fa301d7973072e7fe8c27c154567e75a66cb5f35d056f5b23a1fb7f259540b98e2e76ccd1114224e3121190944fa3762cc7888684c70c856230e4460 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 +} |