diff options
| author | Michał Górny <mgorny@gentoo.org> | 2021-08-07 08:07:59 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2021-08-07 08:33:27 +0200 |
| commit | 2c0bea040755fee112b0d0b2c57bce0ca4850e30 (patch) | |
| tree | e52a1fab8d53177396335837787876fae309c090 /dev-python/PySDL2 | |
| parent | 1ca5b5f0f4fc3e711b50cbbdab181b6d1cdd9763 (diff) | |
| download | gentoo-2c0bea040755fee112b0d0b2c57bce0ca4850e30.tar.gz gentoo-2c0bea040755fee112b0d0b2c57bce0ca4850e30.tar.bz2 gentoo-2c0bea040755fee112b0d0b2c57bce0ca4850e30.zip | |
dev-python/PySDL2: Bump to 0.9.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/PySDL2')
| -rw-r--r-- | dev-python/PySDL2/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/PySDL2/PySDL2-0.9.8.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest index b485746b0176..c12a1859fddb 100644 --- a/dev-python/PySDL2/Manifest +++ b/dev-python/PySDL2/Manifest @@ -1 +1,2 @@ DIST PySDL2-0.9.7.tar.gz 1079253 BLAKE2B 986a21d8c2f4f45df683d85a8369be7b39f102e59a1b3fd37e2941065a1174d5cd6dd056f78fbc66663e2cf50228ee40abf67352e5ae75176a9c000fb6f672fb SHA512 10d40063762272eaaae1cb6290e007481887806938ba0ba17d28974a3a3c8b36570054587001d00eb9ab4aa2375c616c43a81c7e7308fbb9b61b55b3eb7da5ac +DIST PySDL2-0.9.8.tar.gz 742279 BLAKE2B 403fba93f446f6eeb8c3b365f02207e5447c4fc16a08835ef81a1846491a4a3745ea1b7694f3b5ec3e7058975f33c20885065a4521f50aaf5c290728dbac9dd0 SHA512 674af175b1c5bd9b4100f94738c41b9b5517d2d536a7d6f7a356aafa81b67bce8349c74c166ae9289b8f746a9a16c785f88595bc48399d834d62af5355c59344 diff --git a/dev-python/PySDL2/PySDL2-0.9.8.ebuild b/dev-python/PySDL2/PySDL2-0.9.8.ebuild new file mode 100644 index 000000000000..9b0237c5a244 --- /dev/null +++ b/dev-python/PySDL2/PySDL2-0.9.8.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Python (ctypes) bindings for SDL2 libraries" +HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="|| ( public-domain CC0-1.0 ZLIB )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Optional deps: +# - dev-python/numpy, +# - dev-python/pillow, +# - media-libs/sdl2-* (loaded dynamically via ctypes). +# +# If a reverse dependency needs the specific module, it should +# explicitly depend on the optional module in question. You also +# probably need to explicitly require some media-libs/libsdl2 flags. +RDEPEND="media-libs/libsdl2" + +# Require all of SDL2 libraries and at least the most common subsystems +# for better test coverage. +DEPEND=" + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + media-libs/libsdl2[joystick,sound,video] + media-libs/sdl2-gfx + media-libs/sdl2-image + media-libs/sdl2-mixer + media-libs/sdl2-ttf + )" + +distutils_enable_tests pytest + +src_test() { + # from .travis.yml + local -x SDL_VIDEODRIVER=dummy + local -x SDL_AUDIODRIVER=dummy + local -x SDL_RENDER_DRIVER=software + + distutils-r1_src_test +} |
