diff options
Diffstat (limited to 'dev-python/pygame_sdl2')
-rw-r--r-- | dev-python/pygame_sdl2/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pygame_sdl2/files/pygame_sdl2-8.2.3-cython-3.patch | 204 | ||||
-rw-r--r-- | dev-python/pygame_sdl2/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pygame_sdl2/pygame_sdl2-8.2.3.ebuild | 47 |
4 files changed, 0 insertions, 267 deletions
diff --git a/dev-python/pygame_sdl2/Manifest b/dev-python/pygame_sdl2/Manifest deleted file mode 100644 index 35651b5d3459..000000000000 --- a/dev-python/pygame_sdl2/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -AUX pygame_sdl2-8.2.3-cython-3.patch 8237 BLAKE2B cab1b5207abff7a560e30e4944039dba4c31f67255e529e389b18b89cb155c2a8d9b88c8b73e5a4ff19c45a4905a2f1089723182314450b57f2f80f3d52bbc3e SHA512 9d26bbb1832987b8938f7efda2ee1be1c7d230e04c0866e98d4e1faaab7c112648795a505276a850bab56eed1b8a23378319f24512898036e6f54b6ccd157d06 -DIST pygame_sdl2-2.1.0+renpy8.2.3.tar.gz 4270114 BLAKE2B ae70253fc717334e65c438d36bd2991c909ee64c6b47f9c175fd53c1567ea54d2a42ea65cda85560387e744ff792b34658d393f3018d2941e5111efba064236a SHA512 9b3ae71a648511f243d235ba5e81661dde5d0871a4517494f2789c20f95e110305e42bdb635308165cf3985d1096b296a16140c03cbd446db17997c05025b8e3 -EBUILD pygame_sdl2-8.2.3.ebuild 1159 BLAKE2B ed67c49ea1ad9e47844d03a1bd290f86bb7b02246a0e15a9d16716a230cb1339b961263ca80ba59848903010439d2e00128c2f627bbd74891e57cb0aea519d3a SHA512 52b475d31df0e50b56f1e6313802289bacbd039de054f4dde27794f3eaffea35f1eac65c42850bab08e2d6b0c3ab042604fac0dfd7d292e7f0f8cc73a1d13590 -MISC metadata.xml 382 BLAKE2B 0456a0211bf9f5497ae588dcb47ed34d99f08b7600d135a4591e10c8ce8a7349c816c53ea4e800070afd065821aabf22a70e7482402947f2d1801c3250d62d12 SHA512 dd3d1bfe08a30dedf0da22a02e2a3f3e8d38ebd59b2c122b26486b6891ac7459a06368fc55bbce6b243880367110b1b908bd796a17feededf3b1d8b4c9363278 diff --git a/dev-python/pygame_sdl2/files/pygame_sdl2-8.2.3-cython-3.patch b/dev-python/pygame_sdl2/files/pygame_sdl2-8.2.3-cython-3.patch deleted file mode 100644 index 2011eadfbffb..000000000000 --- a/dev-python/pygame_sdl2/files/pygame_sdl2-8.2.3-cython-3.patch +++ /dev/null @@ -1,204 +0,0 @@ -diff '--color=auto' -Naurd pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/mixer_music.pyx pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/mixer_music.pyx ---- pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/mixer_music.pyx 2015-04-04 18:05:58.000000000 +0300 -+++ pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/mixer_music.pyx 2024-08-20 23:31:04.313616957 +0300 -@@ -27,7 +27,7 @@ - cdef object queued_music = None - cdef int endevent = 0 - --cdef void music_finished(): -+cdef void music_finished() noexcept: - global queued_music - if queued_music: - load(queued_music) -diff '--color=auto' -Naurd pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/mixer.pyx pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/mixer.pyx ---- pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/mixer.pyx 2019-04-03 08:15:40.000000000 +0300 -+++ pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/mixer.pyx 2024-08-20 23:27:49.115394156 +0300 -@@ -57,7 +57,7 @@ - Mix_PlayChannelTimed(channel, next_sound.chunk, 0, -1) - - --cdef void channel_callback(int channel) with gil: -+cdef void channel_callback(int channel) noexcept with gil: - - cdef int etype = 0 - cdef SDL_Event e -diff '--color=auto' -Naurd pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/rwobject.pyx pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/rwobject.pyx ---- pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/rwobject.pyx 2024-01-29 06:06:06.000000000 +0300 -+++ pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/rwobject.pyx 2024-08-20 23:22:53.081539270 +0300 -@@ -63,7 +63,7 @@ - msg = <char *> e - SDL_SetError("%s", msg) - --cdef Sint64 python_size(SDL_RWops *context) with gil: -+cdef Sint64 python_size(SDL_RWops *context) noexcept with gil: - f = <object> context.hidden.unknown.data1 - - try: -@@ -76,7 +76,7 @@ - - return rv - --cdef Sint64 python_seek(SDL_RWops *context, Sint64 seek, int whence) with gil: -+cdef Sint64 python_seek(SDL_RWops *context, Sint64 seek, int whence) noexcept with gil: - f = <object> context.hidden.unknown.data1 - - try: -@@ -88,7 +88,7 @@ - - return rv - --cdef size_t python_read(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) with gil: -+cdef size_t python_read(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) noexcept with gil: - f = <object> context.hidden.unknown.data1 - - try: -@@ -100,7 +100,7 @@ - memcpy(ptr, <void *><char *> data, len(data)) - return len(data) - --cdef size_t python_write(SDL_RWops *context, const void *ptr, size_t size, size_t maxnum) with gil: -+cdef size_t python_write(SDL_RWops *context, const void *ptr, size_t size, size_t maxnum) noexcept with gil: - f = <object> context.hidden.unknown.data1 - data = (<char *> ptr)[:size * maxnum] - -@@ -112,7 +112,7 @@ - - return len(data) - --cdef int python_close(SDL_RWops *context) with gil: -+cdef int python_close(SDL_RWops *context) noexcept with gil: - if context != NULL: - if context.hidden.unknown.data1 != NULL: - f = <object> context.hidden.unknown.data1 -@@ -135,11 +135,11 @@ - Sint64 length - Sint64 tell - --cdef Sint64 subfile_size(SDL_RWops *context) nogil: -+cdef Sint64 subfile_size(SDL_RWops *context) noexcept nogil: - cdef SubFile *sf = <SubFile *> context.hidden.unknown.data1 - return sf.length - --cdef Sint64 subfile_seek(SDL_RWops *context, Sint64 seek, int whence) nogil: -+cdef Sint64 subfile_seek(SDL_RWops *context, Sint64 seek, int whence) noexcept nogil: - cdef SubFile *sf = <SubFile *> context.hidden.unknown.data1 - - if whence == RW_SEEK_SET: -@@ -151,7 +151,7 @@ - - return sf.tell - --cdef size_t subfile_read(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) nogil: -+cdef size_t subfile_read(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) noexcept nogil: - cdef SubFile *sf = <SubFile *> context.hidden.unknown.data1 - - cdef Sint64 left = sf.length - sf.tell -@@ -170,7 +170,7 @@ - - return rv - --cdef int subfile_close(SDL_RWops *context) nogil: -+cdef int subfile_close(SDL_RWops *context) noexcept nogil: - cdef SubFile *sf - - if context != NULL: -@@ -191,13 +191,13 @@ - Sint64 split - Sint64 tell - --cdef Sint64 splitfile_size(SDL_RWops *context) nogil: -+cdef Sint64 splitfile_size(SDL_RWops *context) noexcept nogil: - cdef SplitFile *sf = <SplitFile *> context.hidden.unknown.data1 - cdef Sint64 rv - - return SDL_RWsize(sf.a) + SDL_RWsize(sf.b) - --cdef Sint64 splitfile_seek(SDL_RWops *context, Sint64 seek, int whence) nogil: -+cdef Sint64 splitfile_seek(SDL_RWops *context, Sint64 seek, int whence) noexcept nogil: - cdef SplitFile *sf = <SplitFile *> context.hidden.unknown.data1 - cdef Sint64 rv - -@@ -220,7 +220,7 @@ - else: - return sf.tell - --cdef size_t splitfile_read(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) nogil: -+cdef size_t splitfile_read(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) noexcept nogil: - cdef SplitFile *sf = <SplitFile *> context.hidden.unknown.data1 - cdef Sint64 left = splitfile_size(context) - sf.tell - cdef size_t rv -@@ -251,7 +251,7 @@ - - return (left_read + right_read) // size - --cdef int splitfile_close(SDL_RWops *context) nogil: -+cdef int splitfile_close(SDL_RWops *context) noexcept nogil: - cdef SplitFile *sf - - if context != NULL: -@@ -274,12 +274,12 @@ - Uint8 *here - Uint8 *stop - --cdef Sint64 buffile_size(SDL_RWops *context) nogil: -+cdef Sint64 buffile_size(SDL_RWops *context) noexcept nogil: - cdef BufFile *bf = <BufFile *> context.hidden.unknown.data1 - - return bf.stop - bf.base - --cdef Sint64 buffile_seek(SDL_RWops *context, Sint64 offset, int whence) nogil: -+cdef Sint64 buffile_seek(SDL_RWops *context, Sint64 offset, int whence) noexcept nogil: - cdef BufFile *bf = <BufFile *> context.hidden.unknown.data1 - - cdef Uint8 *newpos -@@ -302,7 +302,7 @@ - - return bf.here - bf.base - --cdef size_t buffile_read(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) nogil: -+cdef size_t buffile_read(SDL_RWops *context, void *ptr, size_t size, size_t maxnum) noexcept nogil: - cdef BufFile *bf = <BufFile *> context.hidden.unknown.data1 - cdef size_t total_bytes = 0 - cdef size_t mem_available = 0 -@@ -320,7 +320,7 @@ - - return (total_bytes // size) - --cdef size_t buffile_write(SDL_RWops *context, const void *ptr, size_t size, size_t num) nogil: -+cdef size_t buffile_write(SDL_RWops *context, const void *ptr, size_t size, size_t num) noexcept nogil: - cdef BufFile *bf = <BufFile *> context.hidden.unknown.data1 - - if bf.view.readonly != 0: -@@ -333,7 +333,7 @@ - - return num - --cdef int buffile_close(SDL_RWops *context) with gil: -+cdef int buffile_close(SDL_RWops *context) noexcept with gil: - cdef BufFile *bf - - if context != NULL: -diff '--color=auto' -Naurd pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/surface.pyx pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/surface.pyx ---- pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/surface.pyx 2023-03-30 06:10:16.000000000 +0300 -+++ pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/surface.pyx 2024-08-20 23:23:41.720844257 +0300 -@@ -34,7 +34,7 @@ - int pygame_Blit (SDL_Surface * src, SDL_Rect * srcrect, - SDL_Surface * dst, SDL_Rect * dstrect, int the_args); - --cdef void move_pixels(Uint8 *src, Uint8 *dst, int h, int span, int srcpitch, int dstpitch) nogil: -+cdef void move_pixels(Uint8 *src, Uint8 *dst, int h, int span, int srcpitch, int dstpitch) noexcept nogil: - if src < dst: - src += (h - 1) * srcpitch; - dst += (h - 1) * dstpitch; -diff '--color=auto' -Naurd pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/transform.pyx pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/transform.pyx ---- pygame_sdl2-2.1.0+renpy8.2.3.orig/src/pygame_sdl2/transform.pyx 2015-08-13 03:31:25.000000000 +0300 -+++ pygame_sdl2-2.1.0+renpy8.2.3/src/pygame_sdl2/transform.pyx 2024-08-20 23:24:30.513150042 +0300 -@@ -119,7 +119,7 @@ - p += x - return p[0] - --cdef void set_at(SDL_Surface *surf, int x, int y, uint32_t color) nogil: -+cdef void set_at(SDL_Surface *surf, int x, int y, uint32_t color) noexcept nogil: - cdef uint32_t *p = <uint32_t*>surf.pixels - p += y * (surf.pitch // sizeof(uint32_t)) - p += x diff --git a/dev-python/pygame_sdl2/metadata.xml b/dev-python/pygame_sdl2/metadata.xml deleted file mode 100644 index ca10416f8e59..000000000000 --- a/dev-python/pygame_sdl2/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>bircoph@gentoo.org</email> - <name>Andrew Savchenko</name> - </maintainer> - <upstream> - <remote-id type="github">renpy/pygame_sdl2</remote-id> - <remote-id type="pypi">pygame_sdl2</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/pygame_sdl2/pygame_sdl2-8.2.3.ebuild b/dev-python/pygame_sdl2/pygame_sdl2-8.2.3.ebuild deleted file mode 100644 index 44da5ea76b34..000000000000 --- a/dev-python/pygame_sdl2/pygame_sdl2-8.2.3.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{10..13} ) -inherit distutils-r1 - -MY_P="${PN}-2.1.0+renpy${PV}" - -DESCRIPTION="Reimplementation of portions of the pygame API using SDL2" -HOMEPAGE="https://github.com/renpy/pygame_sdl2" -SRC_URI="https://www.renpy.org/dl/${PV}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="LGPL-2.1 ZLIB" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -PATCHES=( "${FILESDIR}/${PN}-8.2.3-cython-3.patch" ) - -# <wheel-0.41.0 wasn't installing headers correctly -# https://github.com/pypa/setuptools/issues/3997 -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - >=dev-python/wheel-0.41.0 -" -DEPEND=" - dev-python/numpy[${PYTHON_USEDEP}] - media-libs/libjpeg-turbo:= - media-libs/libpng:0= - media-libs/libsdl2:=[video] - media-libs/sdl2-image:=[png,jpeg] - >=media-libs/sdl2-mixer-2.0.2:= - media-libs/sdl2-ttf:= -" -RDEPEND="${DEPEND}" - -python_prepare_all() { - # PyGame distribution for this version has some pregenerated files; - # we need to remove them - rm -r gen{,3,-static} || die - - distutils-r1_python_prepare_all -} |