[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2024-05-20 Thread Michał Górny
commit: 4499dfcbf04630058fb854c071d5d7710b00e4e8
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May 20 19:06:35 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May 20 19:07:04 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4499dfcb

dev-python/pygame: Require =dev-python/numpy-2.  They involve some
overflow errors that may indicate runtime incompatibility as well.

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/{pygame-2.5.2-r1.ebuild => pygame-2.5.2-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.2-r1.ebuild 
b/dev-python/pygame/pygame-2.5.2-r2.ebuild
similarity index 98%
rename from dev-python/pygame/pygame-2.5.2-r1.ebuild
rename to dev-python/pygame/pygame-2.5.2-r2.ebuild
index 077556ead05f..8229c9fa5e6d 100644
--- a/dev-python/pygame/pygame-2.5.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.5.2-r2.ebuild
@@ -27,7 +27,7 @@ IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
-   dev-python/numpy[${PYTHON_USEDEP}]
+   

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2024-05-20 Thread Michał Górny
commit: 69e5e929ac53e0753908b2517b5b4482e63de0b4
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May 20 18:19:23 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May 20 18:35:24 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69e5e929

dev-python/pygame: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 -
 dev-python/pygame/pygame-2.5.1.ebuild | 88 ---
 2 files changed, 89 deletions(-)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index b4bddf487169..586350b63be6 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,2 +1 @@
-DIST pygame-2.5.1.gh.tar.gz 6854761 BLAKE2B 
e137f73a3bb718213ef92e938ed1b065f5568d7dd2ade6edd973bc55d06425874da0e89e3c102fad39adac25f977ac97025a0c59099702cfabeffd0d3b8f109f
 SHA512 
d7aceb2bc6e40c5dc2d7a19fdc7af18abf021b79dd98b859975f99ec10895e1b09e11fbf17fd6ab925d3aa6c64e5b3dd56c0d857ecacc67303d92fc0efb2630c
 DIST pygame-2.5.2.gh.tar.gz 5970857 BLAKE2B 
523874926a8fd868f5674ed2997a44decb928fcfe246d551249ed7320a0e908ce46d00f459d187726edf74a4c1038cd56821f6466559fb7d24aa75d16769cbfe
 SHA512 
b54e9b80951c8a9e7521aafc26874c6dbdab27330146f7217346c76be5627a5464a0102a5968eca0dbd7cced4b2143cd2ff1b6227e3e17e5634854b27f19

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
deleted file mode 100644
index 487738802f20..
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
-
-inherit distutils-r1
-
-DESCRIPTION="Python bindings for SDL multimedia library"
-HOMEPAGE="
-   https://www.pygame.org/
-   https://github.com/pygame/pygame/
-   https://pypi.org/project/pygame/
-"
-SRC_URI="
-   https://github.com/pygame/pygame/archive/${PV}.tar.gz
-   -> ${P}.gh.tar.gz
-"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv x86"
-IUSE="examples opengl test X"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   dev-python/numpy[${PYTHON_USEDEP}]
-   media-libs/freetype
-   media-libs/libjpeg-turbo:=
-   media-libs/libpng:=
-   media-libs/portmidi
-   media-libs/sdl2-image
-   media-libs/sdl2-mixer
-   media-libs/sdl2-ttf
-   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
-   !X? ( media-libs/libsdl2[threads] )
-"
-DEPEND="
-   ${RDEPEND}
-   test? (
-   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
-   media-libs/sdl2-mixer[mp3,vorbis,wav]
-   )
-"
-# fontconfig used for fc-list
-RDEPEND+="
-   media-libs/fontconfig
-"
-# util-linux provides script
-BDEPEND="
-   dev-python/cython[${PYTHON_USEDEP}]
-   test? (
-   media-libs/fontconfig
-   sys-apps/util-linux
-   )
-"
-
-python_configure() {
-   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
-   "${EPYTHON}" "${S}"/buildconfig/config.py || die
-}
-
-python_configure_all() {
-   find src_c/cython -name '*.pyx' -exec touch {} + || die
-   "${EPYTHON}" setup.py cython_only || die
-}
-
-python_test() {
-   local -x PYTHONPATH=${BUILD_DIR}/install/lib
-   local -x SDL_VIDEODRIVER=dummy
-   local -x SDL_AUDIODRIVER=disk
-   script -eqc "${EPYTHON} -m pygame.tests -v" || die
-}
-
-python_install() {
-   distutils-r1_python_install
-
-   # Bug #497720
-   rm -fr "${D}$(python_get_sitedir)"/pygame/{docs,examples,tests}/ || die
-}
-
-python_install_all() {
-   distutils-r1_python_install_all
-   use examples && dodoc -r examples
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/, dev-python/pygame/files/

2024-05-20 Thread Michał Górny
commit: faa23060a8db98c794ba723fd567f2ec688c6eb5
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May 20 18:30:11 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May 20 18:35:25 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faa23060

dev-python/pygame: Backport a GCC 14 build fix

Closes: https://bugs.gentoo.org/926650
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/files/pygame-2.5.2-gcc-14.patch | 38 +++
 dev-python/pygame/pygame-2.5.2-r1.ebuild  |  2 ++
 2 files changed, 40 insertions(+)

diff --git a/dev-python/pygame/files/pygame-2.5.2-gcc-14.patch 
b/dev-python/pygame/files/pygame-2.5.2-gcc-14.patch
new file mode 100644
index ..0d74303bbba4
--- /dev/null
+++ b/dev-python/pygame/files/pygame-2.5.2-gcc-14.patch
@@ -0,0 +1,38 @@
+From 504a11fd4855e33ecb945af1270311aa463aae59 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= 
+Date: Sun, 19 May 2024 11:12:33 +0200
+Subject: [PATCH] pypm: Fix incorrect param in Pm_OpenInput
+
+---
+ src_c/cython/pygame/pypm.pyx | 7 +--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src_c/cython/pygame/pypm.pyx b/src_c/cython/pygame/pypm.pyx
+index f2c16c9e2b..54a88fd83a 100644
+--- a/src_c/cython/pygame/pypm.pyx
 b/src_c/cython/pygame/pypm.pyx
+@@ -106,7 +106,7 @@ cdef extern from "portmidi.h":
+  PmDeviceID inputDevice,
+  void *inputDriverInfo,
+  long bufferSize,
+- long (*PmPtr) (), # long = PtTimestamp
++ PmTimeProcPtr time_proc, # long = PtTimestamp
+  void *time_info)
+ 
+ PmError Pm_OpenOutput(PortMidiStream** stream,
+@@ -538,11 +538,14 @@ cdef class Input:
+ """Instantiate MIDI input stream object."""
+ 
+ cdef PmError err
++cdef PmTimeProcPtr PmPtr
+ self.device = input_device
+ self.debug = 0
+ 
++PmPtr = _Time
++
+ err = Pm_OpenInput(&(self.midi), input_device, NULL, buffersize,
+-   _Time, NULL)
++   PmPtr, NULL)
+ if err < 0:
+ raise Exception(Pm_GetErrorText(err))
+ 

diff --git a/dev-python/pygame/pygame-2.5.2-r1.ebuild 
b/dev-python/pygame/pygame-2.5.2-r1.ebuild
index a7e594998df9..077556ead05f 100644
--- a/dev-python/pygame/pygame-2.5.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.5.2-r1.ebuild
@@ -62,6 +62,8 @@ src_prepare() {
local PATCHES=(
# https://github.com/pygame/pygame/pull/4035
"${FILESDIR}/${P}-error.patch"
+   # https://github.com/pygame/pygame/pull/4236
+   "${FILESDIR}/${P}-gcc-14.patch"
)
 
# some numpy-related crash (not a regression)



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2024-05-19 Thread Arthur Zamarin
commit: 8ce861b8b571aa6aaa062fc628d63aa2b76c0be4
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun May 19 19:38:08 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun May 19 19:42:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ce861b8

dev-python/pygame: dekeyword sparc

Closes: https://bugs.gentoo.org/920956
Bug: https://bugs.gentoo.org/917718
Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.1.ebuild| 4 ++--
 dev-python/pygame/pygame-2.5.2-r1.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
index 9cb7c203c8b0..487738802f20 100644
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 

diff --git a/dev-python/pygame/pygame-2.5.2-r1.ebuild 
b/dev-python/pygame/pygame-2.5.2-r1.ebuild
index adcd4da66c44..a7e594998df9 100644
--- a/dev-python/pygame/pygame-2.5.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.5.2-r1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2024-05-19 Thread James Le Cuirot
commit: 213b1e730180d349d671974c5e79eefd702b94da
Author: James Le Cuirot  gentoo  org>
AuthorDate: Sun May 19 14:50:44 2024 +
Commit: James Le Cuirot  gentoo  org>
CommitDate: Sun May 19 16:14:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=213b1e73

dev-python/pygame: media-libs/libsdl2 will drop the threads USE flag

Signed-off-by: James Le Cuirot  gentoo.org>

 dev-python/pygame/{pygame-2.5.2.ebuild => pygame-2.5.2-r1.ebuild} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-python/pygame/pygame-2.5.2.ebuild 
b/dev-python/pygame/pygame-2.5.2-r1.ebuild
similarity index 94%
rename from dev-python/pygame/pygame-2.5.2.ebuild
rename to dev-python/pygame/pygame-2.5.2-r1.ebuild
index 411bbd6b6682..adcd4da66c44 100644
--- a/dev-python/pygame/pygame-2.5.2.ebuild
+++ b/dev-python/pygame/pygame-2.5.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -35,8 +35,8 @@ RDEPEND="
media-libs/sdl2-image
media-libs/sdl2-mixer
media-libs/sdl2-ttf
-   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
-   !X? ( media-libs/libsdl2[threads] )
+   X? ( media-libs/libsdl2[opengl?,threads(+),video,X] )
+   !X? ( media-libs/libsdl2[threads(+)] )
 "
 DEPEND="
${RDEPEND}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-11-28 Thread Arthur Zamarin
commit: 12faa7d47a4225b286c699ae32ff8fcc7060adde
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Nov 29 06:34:39 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Nov 29 06:34:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12faa7d4

dev-python/pygame: Stabilize 2.5.2 ppc64, #917718

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.2.ebuild 
b/dev-python/pygame/pygame-2.5.2.ebuild
index 0332a5163353..264165ceede9 100644
--- a/dev-python/pygame/pygame-2.5.2.ebuild
+++ b/dev-python/pygame/pygame-2.5.2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-11-23 Thread Sam James
commit: 727c7498e83e4c8f20408ee707a34946741f8d8a
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov 23 19:52:33 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov 23 19:52:33 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=727c7498

dev-python/pygame: Stabilize 2.5.2 x86, #917718

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.2.ebuild 
b/dev-python/pygame/pygame-2.5.2.ebuild
index c516361b80d6..0332a5163353 100644
--- a/dev-python/pygame/pygame-2.5.2.ebuild
+++ b/dev-python/pygame/pygame-2.5.2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-11-23 Thread Sam James
commit: 8cf1e0f0f87a82ac24e0bf629591944e38e413de
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov 23 19:52:32 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov 23 19:52:32 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cf1e0f0

dev-python/pygame: Stabilize 2.5.2 amd64, #917718

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.2.ebuild 
b/dev-python/pygame/pygame-2.5.2.ebuild
index 5b38e2a07ae0..c516361b80d6 100644
--- a/dev-python/pygame/pygame-2.5.2.ebuild
+++ b/dev-python/pygame/pygame-2.5.2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-11-22 Thread Sam James
commit: 63aad19decd8ff2544f7d79b9925ff6567276e09
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 22 11:05:49 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 22 11:10:15 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63aad19d

dev-python/pygame: Stabilize 2.5.2 arm64, #917718

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.2.ebuild 
b/dev-python/pygame/pygame-2.5.2.ebuild
index 7e4c209c3159..5b38e2a07ae0 100644
--- a/dev-python/pygame/pygame-2.5.2.ebuild
+++ b/dev-python/pygame/pygame-2.5.2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-11-22 Thread Sam James
commit: 89eea894554ec34317601073b8a335c5670caaa3
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 22 11:05:48 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 22 11:10:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89eea894

dev-python/pygame: Stabilize 2.5.2 arm, #917718

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.2.ebuild 
b/dev-python/pygame/pygame-2.5.2.ebuild
index 6d89ed769186..7e4c209c3159 100644
--- a/dev-python/pygame/pygame-2.5.2.ebuild
+++ b/dev-python/pygame/pygame-2.5.2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/files/, dev-python/pygame/

2023-10-17 Thread Michał Górny
commit: de33ae0d9ef984e676549f3227933d7a40c4b4c2
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Oct 17 14:33:35 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Oct 17 15:11:04 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de33ae0d

dev-python/pygame: Bump to 2.5.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest   |   1 +
 dev-python/pygame/files/pygame-2.5.2-error.patch | 121 +++
 dev-python/pygame/pygame-2.5.2.ebuild| 101 +++
 3 files changed, 223 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 860b2f9c101c..b4bddf487169 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1 +1,2 @@
 DIST pygame-2.5.1.gh.tar.gz 6854761 BLAKE2B 
e137f73a3bb718213ef92e938ed1b065f5568d7dd2ade6edd973bc55d06425874da0e89e3c102fad39adac25f977ac97025a0c59099702cfabeffd0d3b8f109f
 SHA512 
d7aceb2bc6e40c5dc2d7a19fdc7af18abf021b79dd98b859975f99ec10895e1b09e11fbf17fd6ab925d3aa6c64e5b3dd56c0d857ecacc67303d92fc0efb2630c
+DIST pygame-2.5.2.gh.tar.gz 5970857 BLAKE2B 
523874926a8fd868f5674ed2997a44decb928fcfe246d551249ed7320a0e908ce46d00f459d187726edf74a4c1038cd56821f6466559fb7d24aa75d16769cbfe
 SHA512 
b54e9b80951c8a9e7521aafc26874c6dbdab27330146f7217346c76be5627a5464a0102a5968eca0dbd7cced4b2143cd2ff1b6227e3e17e5634854b27f19

diff --git a/dev-python/pygame/files/pygame-2.5.2-error.patch 
b/dev-python/pygame/files/pygame-2.5.2-error.patch
new file mode 100644
index ..9f2800e29e70
--- /dev/null
+++ b/dev-python/pygame/files/pygame-2.5.2-error.patch
@@ -0,0 +1,121 @@
+From bbed8d293483fa7bd7322f5976641dfe86bf6367 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= 
+Date: Sat, 7 Oct 2023 12:05:45 +0200
+Subject: [PATCH 1/2] base: Clean up some error messaging
+
+---
+ src_c/base.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src_c/base.c b/src_c/base.c
+index 1f12a63451..d32c17bdc5 100644
+--- a/src_c/base.c
 b/src_c/base.c
+@@ -309,11 +309,13 @@ pg_mod_autoquit(const char *modname)
+ 
+ funcobj = PyObject_GetAttrString(module, "_internal_mod_quit");
+ 
++if (PyErr_Occurred())
++PyErr_Clear();
++
+ /* If we could not load _internal_mod_quit, load quit function */
+ if (!funcobj)
+ funcobj = PyObject_GetAttrString(module, "quit");
+ 
+-/* Silence errors */
+ if (PyErr_Occurred())
+ PyErr_Clear();
+ 
+@@ -322,7 +324,6 @@ pg_mod_autoquit(const char *modname)
+ Py_XDECREF(temp);
+ }
+ 
+-/* Silence errors */
+ if (PyErr_Occurred())
+ PyErr_Clear();
+ 
+
+From d8fae59ff0f3a02fe159cc302c891177af97a41f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= 
+Date: Sat, 7 Oct 2023 12:05:58 +0200
+Subject: [PATCH 2/2] pixelcopy: Clean up some error messaging
+
+---
+ src_c/pixelcopy.c | 27 +++
+ 1 file changed, 27 insertions(+)
+
+diff --git a/src_c/pixelcopy.c b/src_c/pixelcopy.c
+index 923072dde8..1d1eaf3267 100644
+--- a/src_c/pixelcopy.c
 b/src_c/pixelcopy.c
+@@ -767,6 +767,9 @@ surface_to_array(PyObject *self, PyObject *args, PyObject 
*kwds)
+ Uint8 opaque = 255;
+ Uint8 clear = 0;
+ SDL_Surface *surf;
++PyObject *type = NULL;
++PyObject *value = NULL;
++PyObject *traceback = NULL;
+ char *keywords[] = {"array", "surface", "kind", "opaque", "clear", 0};
+ 
+ if (!PyArg_ParseTupleAndKeywords(
+@@ -794,8 +797,16 @@ surface_to_array(PyObject *self, PyObject *args, PyObject 
*kwds)
+ if (view_p->ndim == 2) {
+ if (view_kind == VIEWKIND_RGB) {
+ if (_copy_mapped(view_p, surf)) {
++if (PyErr_Occurred()) {
++PyErr_Fetch(, , );
++PyErr_Clear();
++}
++
+ pgBuffer_Release(_view);
+ pgSurface_Unlock(surfobj);
++if (type) {
++PyErr_Restore(type, value, traceback);
++}
+ return 0;
+ }
+ }
+@@ -876,6 +887,8 @@ map_array(PyObject *self, PyObject *args)
+ _pc_pixel_t pixel = {0};
+ int pix_bytesize;
+ Py_ssize_t i;
++PyObject *type = NULL;
++PyObject *value, *traceback;
+ 
+ if (!PyArg_ParseTuple(args, "OOO!", _array, _array,
+   _Type, _surf)) {
+@@ -889,6 +902,11 @@ map_array(PyObject *self, PyObject *args)
+ /* Determine array shapes and check validity
+  */
+ if (pgObject_GetBuffer(tar_array, _pg_view, PyBUF_RECORDS)) {
++if (PyErr_Occurred()) {
++PyErr_Fetch(, , );
++PyErr_Clear();
++}
++
+ goto fail;
+ }
+ is_tar_alloc = 1;
+@@ -912,6 +930,10 @@ map_array(PyObject *self, PyObject *args)
+ goto fail;
+ }
+ if (pgObject_GetBuffer(src_array, _pg_view, PyBUF_RECORDS_RO)) {
++if 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/, dev-python/pygame/files/

2023-10-01 Thread Michał Górny
commit: aaad49b347cdcb9f601e0cb6107810bbbf2de74b
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Oct  2 04:18:24 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Oct  2 04:18:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaad49b3

dev-python/pygame: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest |   1 -
 .../pygame/files/pygame-2.5.0-cython-3.patch   | 214 -
 dev-python/pygame/pygame-2.5.0-r2.ebuild   |  92 -
 3 files changed, 307 deletions(-)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index e425372d158a..860b2f9c101c 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,2 +1 @@
-DIST pygame-2.5.0.gh.tar.gz 6640084 BLAKE2B 
affa92cacee34ab1db246e80bea0ee425985c1c2a75b5702b2368536fe4b07ffb24f5e6ef345afb3ee63e7b1eccfc275082649251791a2f34a0eba019cc327a8
 SHA512 
741c5d11b2b52c5bc08672fb9e7420540f20879ef67b84dd18904d317f3cce7593bf08a9e7bf9d0c6470c6bb88512c9af9eb86056e654ab32d4b33532b2bf702
 DIST pygame-2.5.1.gh.tar.gz 6854761 BLAKE2B 
e137f73a3bb718213ef92e938ed1b065f5568d7dd2ade6edd973bc55d06425874da0e89e3c102fad39adac25f977ac97025a0c59099702cfabeffd0d3b8f109f
 SHA512 
d7aceb2bc6e40c5dc2d7a19fdc7af18abf021b79dd98b859975f99ec10895e1b09e11fbf17fd6ab925d3aa6c64e5b3dd56c0d857ecacc67303d92fc0efb2630c

diff --git a/dev-python/pygame/files/pygame-2.5.0-cython-3.patch 
b/dev-python/pygame/files/pygame-2.5.0-cython-3.patch
deleted file mode 100644
index 48e48e738ab3..
--- a/dev-python/pygame/files/pygame-2.5.0-cython-3.patch
+++ /dev/null
@@ -1,214 +0,0 @@
-https://bugs.gentoo.org/898704
-https://github.com/pygame/pygame/issues/3938
-https://github.com/pygame/pygame/pull/3956
-https://github.com/pygame/pygame/commit/bff1ba00fa58de40d357d70ba645be2957593b69
-
-From bff1ba00fa58de40d357d70ba645be2957593b69 Mon Sep 17 00:00:00 2001
-From: Matus Valo 
-Date: Wed, 12 Jul 2023 01:26:21 +0200
-Subject: [PATCH] Mark functions as noexcept
-
 a/src_c/cython/pygame/_sdl2/audio.pyx
-+++ b/src_c/cython/pygame/_sdl2/audio.pyx
-@@ -67,7 +67,7 @@ def get_audio_device_names(iscapture = False):
- return names
- 
- import traceback
--cdef void recording_cb(void* userdata, Uint8* stream, int len) nogil:
-+cdef void recording_cb(void* userdata, Uint8* stream, int len) noexcept nogil:
- """ This is called in a thread made by SDL.
- So we need the python GIL to do python stuff.
- """
 a/src_c/cython/pygame/_sdl2/controller.pxd
-+++ b/src_c/cython/pygame/_sdl2/controller.pxd
-@@ -101,8 +101,8 @@ cdef extern from "../controllercompat.c" nogil:
- Uint16 high_frequency_rumble,
- Uint32 duration_ms)
- 
--cdef bint _controller_autoinit()
--cdef void _controller_autoquit()
-+cdef bint _controller_autoinit() noexcept
-+cdef void _controller_autoquit() noexcept
- 
- cdef class Controller:
- cdef SDL_GameController* _controller
 a/src_c/cython/pygame/_sdl2/controller.pyx
-+++ b/src_c/cython/pygame/_sdl2/controller.pyx
-@@ -17,14 +17,14 @@ def _gamecontroller_init_check():
- if not SDL_WasInit(_SDL_INIT_GAMECONTROLLER):
- raise error("gamecontroller system not initialized")
- 
--cdef bint _controller_autoinit():
-+cdef bint _controller_autoinit() noexcept:
- if not SDL_WasInit(_SDL_INIT_GAMECONTROLLER):
- if SDL_InitSubSystem(_SDL_INIT_GAMECONTROLLER):
- return False
- #pg_RegisterQuit(_controller_autoquit)
- return True
- 
--cdef void _controller_autoquit():
-+cdef void _controller_autoquit() noexcept:
- cdef Controller controller
- for c in Controller._controllers:
- controller = c
 a/src_c/cython/pygame/_sdl2/mixer.pxd
-+++ b/src_c/cython/pygame/_sdl2/mixer.pxd
-@@ -5,7 +5,7 @@ from .sdl2 cimport *
- 
- #https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html#SEC79
- 
--ctypedef void (*mixcallback)(void *udata, Uint8 *stream, int len) nogil
-+ctypedef void (*mixcallback)(void *udata, Uint8 *stream, int len) noexcept 
nogil
- 
- cdef extern from "SDL_mixer.h" nogil:
- ctypedef void (*mix_func)(void *udata, Uint8 *stream, int len)
 a/src_c/cython/pygame/_sdl2/mixer.pyx
-+++ b/src_c/cython/pygame/_sdl2/mixer.pyx
-@@ -14,7 +14,7 @@ import traceback
- # Mix_SetPostMix(noEffect, NULL);
- 
- 
--cdef void recording_cb(void* userdata, Uint8* stream, int len) nogil:
-+cdef void recording_cb(void* userdata, Uint8* stream, int len) noexcept nogil:
- """ This is called in a thread made by SDL.
- So we need the python GIL to do python stuff.
- """
 a/src_c/cython/pygame/_sdl2/video.pxd
-+++ b/src_c/cython/pygame/_sdl2/video.pxd
-@@ -430,7 +430,7 @@ cdef class Texture:
- cdef draw_internal(self, SDL_Rect *csrcrect, SDL_Rect *cdstrect, float 
angle=*, SDL_Point *originptr=*,
-bint flip_x=*, bint flip_y=*)
- cpdef 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-10-01 Thread Arthur Zamarin
commit: 7804dd73e88f94d5a3dc735580ea7d9f37de0e47
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Oct  1 18:11:13 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Oct  1 18:11:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7804dd73

dev-python/pygame: Stabilize 2.5.1 ppc, #914321

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
index 8b38b8f854dc..9cb7c203c8b0 100644
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-09-17 Thread Arthur Zamarin
commit: 319391a77317f64fc584caabab0cf8a0e6abba39
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Sep 17 12:23:44 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Sep 17 12:23:44 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=319391a7

dev-python/pygame: Stabilize 2.5.1 sparc, #914321

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
index 376e8c24d8d4..8b38b8f854dc 100644
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-09-16 Thread Sam James
commit: 237439145ef47cf599965f55ce085106c3bb4e3d
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 17 05:47:01 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 17 05:47:01 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23743914

dev-python/pygame: Stabilize 2.5.1 amd64, #914321

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
index efe3df0d2380..376e8c24d8d4 100644
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-09-16 Thread Sam James
commit: b3c21c5041ca10650430be79baa3bc0c8f02b2ad
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 17 05:47:00 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 17 05:47:00 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3c21c50

dev-python/pygame: Stabilize 2.5.1 x86, #914321

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
index 0ca18526a87d..efe3df0d2380 100644
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-09-16 Thread Arthur Zamarin
commit: b84bf89b90a468ab1a7b2b221e17a6d346281f9a
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Sep 17 05:06:45 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Sep 17 05:06:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b84bf89b

dev-python/pygame: Stabilize 2.5.1 ppc64, #914321

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
index 616ae9ac7628..0ca18526a87d 100644
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-09-16 Thread Arthur Zamarin
commit: a31ae1967b69754aedc3596b75ab9c726e6817cd
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Sep 17 05:06:43 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Sep 17 05:06:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a31ae196

dev-python/pygame: Stabilize 2.5.1 arm, #914321

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
index e0a89e5db13a..2e7c93896bc4 100644
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-09-16 Thread Arthur Zamarin
commit: 185195f30f609ed00785f5fbb33dc394cb3a6e53
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Sep 17 05:06:44 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Sep 17 05:06:44 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=185195f3

dev-python/pygame: Stabilize 2.5.1 arm64, #914321

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
index 2e7c93896bc4..616ae9ac7628 100644
--- a/dev-python/pygame/pygame-2.5.1.ebuild
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/files/, dev-python/pygame/

2023-08-14 Thread Michał Górny
commit: bf3b055fdffbfe29a78f0e7f22fd4fb9a3042e7e
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Aug 14 18:33:35 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Aug 14 18:33:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf3b055f

dev-python/pygame: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest |  4 -
 .../files/pygame-2.1.2-libsdl2-2.26-tests.patch| 17 
 dev-python/pygame/pygame-2.1.3.ebuild  | 91 -
 dev-python/pygame/pygame-2.2.0.ebuild  | 87 
 dev-python/pygame/pygame-2.3.0.ebuild  | 87 
 dev-python/pygame/pygame-2.4.0.ebuild  | 88 -
 dev-python/pygame/pygame-2.5.0-r1.ebuild   | 92 --
 dev-python/pygame/pygame-2.5.0.ebuild  | 88 -
 8 files changed, 554 deletions(-)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 6dfd9b2c9ce1..e425372d158a 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,6 +1,2 @@
-DIST pygame-2.1.3.gh.tar.gz 6517003 BLAKE2B 
9f2062b24ef2e97995207fbf7572a8aa4d3475356e8646356758ad72b0b744fcf911adaa78bb730ed43c95fa23b8ed733a5573882bd83e112ae5e7e6ef099de9
 SHA512 
28f46826f58f73607b28c1411c6f2b71796cd4f98103df2dd47db842f578fe7f26dac01cb60d1cb00ac9dacfa62c6c3b913a244379ce70bd03265424e29052e6
-DIST pygame-2.2.0.gh.tar.gz 6530469 BLAKE2B 
301b8decd7afe7ad44d97b086ad27209a084884993122f0c8d6973e718cb811587aa2e2c34b5e9fc5859410ced4c298b24127b4bf166dbeaa225b5c731c66cb6
 SHA512 
212e0f6390fa84f4fbcb3051ecb83c324a59d7591fd216a0f17946a581cf01540116162357b41004a387fbd3395e030a5a6d5f804496d84558125f512c9c2617
-DIST pygame-2.3.0.gh.tar.gz 6547956 BLAKE2B 
3189dc5dda7e5fc12fe2091af304816d905a24a33f6f43070040b90bd1bac1191fe6fe1a738ccfda49b5d9b472a704962c3b6aa7d8b99bc67e15317a9df06a2b
 SHA512 
ed93cf5f0fac67b8a03f25f514ac71bf9b9a97f4df30efca9e3225396769e7616d3ce1063e6cc6ee3f4e6f1327154a9e0ec4e81b179578118af3a140bb1543bd
-DIST pygame-2.4.0.r1.gh.tar.gz 6602313 BLAKE2B 
9720b44f55cb0454880cd96b4f8bee77064f0b3997dc3a0aec3a6ff973356a003d37cbe89ff33b62990bc1d6ac1f815c925751031b7a8ee35ce850dee0e56d41
 SHA512 
78e7f9d705d611c99612fe0f1274aabfeb885798faecdf6b6bf6a3e2b8a22145db757ae5a6e5595075c47382bf2228cd2edada8f708e11042cfc7dfc4d17ef94
 DIST pygame-2.5.0.gh.tar.gz 6640084 BLAKE2B 
affa92cacee34ab1db246e80bea0ee425985c1c2a75b5702b2368536fe4b07ffb24f5e6ef345afb3ee63e7b1eccfc275082649251791a2f34a0eba019cc327a8
 SHA512 
741c5d11b2b52c5bc08672fb9e7420540f20879ef67b84dd18904d317f3cce7593bf08a9e7bf9d0c6470c6bb88512c9af9eb86056e654ab32d4b33532b2bf702
 DIST pygame-2.5.1.gh.tar.gz 6854761 BLAKE2B 
e137f73a3bb718213ef92e938ed1b065f5568d7dd2ade6edd973bc55d06425874da0e89e3c102fad39adac25f977ac97025a0c59099702cfabeffd0d3b8f109f
 SHA512 
d7aceb2bc6e40c5dc2d7a19fdc7af18abf021b79dd98b859975f99ec10895e1b09e11fbf17fd6ab925d3aa6c64e5b3dd56c0d857ecacc67303d92fc0efb2630c

diff --git a/dev-python/pygame/files/pygame-2.1.2-libsdl2-2.26-tests.patch 
b/dev-python/pygame/files/pygame-2.1.2-libsdl2-2.26-tests.patch
deleted file mode 100644
index e231d1bf6d85..
--- a/dev-python/pygame/files/pygame-2.1.2-libsdl2-2.26-tests.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-https://github.com/pygame/pygame/commit/420c1a7341
-From: Starbuck5 <46412508+starbu...@users.noreply.github.com>
-Date: Sat, 19 Nov 2022 21:17:32 -0800
-Subject: [PATCH] Adjust surface masks to create a proper 24 bit Surface
-
-The SDL 2.26.0 pre-release rejects a 24 bit Surface created with this mask, 
which is the right call, as it needs 32 bits of space. Older SDL went ahead and 
created a 32 bit surface anyway, which it probably shouldn't have.
 a/test/surface_test.py
-+++ b/test/surface_test.py
-@@ -2023,7 +2023,7 @@ def test_get_losses(self):
- mask8 = (224, 28, 3, 0)
- mask15 = (31744, 992, 31, 0)
- mask16 = (63488, 2016, 31, 0)
--mask24 = (4278190080, 16711680, 65280, 0)
-+mask24 = (16711680, 65280, 255, 0)
- mask32 = (4278190080, 16711680, 65280, 255)
- 
- # Surfaces with standard depths and masks

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
deleted file mode 100644
index cb006ada8fc6..
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
-
-inherit distutils-r1
-
-DESCRIPTION="Python bindings for SDL multimedia library"
-HOMEPAGE="
-   https://www.pygame.org/
-   https://github.com/pygame/pygame/
-   https://pypi.org/project/pygame/
-"
-SRC_URI="
-   https://github.com/pygame/pygame/archive/${PV}.tar.gz
-   -> 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-08-14 Thread Arthur Zamarin
commit: c36f33bf3f8d1a3f8f1d73f80619e8a5c27994c4
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon Aug 14 17:32:54 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon Aug 14 17:32:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c36f33bf

dev-python/pygame: Stabilize 2.5.0-r2 sparc, #911354

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index b2fc72efec9f..e7cd405ad570 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-08-14 Thread Arthur Zamarin
commit: c9696468fb053a0690239d3de0b091d2f979e5e4
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon Aug 14 15:01:48 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon Aug 14 15:01:48 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9696468

dev-python/pygame: Stabilize 2.5.0-r2 arm64, #911354

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index f62067f15093..b2fc72efec9f 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-08-14 Thread Michał Górny
commit: 7c439e805ae8b57ab923991317cf1429d23db0fa
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Aug 14 14:40:02 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Aug 14 14:55:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c439e80

dev-python/pygame: Bump to 2.5.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.5.1.ebuild | 88 +++
 2 files changed, 89 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index efd60f047221..6dfd9b2c9ce1 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -3,3 +3,4 @@ DIST pygame-2.2.0.gh.tar.gz 6530469 BLAKE2B 
301b8decd7afe7ad44d97b086ad27209a084
 DIST pygame-2.3.0.gh.tar.gz 6547956 BLAKE2B 
3189dc5dda7e5fc12fe2091af304816d905a24a33f6f43070040b90bd1bac1191fe6fe1a738ccfda49b5d9b472a704962c3b6aa7d8b99bc67e15317a9df06a2b
 SHA512 
ed93cf5f0fac67b8a03f25f514ac71bf9b9a97f4df30efca9e3225396769e7616d3ce1063e6cc6ee3f4e6f1327154a9e0ec4e81b179578118af3a140bb1543bd
 DIST pygame-2.4.0.r1.gh.tar.gz 6602313 BLAKE2B 
9720b44f55cb0454880cd96b4f8bee77064f0b3997dc3a0aec3a6ff973356a003d37cbe89ff33b62990bc1d6ac1f815c925751031b7a8ee35ce850dee0e56d41
 SHA512 
78e7f9d705d611c99612fe0f1274aabfeb885798faecdf6b6bf6a3e2b8a22145db757ae5a6e5595075c47382bf2228cd2edada8f708e11042cfc7dfc4d17ef94
 DIST pygame-2.5.0.gh.tar.gz 6640084 BLAKE2B 
affa92cacee34ab1db246e80bea0ee425985c1c2a75b5702b2368536fe4b07ffb24f5e6ef345afb3ee63e7b1eccfc275082649251791a2f34a0eba019cc327a8
 SHA512 
741c5d11b2b52c5bc08672fb9e7420540f20879ef67b84dd18904d317f3cce7593bf08a9e7bf9d0c6470c6bb88512c9af9eb86056e654ab32d4b33532b2bf702
+DIST pygame-2.5.1.gh.tar.gz 6854761 BLAKE2B 
e137f73a3bb718213ef92e938ed1b065f5568d7dd2ade6edd973bc55d06425874da0e89e3c102fad39adac25f977ac97025a0c59099702cfabeffd0d3b8f109f
 SHA512 
d7aceb2bc6e40c5dc2d7a19fdc7af18abf021b79dd98b859975f99ec10895e1b09e11fbf17fd6ab925d3aa6c64e5b3dd56c0d857ecacc67303d92fc0efb2630c

diff --git a/dev-python/pygame/pygame-2.5.1.ebuild 
b/dev-python/pygame/pygame-2.5.1.ebuild
new file mode 100644
index ..e0a89e5db13a
--- /dev/null
+++ b/dev-python/pygame/pygame-2.5.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="
+   https://www.pygame.org/
+   https://github.com/pygame/pygame/
+   https://pypi.org/project/pygame/
+"
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libjpeg-turbo:=
+   media-libs/libpng:=
+   media-libs/portmidi
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
+   !X? ( media-libs/libsdl2[threads] )
+"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )
+"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig
+"
+# util-linux provides script
+BDEPEND="
+   dev-python/cython[${PYTHON_USEDEP}]
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )
+"
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py || die
+}
+
+python_configure_all() {
+   find src_c/cython -name '*.pyx' -exec touch {} + || die
+   "${EPYTHON}" setup.py cython_only || die
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   script -eqc "${EPYTHON} -m pygame.tests -v" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}$(python_get_sitedir)"/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-08-04 Thread Arthur Zamarin
commit: 5a596e1fe4fb191315a40e21306def207b632920
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Aug  4 11:45:25 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Aug  4 11:45:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a596e1f

dev-python/pygame: Stabilize 2.5.0-r2 ppc, #911354

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index d29e649d9809..f62067f15093 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-07-28 Thread Sam James
commit: eade144d40c2dbb8bf5c2dab61d67496f82e6443
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 28 09:36:26 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 28 09:36:26 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eade144d

dev-python/pygame: Stabilize 2.5.0-r2 arm, #911354

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index 0302d9ffd0b7..d29e649d9809 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-07-28 Thread Sam James
commit: bdae145a2dad701548a6e02ef8431e682ae7a81b
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 28 07:55:14 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 28 07:55:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdae145a

dev-python/pygame: Stabilize 2.5.0-r2 ppc64, #911354

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index dca99e148a09..cf72fd0e593f 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-07-28 Thread Sam James
commit: 9ccf8a9ffcd7c9c378278e5a0282db2e163a408a
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 28 07:55:15 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 28 07:55:50 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ccf8a9f

dev-python/pygame: Stabilize 2.5.0-r2 amd64, #911354

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index cf72fd0e593f..0302d9ffd0b7 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-07-28 Thread Sam James
commit: 4ac4f8c4b36477374e8b5573a44c20c22ed94c23
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 28 07:55:13 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 28 07:55:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ac4f8c4

dev-python/pygame: Stabilize 2.5.0-r2 x86, #911354

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index 6962201e4762..dca99e148a09 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-07-23 Thread Sam James
commit: dcb52b13ea8828c5b4530b0264cdf39df11a39bb
Author: Sam James  gentoo  org>
AuthorDate: Mon Jul 24 00:51:12 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jul 24 00:51:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcb52b13

dev-python/pygame: Keyword 2.5.0-r2 hppa, #908739

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index 881ee9ef7b24..6962201e4762 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-07-23 Thread Sam James
commit: f34f7f4d29a5110732a0ba41bb81c8411cdaaeb0
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 23 21:43:49 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 23 21:43:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f34f7f4d

dev-python/pygame: Keyword 2.5.0-r2 ppc, #908739

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
index e40977bd20fa..881ee9ef7b24 100644
--- a/dev-python/pygame/pygame-2.5.0-r2.ebuild
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-07-23 Thread Michał Górny
commit: 98416942c589214efd322ac4a4400ebdbd30fb49
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Jul 23 06:41:45 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jul 23 06:53:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98416942

dev-python/pygame: Enable py3.12

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/pygame-2.5.0-r2.ebuild | 92 
 1 file changed, 92 insertions(+)

diff --git a/dev-python/pygame/pygame-2.5.0-r2.ebuild 
b/dev-python/pygame/pygame-2.5.0-r2.ebuild
new file mode 100644
index ..e40977bd20fa
--- /dev/null
+++ b/dev-python/pygame/pygame-2.5.0-r2.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="
+   https://www.pygame.org/
+   https://github.com/pygame/pygame/
+   https://pypi.org/project/pygame/
+"
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libjpeg-turbo:=
+   media-libs/libpng:=
+   media-libs/portmidi
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
+   !X? ( media-libs/libsdl2[threads] )
+"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )
+"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig
+"
+# util-linux provides script
+BDEPEND="
+   dev-python/cython[${PYTHON_USEDEP}]
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-cython-3.patch
+)
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py || die
+}
+
+python_configure_all() {
+   find src_c/cython -name '*.pyx' -exec touch {} + || die
+   "${EPYTHON}" setup.py cython_only || die
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   script -eqc "${EPYTHON} -m pygame.tests -v" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}$(python_get_sitedir)"/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/, dev-python/pygame/files/

2023-07-17 Thread Sam James
commit: ed15f0c65780be87b0d69979625a88f00fda7a0d
Author: Sam James  gentoo  org>
AuthorDate: Mon Jul 17 19:30:15 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jul 17 19:31:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed15f0c6

dev-python/pygame: backport cython-3 fix for 2.5.0-r1

Closes: https://bugs.gentoo.org/898704
Signed-off-by: Sam James  gentoo.org>

 .../pygame/files/pygame-2.5.0-cython-3.patch   | 214 +
 dev-python/pygame/pygame-2.5.0-r1.ebuild   |  92 +
 2 files changed, 306 insertions(+)

diff --git a/dev-python/pygame/files/pygame-2.5.0-cython-3.patch 
b/dev-python/pygame/files/pygame-2.5.0-cython-3.patch
new file mode 100644
index ..48e48e738ab3
--- /dev/null
+++ b/dev-python/pygame/files/pygame-2.5.0-cython-3.patch
@@ -0,0 +1,214 @@
+https://bugs.gentoo.org/898704
+https://github.com/pygame/pygame/issues/3938
+https://github.com/pygame/pygame/pull/3956
+https://github.com/pygame/pygame/commit/bff1ba00fa58de40d357d70ba645be2957593b69
+
+From bff1ba00fa58de40d357d70ba645be2957593b69 Mon Sep 17 00:00:00 2001
+From: Matus Valo 
+Date: Wed, 12 Jul 2023 01:26:21 +0200
+Subject: [PATCH] Mark functions as noexcept
+
+--- a/src_c/cython/pygame/_sdl2/audio.pyx
 b/src_c/cython/pygame/_sdl2/audio.pyx
+@@ -67,7 +67,7 @@ def get_audio_device_names(iscapture = False):
+ return names
+ 
+ import traceback
+-cdef void recording_cb(void* userdata, Uint8* stream, int len) nogil:
++cdef void recording_cb(void* userdata, Uint8* stream, int len) noexcept nogil:
+ """ This is called in a thread made by SDL.
+ So we need the python GIL to do python stuff.
+ """
+--- a/src_c/cython/pygame/_sdl2/controller.pxd
 b/src_c/cython/pygame/_sdl2/controller.pxd
+@@ -101,8 +101,8 @@ cdef extern from "../controllercompat.c" nogil:
+ Uint16 high_frequency_rumble,
+ Uint32 duration_ms)
+ 
+-cdef bint _controller_autoinit()
+-cdef void _controller_autoquit()
++cdef bint _controller_autoinit() noexcept
++cdef void _controller_autoquit() noexcept
+ 
+ cdef class Controller:
+ cdef SDL_GameController* _controller
+--- a/src_c/cython/pygame/_sdl2/controller.pyx
 b/src_c/cython/pygame/_sdl2/controller.pyx
+@@ -17,14 +17,14 @@ def _gamecontroller_init_check():
+ if not SDL_WasInit(_SDL_INIT_GAMECONTROLLER):
+ raise error("gamecontroller system not initialized")
+ 
+-cdef bint _controller_autoinit():
++cdef bint _controller_autoinit() noexcept:
+ if not SDL_WasInit(_SDL_INIT_GAMECONTROLLER):
+ if SDL_InitSubSystem(_SDL_INIT_GAMECONTROLLER):
+ return False
+ #pg_RegisterQuit(_controller_autoquit)
+ return True
+ 
+-cdef void _controller_autoquit():
++cdef void _controller_autoquit() noexcept:
+ cdef Controller controller
+ for c in Controller._controllers:
+ controller = c
+--- a/src_c/cython/pygame/_sdl2/mixer.pxd
 b/src_c/cython/pygame/_sdl2/mixer.pxd
+@@ -5,7 +5,7 @@ from .sdl2 cimport *
+ 
+ #https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html#SEC79
+ 
+-ctypedef void (*mixcallback)(void *udata, Uint8 *stream, int len) nogil
++ctypedef void (*mixcallback)(void *udata, Uint8 *stream, int len) noexcept 
nogil
+ 
+ cdef extern from "SDL_mixer.h" nogil:
+ ctypedef void (*mix_func)(void *udata, Uint8 *stream, int len)
+--- a/src_c/cython/pygame/_sdl2/mixer.pyx
 b/src_c/cython/pygame/_sdl2/mixer.pyx
+@@ -14,7 +14,7 @@ import traceback
+ # Mix_SetPostMix(noEffect, NULL);
+ 
+ 
+-cdef void recording_cb(void* userdata, Uint8* stream, int len) nogil:
++cdef void recording_cb(void* userdata, Uint8* stream, int len) noexcept nogil:
+ """ This is called in a thread made by SDL.
+ So we need the python GIL to do python stuff.
+ """
+--- a/src_c/cython/pygame/_sdl2/video.pxd
 b/src_c/cython/pygame/_sdl2/video.pxd
+@@ -430,7 +430,7 @@ cdef class Texture:
+ cdef draw_internal(self, SDL_Rect *csrcrect, SDL_Rect *cdstrect, float 
angle=*, SDL_Point *originptr=*,
+bint flip_x=*, bint flip_y=*)
+ cpdef void draw(self, srcrect=*, dstrect=*, float angle=*, origin=*,
+-bint flip_x=*, bint flip_y=*)
++bint flip_x=*, bint flip_y=*) noexcept
+ 
+ cdef class Image:
+ cdef Color _color
+@@ -445,4 +445,4 @@ cdef class Image:
+ cdef public Texture texture
+ cdef public Rect srcrect
+ 
+-cpdef void draw(self, srcrect=*, dstrect=*)
++cpdef void draw(self, srcrect=*, dstrect=*) noexcept
+--- a/src_c/cython/pygame/_sdl2/video.pyx
 b/src_c/cython/pygame/_sdl2/video.pyx
+@@ -731,7 +731,7 @@ cdef class Texture:
+ raise error()
+ 
+ cpdef void draw(self, srcrect=None, dstrect=None, float angle=0, 
origin=None,
+-bint flip_x=False, bint flip_y=False):
++bint flip_x=False, bint flip_y=False) noexcept:
+ 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-07-01 Thread Michał Górny
commit: 19ecb8d82fa4b12365987685f5433caa36fac00b
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Jul  1 13:41:33 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Jul  1 13:42:06 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19ecb8d8

dev-python/pygame: Remanifest 2.4.0

Refetch and remanifest the distfile for 2.4.0.  Diff says nothing
changes.

Closes: https://bugs.gentoo.org/909409
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest| 2 +-
 dev-python/pygame/pygame-2.4.0.ebuild | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 8105f8cbf481..efd60f047221 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,5 +1,5 @@
 DIST pygame-2.1.3.gh.tar.gz 6517003 BLAKE2B 
9f2062b24ef2e97995207fbf7572a8aa4d3475356e8646356758ad72b0b744fcf911adaa78bb730ed43c95fa23b8ed733a5573882bd83e112ae5e7e6ef099de9
 SHA512 
28f46826f58f73607b28c1411c6f2b71796cd4f98103df2dd47db842f578fe7f26dac01cb60d1cb00ac9dacfa62c6c3b913a244379ce70bd03265424e29052e6
 DIST pygame-2.2.0.gh.tar.gz 6530469 BLAKE2B 
301b8decd7afe7ad44d97b086ad27209a084884993122f0c8d6973e718cb811587aa2e2c34b5e9fc5859410ced4c298b24127b4bf166dbeaa225b5c731c66cb6
 SHA512 
212e0f6390fa84f4fbcb3051ecb83c324a59d7591fd216a0f17946a581cf01540116162357b41004a387fbd3395e030a5a6d5f804496d84558125f512c9c2617
 DIST pygame-2.3.0.gh.tar.gz 6547956 BLAKE2B 
3189dc5dda7e5fc12fe2091af304816d905a24a33f6f43070040b90bd1bac1191fe6fe1a738ccfda49b5d9b472a704962c3b6aa7d8b99bc67e15317a9df06a2b
 SHA512 
ed93cf5f0fac67b8a03f25f514ac71bf9b9a97f4df30efca9e3225396769e7616d3ce1063e6cc6ee3f4e6f1327154a9e0ec4e81b179578118af3a140bb1543bd
-DIST pygame-2.4.0.gh.tar.gz 6602242 BLAKE2B 
27335b2bff6ed20cedc07bd76d50b8cc36c3e8b5c295785b675963fd8730ada8711903db5ef167e24909d274888cfa9dda026df31a7ef5c71e90b76f446e4729
 SHA512 
4e8500753a1f4314c57c82b6fc43d5666d0602d7a1d7aba6ba8e7b208b0350fa0dcf3a6614cb75202b18931050a6bbd2d51ec08c04c8afb9b13bf27947bcd3ea
+DIST pygame-2.4.0.r1.gh.tar.gz 6602313 BLAKE2B 
9720b44f55cb0454880cd96b4f8bee77064f0b3997dc3a0aec3a6ff973356a003d37cbe89ff33b62990bc1d6ac1f815c925751031b7a8ee35ce850dee0e56d41
 SHA512 
78e7f9d705d611c99612fe0f1274aabfeb885798faecdf6b6bf6a3e2b8a22145db757ae5a6e5595075c47382bf2228cd2edada8f708e11042cfc7dfc4d17ef94
 DIST pygame-2.5.0.gh.tar.gz 6640084 BLAKE2B 
affa92cacee34ab1db246e80bea0ee425985c1c2a75b5702b2368536fe4b07ffb24f5e6ef345afb3ee63e7b1eccfc275082649251791a2f34a0eba019cc327a8
 SHA512 
741c5d11b2b52c5bc08672fb9e7420540f20879ef67b84dd18904d317f3cce7593bf08a9e7bf9d0c6470c6bb88512c9af9eb86056e654ab32d4b33532b2bf702

diff --git a/dev-python/pygame/pygame-2.4.0.ebuild 
b/dev-python/pygame/pygame-2.4.0.ebuild
index ae4fa4216d23..4c8e5322fc5d 100644
--- a/dev-python/pygame/pygame-2.4.0.ebuild
+++ b/dev-python/pygame/pygame-2.4.0.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
+PYTHON_COMPAT=( python3_{10..11} pypy3 )
 
 inherit distutils-r1
 
@@ -17,7 +17,7 @@ HOMEPAGE="
 "
 SRC_URI="
https://github.com/pygame/pygame/archive/${PV}.tar.gz
-   -> ${P}.gh.tar.gz
+   -> ${P}.r1.gh.tar.gz
 "
 
 LICENSE="LGPL-2.1"



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-06-24 Thread Michał Górny
commit: 4fd57560f77f210d3e9268458228763b7d399b66
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Jun 25 02:57:24 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jun 25 03:08:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fd57560

dev-python/pygame: Bump to 2.5.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.5.0.ebuild | 88 +++
 2 files changed, 89 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 8de1bb89c314..8105f8cbf481 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -2,3 +2,4 @@ DIST pygame-2.1.3.gh.tar.gz 6517003 BLAKE2B 
9f2062b24ef2e97995207fbf7572a8aa4d34
 DIST pygame-2.2.0.gh.tar.gz 6530469 BLAKE2B 
301b8decd7afe7ad44d97b086ad27209a084884993122f0c8d6973e718cb811587aa2e2c34b5e9fc5859410ced4c298b24127b4bf166dbeaa225b5c731c66cb6
 SHA512 
212e0f6390fa84f4fbcb3051ecb83c324a59d7591fd216a0f17946a581cf01540116162357b41004a387fbd3395e030a5a6d5f804496d84558125f512c9c2617
 DIST pygame-2.3.0.gh.tar.gz 6547956 BLAKE2B 
3189dc5dda7e5fc12fe2091af304816d905a24a33f6f43070040b90bd1bac1191fe6fe1a738ccfda49b5d9b472a704962c3b6aa7d8b99bc67e15317a9df06a2b
 SHA512 
ed93cf5f0fac67b8a03f25f514ac71bf9b9a97f4df30efca9e3225396769e7616d3ce1063e6cc6ee3f4e6f1327154a9e0ec4e81b179578118af3a140bb1543bd
 DIST pygame-2.4.0.gh.tar.gz 6602242 BLAKE2B 
27335b2bff6ed20cedc07bd76d50b8cc36c3e8b5c295785b675963fd8730ada8711903db5ef167e24909d274888cfa9dda026df31a7ef5c71e90b76f446e4729
 SHA512 
4e8500753a1f4314c57c82b6fc43d5666d0602d7a1d7aba6ba8e7b208b0350fa0dcf3a6614cb75202b18931050a6bbd2d51ec08c04c8afb9b13bf27947bcd3ea
+DIST pygame-2.5.0.gh.tar.gz 6640084 BLAKE2B 
affa92cacee34ab1db246e80bea0ee425985c1c2a75b5702b2368536fe4b07ffb24f5e6ef345afb3ee63e7b1eccfc275082649251791a2f34a0eba019cc327a8
 SHA512 
741c5d11b2b52c5bc08672fb9e7420540f20879ef67b84dd18904d317f3cce7593bf08a9e7bf9d0c6470c6bb88512c9af9eb86056e654ab32d4b33532b2bf702

diff --git a/dev-python/pygame/pygame-2.5.0.ebuild 
b/dev-python/pygame/pygame-2.5.0.ebuild
new file mode 100644
index ..520b2a145398
--- /dev/null
+++ b/dev-python/pygame/pygame-2.5.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="
+   https://www.pygame.org/
+   https://github.com/pygame/pygame/
+   https://pypi.org/project/pygame/
+"
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libjpeg-turbo:=
+   media-libs/libpng:=
+   media-libs/portmidi
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
+   !X? ( media-libs/libsdl2[threads] )
+"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )
+"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig
+"
+# util-linux provides script
+BDEPEND="
+   

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-06-13 Thread Arthur Zamarin
commit: de2990150ff927bf8a035d478b693d9004cb6c5d
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue Jun 13 18:26:43 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue Jun 13 18:26:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de299015

dev-python/pygame: Stabilize 2.4.0 ppc64, #908358

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.4.0.ebuild 
b/dev-python/pygame/pygame-2.4.0.ebuild
index 818f4756fb9b..ae4fa4216d23 100644
--- a/dev-python/pygame/pygame-2.4.0.ebuild
+++ b/dev-python/pygame/pygame-2.4.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-06-11 Thread Sam James
commit: 019b8a644a6ca1f334d5aa79421557cc9d7c222d
Author: Sam James  gentoo  org>
AuthorDate: Sun Jun 11 13:52:08 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jun 11 13:52:08 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=019b8a64

dev-python/pygame: Stabilize 2.4.0 amd64, #908358

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.4.0.ebuild 
b/dev-python/pygame/pygame-2.4.0.ebuild
index aa20bbe8f3ad..818f4756fb9b 100644
--- a/dev-python/pygame/pygame-2.4.0.ebuild
+++ b/dev-python/pygame/pygame-2.4.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-06-11 Thread Sam James
commit: 43896f92de1605a624474f6f1f1231af6df926a8
Author: Sam James  gentoo  org>
AuthorDate: Sun Jun 11 13:46:03 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jun 11 13:46:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43896f92

dev-python/pygame: Stabilize 2.4.0 x86, #908358

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.4.0.ebuild 
b/dev-python/pygame/pygame-2.4.0.ebuild
index 43ab1173030d..aa20bbe8f3ad 100644
--- a/dev-python/pygame/pygame-2.4.0.ebuild
+++ b/dev-python/pygame/pygame-2.4.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-06-11 Thread Sam James
commit: 8359fdcb8e17b994487ed9a174c1e5e6668d7ff0
Author: Sam James  gentoo  org>
AuthorDate: Sun Jun 11 13:31:17 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jun 11 13:31:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8359fdcb

dev-python/pygame: Stabilize 2.4.0 arm, #908358

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.4.0.ebuild 
b/dev-python/pygame/pygame-2.4.0.ebuild
index 4d7395d6ec36..43ab1173030d 100644
--- a/dev-python/pygame/pygame-2.4.0.ebuild
+++ b/dev-python/pygame/pygame-2.4.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-06-11 Thread Sam James
commit: f97879088cccaad86f68cf4ca40744d6095b9db3
Author: Sam James  gentoo  org>
AuthorDate: Sun Jun 11 13:31:15 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jun 11 13:31:15 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9787908

dev-python/pygame: Stabilize 2.4.0 arm64, #908358

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.4.0.ebuild 
b/dev-python/pygame/pygame-2.4.0.ebuild
index c3329c41cbfa..4d7395d6ec36 100644
--- a/dev-python/pygame/pygame-2.4.0.ebuild
+++ b/dev-python/pygame/pygame-2.4.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-05-31 Thread Sam James
commit: 10288d4f1629df0547e7d2275f3436682ac32307
Author: Sam James  gentoo  org>
AuthorDate: Wed May 31 17:47:50 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May 31 17:47:55 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10288d4f

dev-python/pygame: Stabilize 2.3.0 arm, #904778

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.3.0.ebuild 
b/dev-python/pygame/pygame-2.3.0.ebuild
index f5b76450eb0f..0adfe4bcf71e 100644
--- a/dev-python/pygame/pygame-2.3.0.ebuild
+++ b/dev-python/pygame/pygame-2.3.0.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-04-30 Thread Michał Górny
commit: 41912242e58ad75a0caa29a9fbec5159da4c6674
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May  1 04:06:04 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May  1 04:31:02 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41912242

dev-python/pygame: Bump to 2.4.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.4.0.ebuild | 87 +++
 2 files changed, 88 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 0e08cc3cb687..8de1bb89c314 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,3 +1,4 @@
 DIST pygame-2.1.3.gh.tar.gz 6517003 BLAKE2B 
9f2062b24ef2e97995207fbf7572a8aa4d3475356e8646356758ad72b0b744fcf911adaa78bb730ed43c95fa23b8ed733a5573882bd83e112ae5e7e6ef099de9
 SHA512 
28f46826f58f73607b28c1411c6f2b71796cd4f98103df2dd47db842f578fe7f26dac01cb60d1cb00ac9dacfa62c6c3b913a244379ce70bd03265424e29052e6
 DIST pygame-2.2.0.gh.tar.gz 6530469 BLAKE2B 
301b8decd7afe7ad44d97b086ad27209a084884993122f0c8d6973e718cb811587aa2e2c34b5e9fc5859410ced4c298b24127b4bf166dbeaa225b5c731c66cb6
 SHA512 
212e0f6390fa84f4fbcb3051ecb83c324a59d7591fd216a0f17946a581cf01540116162357b41004a387fbd3395e030a5a6d5f804496d84558125f512c9c2617
 DIST pygame-2.3.0.gh.tar.gz 6547956 BLAKE2B 
3189dc5dda7e5fc12fe2091af304816d905a24a33f6f43070040b90bd1bac1191fe6fe1a738ccfda49b5d9b472a704962c3b6aa7d8b99bc67e15317a9df06a2b
 SHA512 
ed93cf5f0fac67b8a03f25f514ac71bf9b9a97f4df30efca9e3225396769e7616d3ce1063e6cc6ee3f4e6f1327154a9e0ec4e81b179578118af3a140bb1543bd
+DIST pygame-2.4.0.gh.tar.gz 6602242 BLAKE2B 
27335b2bff6ed20cedc07bd76d50b8cc36c3e8b5c295785b675963fd8730ada8711903db5ef167e24909d274888cfa9dda026df31a7ef5c71e90b76f446e4729
 SHA512 
4e8500753a1f4314c57c82b6fc43d5666d0602d7a1d7aba6ba8e7b208b0350fa0dcf3a6614cb75202b18931050a6bbd2d51ec08c04c8afb9b13bf27947bcd3ea

diff --git a/dev-python/pygame/pygame-2.4.0.ebuild 
b/dev-python/pygame/pygame-2.4.0.ebuild
new file mode 100644
index ..98583ae7b73f
--- /dev/null
+++ b/dev-python/pygame/pygame-2.4.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="
+   https://www.pygame.org/
+   https://github.com/pygame/pygame/
+   https://pypi.org/project/pygame/
+"
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libjpeg-turbo:=
+   media-libs/libpng:=
+   media-libs/portmidi
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
+   !X? ( media-libs/libsdl2[threads] )
+"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )
+"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig
+"
+# util-linux provides script
+BDEPEND="
+   dev-python/cython[${PYTHON_USEDEP}]
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )
+"
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py || die
+}
+
+python_configure_all() {
+   find src_c/cython -name '*.pyx' -exec touch {} + || die
+   "${EPYTHON}" setup.py cython_only || die
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   script -eqc "${EPYTHON} -m pygame.tests -v" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}$(python_get_sitedir)"/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-04-22 Thread Sam James
commit: e984d8a81b73fc63b6359bdc5241c87a26ff5cc7
Author: Sam James  gentoo  org>
AuthorDate: Sat Apr 22 11:52:40 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Apr 22 11:52:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e984d8a8

dev-python/pygame: Stabilize 2.3.0 x86, #904778

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.3.0.ebuild 
b/dev-python/pygame/pygame-2.3.0.ebuild
index 4029d71684f8..f5b76450eb0f 100644
--- a/dev-python/pygame/pygame-2.3.0.ebuild
+++ b/dev-python/pygame/pygame-2.3.0.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-04-22 Thread Sam James
commit: e3565bb66340d1c91c376d8ad918b75d026c8a41
Author: Sam James  gentoo  org>
AuthorDate: Sat Apr 22 11:38:47 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Apr 22 11:38:47 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3565bb6

dev-python/pygame: Stabilize 2.3.0 amd64, #904778

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.3.0.ebuild 
b/dev-python/pygame/pygame-2.3.0.ebuild
index 10dbfd12045a..4029d71684f8 100644
--- a/dev-python/pygame/pygame-2.3.0.ebuild
+++ b/dev-python/pygame/pygame-2.3.0.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-04-22 Thread Arthur Zamarin
commit: 1d472d2e75599cf23215a3c1b11993c783876314
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 22 09:24:21 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 22 09:24:21 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d472d2e

dev-python/pygame: Stabilize 2.3.0 arm64, #904778

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.3.0.ebuild 
b/dev-python/pygame/pygame-2.3.0.ebuild
index 98583ae7b73f..10dbfd12045a 100644
--- a/dev-python/pygame/pygame-2.3.0.ebuild
+++ b/dev-python/pygame/pygame-2.3.0.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-30 Thread Sam James
commit: 03292371ed60350c43a63b6f8599c0f20a53896c
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 30 21:10:47 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 30 21:10:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03292371

dev-python/pygame: Stabilize 2.2.0 arm64, #903594

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.2.0.ebuild 
b/dev-python/pygame/pygame-2.2.0.ebuild
index 56142cb8661f..0adfe4bcf71e 100644
--- a/dev-python/pygame/pygame-2.2.0.ebuild
+++ b/dev-python/pygame/pygame-2.2.0.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-30 Thread Sam James
commit: 97b98c5c6f1733c04e01d66e2f1e2f65bd34631e
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 30 17:10:43 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 30 17:10:53 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97b98c5c

dev-python/pygame: Stabilize 2.2.0 amd64, #903594

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.2.0.ebuild 
b/dev-python/pygame/pygame-2.2.0.ebuild
index e7f5697325fe..56142cb8661f 100644
--- a/dev-python/pygame/pygame-2.2.0.ebuild
+++ b/dev-python/pygame/pygame-2.2.0.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-30 Thread Sam James
commit: 241683ea1d53df045c5af2f6db86f2eee19d3891
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 30 16:57:05 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 30 16:57:10 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=241683ea

dev-python/pygame: Stabilize 2.2.0 x86, #903594

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.2.0.ebuild 
b/dev-python/pygame/pygame-2.2.0.ebuild
index 658130f1ccb9..e7f5697325fe 100644
--- a/dev-python/pygame/pygame-2.2.0.ebuild
+++ b/dev-python/pygame/pygame-2.2.0.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-30 Thread Arthur Zamarin
commit: 982bd4faf52908e505a677556550b902cd7c237e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Thu Mar 30 16:29:40 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Mar 30 16:29:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=982bd4fa

dev-python/pygame: Stabilize 2.2.0 arm, #903594

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.2.0.ebuild 
b/dev-python/pygame/pygame-2.2.0.ebuild
index 98583ae7b73f..658130f1ccb9 100644
--- a/dev-python/pygame/pygame-2.2.0.ebuild
+++ b/dev-python/pygame/pygame-2.2.0.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/files/, dev-python/pygame/

2023-03-24 Thread Michał Górny
commit: 61528be38033e37ac115cedaf6944ede3ca3dff3
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Mar 24 19:45:29 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Mar 24 19:48:48 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61528be3

dev-python/pygame: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest |  1 -
 .../pygame/files/pygame-2.1.2-cython_only.patch| 36 
 dev-python/pygame/metadata.xml |  3 -
 dev-python/pygame/pygame-2.1.2-r1.ebuild   | 86 
 dev-python/pygame/pygame-2.1.2-r2.ebuild   | 95 --
 5 files changed, 221 deletions(-)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index d515591df4bd..0e08cc3cb687 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,4 +1,3 @@
-DIST pygame-2.1.2.gh.tar.gz 6100415 BLAKE2B 
4b81c2f0abc2c2c4732ddb8f8e6d4bffa5169e3d3ee2d9ea2798d294623a9c70e2ff004825030606285124ef1347177b46adc676db450785e8420de45f37db34
 SHA512 
531cb0371853def7a3ddb8eb0110fbd58acaf1b2351d7518402c9a960baca705bb34da879015e7a6cd5f2f8af98c57e7bc732021a8f62ed9f90cacf068c9c2d6
 DIST pygame-2.1.3.gh.tar.gz 6517003 BLAKE2B 
9f2062b24ef2e97995207fbf7572a8aa4d3475356e8646356758ad72b0b744fcf911adaa78bb730ed43c95fa23b8ed733a5573882bd83e112ae5e7e6ef099de9
 SHA512 
28f46826f58f73607b28c1411c6f2b71796cd4f98103df2dd47db842f578fe7f26dac01cb60d1cb00ac9dacfa62c6c3b913a244379ce70bd03265424e29052e6
 DIST pygame-2.2.0.gh.tar.gz 6530469 BLAKE2B 
301b8decd7afe7ad44d97b086ad27209a084884993122f0c8d6973e718cb811587aa2e2c34b5e9fc5859410ced4c298b24127b4bf166dbeaa225b5c731c66cb6
 SHA512 
212e0f6390fa84f4fbcb3051ecb83c324a59d7591fd216a0f17946a581cf01540116162357b41004a387fbd3395e030a5a6d5f804496d84558125f512c9c2617
 DIST pygame-2.3.0.gh.tar.gz 6547956 BLAKE2B 
3189dc5dda7e5fc12fe2091af304816d905a24a33f6f43070040b90bd1bac1191fe6fe1a738ccfda49b5d9b472a704962c3b6aa7d8b99bc67e15317a9df06a2b
 SHA512 
ed93cf5f0fac67b8a03f25f514ac71bf9b9a97f4df30efca9e3225396769e7616d3ce1063e6cc6ee3f4e6f1327154a9e0ec4e81b179578118af3a140bb1543bd

diff --git a/dev-python/pygame/files/pygame-2.1.2-cython_only.patch 
b/dev-python/pygame/files/pygame-2.1.2-cython_only.patch
deleted file mode 100644
index 4fb935dcf668..
--- a/dev-python/pygame/files/pygame-2.1.2-cython_only.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Backport to ease running cythonize, DISTUTILS_ARGS=(cython) resulted in
-reconfigure attempts that failed without PORTMIDI* being exported.
-
-https://github.com/pygame/pygame/commit/4eeffc049cf
-From: Ankith <46915066+ankit...@users.noreply.github.com>
-Date: Fri, 3 Jun 2022 21:27:57 +0530
-Subject: [PATCH] Add cython_only option to setup.py
 a/setup.py
-+++ b/setup.py
-@@ -209,7 +209,16 @@ def consume_arg(name):
- cflags += '-mfpu=neon'
- os.environ['CFLAGS'] = cflags
- 
-+compile_cython = False
-+cython_only = False
- if consume_arg('cython'):
-+compile_cython = True
-+
-+if consume_arg('cython_only'):
-+compile_cython = True
-+cython_only = True
-+
-+if compile_cython:
- # compile .pyx files
- # So you can `setup.py cython` or `setup.py cython install`
- try:
-@@ -280,6 +289,9 @@ def consume_arg(name):
- for i, kwargs in enumerate(queue):
- kwargs['progress'] = f'[{i + 1}/{count}] '
- cythonize_one(**kwargs)
-+
-+if cython_only:
-+sys.exit(0)
- 
- no_compilation = any(x in ['lint', 'format', 'docs'] for x in sys.argv)
- AUTO_CONFIG = not os.path.isfile('Setup') and not no_compilation

diff --git a/dev-python/pygame/metadata.xml b/dev-python/pygame/metadata.xml
index 4ce54800af77..0ac44a30fbe9 100644
--- a/dev-python/pygame/metadata.xml
+++ b/dev-python/pygame/metadata.xml
@@ -5,9 +5,6 @@
pyt...@gentoo.org
Python

-   
-   Enable midi support using 
media-libs/portmidi
-   

pygame
pygame/pygame

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
deleted file mode 100644
index c7b3c066375a..
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python bindings for SDL multimedia library"
-HOMEPAGE="https://www.pygame.org/;
-SRC_URI="
-   https://github.com/pygame/pygame/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
-IUSE="examples midi opengl test X"
-RESTRICT="!test? ( test )"
-
-RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
-   media-libs/freetype
-   media-libs/libpng:0=
-   

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-24 Thread Arthur Zamarin
commit: c64d15fa8f1ab44f2516a60f3e5795447ba624af
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Mar 24 19:36:01 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Mar 24 19:36:01 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c64d15fa

dev-python/pygame: Stabilize 2.1.3 ppc, #899166

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
index 619bb384a172..cb006ada8fc6 100644
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-14 Thread Michał Górny
commit: ffd6f9fa3927876bf7fd4c43addfce69009b6107
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Mar 14 16:30:07 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Mar 14 16:55:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffd6f9fa

dev-python/pygame: Bump to 2.3.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.3.0.ebuild | 87 +++
 2 files changed, 88 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index c294f2807ccf..d515591df4bd 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,3 +1,4 @@
 DIST pygame-2.1.2.gh.tar.gz 6100415 BLAKE2B 
4b81c2f0abc2c2c4732ddb8f8e6d4bffa5169e3d3ee2d9ea2798d294623a9c70e2ff004825030606285124ef1347177b46adc676db450785e8420de45f37db34
 SHA512 
531cb0371853def7a3ddb8eb0110fbd58acaf1b2351d7518402c9a960baca705bb34da879015e7a6cd5f2f8af98c57e7bc732021a8f62ed9f90cacf068c9c2d6
 DIST pygame-2.1.3.gh.tar.gz 6517003 BLAKE2B 
9f2062b24ef2e97995207fbf7572a8aa4d3475356e8646356758ad72b0b744fcf911adaa78bb730ed43c95fa23b8ed733a5573882bd83e112ae5e7e6ef099de9
 SHA512 
28f46826f58f73607b28c1411c6f2b71796cd4f98103df2dd47db842f578fe7f26dac01cb60d1cb00ac9dacfa62c6c3b913a244379ce70bd03265424e29052e6
 DIST pygame-2.2.0.gh.tar.gz 6530469 BLAKE2B 
301b8decd7afe7ad44d97b086ad27209a084884993122f0c8d6973e718cb811587aa2e2c34b5e9fc5859410ced4c298b24127b4bf166dbeaa225b5c731c66cb6
 SHA512 
212e0f6390fa84f4fbcb3051ecb83c324a59d7591fd216a0f17946a581cf01540116162357b41004a387fbd3395e030a5a6d5f804496d84558125f512c9c2617
+DIST pygame-2.3.0.gh.tar.gz 6547956 BLAKE2B 
3189dc5dda7e5fc12fe2091af304816d905a24a33f6f43070040b90bd1bac1191fe6fe1a738ccfda49b5d9b472a704962c3b6aa7d8b99bc67e15317a9df06a2b
 SHA512 
ed93cf5f0fac67b8a03f25f514ac71bf9b9a97f4df30efca9e3225396769e7616d3ce1063e6cc6ee3f4e6f1327154a9e0ec4e81b179578118af3a140bb1543bd

diff --git a/dev-python/pygame/pygame-2.3.0.ebuild 
b/dev-python/pygame/pygame-2.3.0.ebuild
new file mode 100644
index ..98583ae7b73f
--- /dev/null
+++ b/dev-python/pygame/pygame-2.3.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="
+   https://www.pygame.org/
+   https://github.com/pygame/pygame/
+   https://pypi.org/project/pygame/
+"
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libjpeg-turbo:=
+   media-libs/libpng:=
+   media-libs/portmidi
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
+   !X? ( media-libs/libsdl2[threads] )
+"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )
+"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig
+"
+# util-linux provides script
+BDEPEND="
+   dev-python/cython[${PYTHON_USEDEP}]
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )
+"
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py || die
+}
+
+python_configure_all() {
+   find src_c/cython -name '*.pyx' -exec touch {} + || die
+   "${EPYTHON}" setup.py cython_only || die
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   script -eqc "${EPYTHON} -m pygame.tests -v" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}$(python_get_sitedir)"/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-07 Thread Sam James
commit: ac3c98a25343c2adb34bf3f0d3acb72c0cb576f0
Author: Sam James  gentoo  org>
AuthorDate: Tue Mar  7 15:44:37 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Mar  7 15:44:37 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac3c98a2

dev-python/pygame: Stabilize 2.1.3 amd64, #899166

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
index f1fc0af84f1e..619bb384a172 100644
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-07 Thread Sam James
commit: c9c125606049974b57d4ed5585dc29a36b290eca
Author: Sam James  gentoo  org>
AuthorDate: Tue Mar  7 11:40:26 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Mar  7 11:40:26 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9c12560

dev-python/pygame: Stabilize 2.1.3 x86, #899166

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
index bed370655b15..f1fc0af84f1e 100644
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv sparc x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-04 Thread Arthur Zamarin
commit: 59b964fe8bec4add1fc013665a1f660d73161f75
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  4 14:19:00 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  4 14:19:00 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b964fe

dev-python/pygame: Stabilize 2.1.3 ppc64, #899166

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
index f734c5c926cb..bed370655b15 100644
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-03 Thread Arthur Zamarin
commit: f3cace074ae6a7b6b67948d5b514cdd7379bbe37
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Mar  3 19:37:04 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Mar  3 19:37:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3cace07

dev-python/pygame: Stabilize 2.1.3 sparc, #899166

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
index c365f94b6a99..f734c5c926cb 100644
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-03 Thread Arthur Zamarin
commit: b2c4dfe27c9991105d2949d7fd7b6a4e02feeace
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Mar  3 17:52:40 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Mar  3 17:52:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2c4dfe2

dev-python/pygame: Stabilize 2.1.3 arm, #899166

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
index 12df203ea970..c365f94b6a99 100644
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-03-03 Thread Arthur Zamarin
commit: 17bc24a9b1a9d93a43c4ba9c57f7cc5f1067fd14
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Mar  3 17:47:37 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Mar  3 17:47:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17bc24a9

dev-python/pygame: Stabilize 2.1.3 arm64, #899166

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
index fd31e5a5fe0e..12df203ea970 100644
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-02-27 Thread Michał Górny
commit: fe4c91d6c165fd99d99599a29f9cc8e275cd093a
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Feb 28 04:36:49 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Feb 28 05:06:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe4c91d6

dev-python/pygame: Bump to 2.2.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.2.0.ebuild | 87 +++
 2 files changed, 88 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index afb51634a1d4..c294f2807ccf 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,2 +1,3 @@
 DIST pygame-2.1.2.gh.tar.gz 6100415 BLAKE2B 
4b81c2f0abc2c2c4732ddb8f8e6d4bffa5169e3d3ee2d9ea2798d294623a9c70e2ff004825030606285124ef1347177b46adc676db450785e8420de45f37db34
 SHA512 
531cb0371853def7a3ddb8eb0110fbd58acaf1b2351d7518402c9a960baca705bb34da879015e7a6cd5f2f8af98c57e7bc732021a8f62ed9f90cacf068c9c2d6
 DIST pygame-2.1.3.gh.tar.gz 6517003 BLAKE2B 
9f2062b24ef2e97995207fbf7572a8aa4d3475356e8646356758ad72b0b744fcf911adaa78bb730ed43c95fa23b8ed733a5573882bd83e112ae5e7e6ef099de9
 SHA512 
28f46826f58f73607b28c1411c6f2b71796cd4f98103df2dd47db842f578fe7f26dac01cb60d1cb00ac9dacfa62c6c3b913a244379ce70bd03265424e29052e6
+DIST pygame-2.2.0.gh.tar.gz 6530469 BLAKE2B 
301b8decd7afe7ad44d97b086ad27209a084884993122f0c8d6973e718cb811587aa2e2c34b5e9fc5859410ced4c298b24127b4bf166dbeaa225b5c731c66cb6
 SHA512 
212e0f6390fa84f4fbcb3051ecb83c324a59d7591fd216a0f17946a581cf01540116162357b41004a387fbd3395e030a5a6d5f804496d84558125f512c9c2617

diff --git a/dev-python/pygame/pygame-2.2.0.ebuild 
b/dev-python/pygame/pygame-2.2.0.ebuild
new file mode 100644
index ..98583ae7b73f
--- /dev/null
+++ b/dev-python/pygame/pygame-2.2.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="
+   https://www.pygame.org/
+   https://github.com/pygame/pygame/
+   https://pypi.org/project/pygame/
+"
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libjpeg-turbo:=
+   media-libs/libpng:=
+   media-libs/portmidi
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
+   !X? ( media-libs/libsdl2[threads] )
+"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )
+"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig
+"
+# util-linux provides script
+BDEPEND="
+   dev-python/cython[${PYTHON_USEDEP}]
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )
+"
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py || die
+}
+
+python_configure_all() {
+   find src_c/cython -name '*.pyx' -exec touch {} + || die
+   "${EPYTHON}" setup.py cython_only || die
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   script -eqc "${EPYTHON} -m pygame.tests -v" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}$(python_get_sitedir)"/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-02-19 Thread Michał Górny
commit: 7ff4efb677bed1199dccbe204c36881c2999277f
Author: Jérôme Carretero  zougloub  eu>
AuthorDate: Fri Feb 17 15:15:06 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Feb 19 19:46:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ff4efb6

dev-python/pygame: add pypy3 to PYTHON_COMPAT

Signed-off-by: Jérôme Carretero  zougloub.eu>
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/pygame-2.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
index 855f68683bbc..fd31e5a5fe0e 100644
--- a/dev-python/pygame/pygame-2.1.3.ebuild
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-02-16 Thread Sam James
commit: 52d66f7b131d9d6e5d4c74d0a8bf89d06a852827
Author: Sam James  gentoo  org>
AuthorDate: Thu Feb 16 23:02:57 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb 16 23:02:57 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52d66f7b

dev-python/pygame: Stabilize 2.1.2-r2 arm, #894898

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r2.ebuild 
b/dev-python/pygame/pygame-2.1.2-r2.ebuild
index 249b04583cf6..2ceb169344ba 100644
--- a/dev-python/pygame/pygame-2.1.2-r2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r2.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-02-16 Thread Sam James
commit: bd206c96f4667c30f757ec6460b26c933fffbdcb
Author: Sam James  gentoo  org>
AuthorDate: Thu Feb 16 22:57:20 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb 16 22:57:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd206c96

dev-python/pygame: Stabilize 2.1.2-r2 arm64, #894898

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r2.ebuild 
b/dev-python/pygame/pygame-2.1.2-r2.ebuild
index 1d5f13709814..249b04583cf6 100644
--- a/dev-python/pygame/pygame-2.1.2-r2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r2.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-02-16 Thread Sam James
commit: 19e9864bff65230849f727bc1f612a0766cc4778
Author: Sam James  gentoo  org>
AuthorDate: Thu Feb 16 22:48:54 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb 16 22:48:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19e9864b

dev-python/pygame: Stabilize 2.1.2-r2 amd64, #894898

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r2.ebuild 
b/dev-python/pygame/pygame-2.1.2-r2.ebuild
index c6f10a469b75..1d5f13709814 100644
--- a/dev-python/pygame/pygame-2.1.2-r2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r2.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2023-02-14 Thread Michał Górny
commit: 6fe0e4ca8ba67a27f18179f85d29190586e1c720
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Feb 15 06:41:45 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Feb 15 07:16:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fe0e4ca

dev-python/pygame: Bump to 2.1.3

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.1.3.ebuild | 91 +++
 2 files changed, 92 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index fa5cbe30c92f..afb51634a1d4 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1 +1,2 @@
 DIST pygame-2.1.2.gh.tar.gz 6100415 BLAKE2B 
4b81c2f0abc2c2c4732ddb8f8e6d4bffa5169e3d3ee2d9ea2798d294623a9c70e2ff004825030606285124ef1347177b46adc676db450785e8420de45f37db34
 SHA512 
531cb0371853def7a3ddb8eb0110fbd58acaf1b2351d7518402c9a960baca705bb34da879015e7a6cd5f2f8af98c57e7bc732021a8f62ed9f90cacf068c9c2d6
+DIST pygame-2.1.3.gh.tar.gz 6517003 BLAKE2B 
9f2062b24ef2e97995207fbf7572a8aa4d3475356e8646356758ad72b0b744fcf911adaa78bb730ed43c95fa23b8ed733a5573882bd83e112ae5e7e6ef099de9
 SHA512 
28f46826f58f73607b28c1411c6f2b71796cd4f98103df2dd47db842f578fe7f26dac01cb60d1cb00ac9dacfa62c6c3b913a244379ce70bd03265424e29052e6

diff --git a/dev-python/pygame/pygame-2.1.3.ebuild 
b/dev-python/pygame/pygame-2.1.3.ebuild
new file mode 100644
index ..855f68683bbc
--- /dev/null
+++ b/dev-python/pygame/pygame-2.1.3.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="
+   https://www.pygame.org/
+   https://github.com/pygame/pygame/
+   https://pypi.org/project/pygame/
+"
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libjpeg-turbo:=
+   media-libs/libpng:=
+   media-libs/portmidi
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
+   !X? ( media-libs/libsdl2[threads] )
+"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )
+"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig
+"
+# util-linux provides script
+BDEPEND="
+   dev-python/cython[${PYTHON_USEDEP}]
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}"/pygame-2.1.2-libsdl2-2.26-tests.patch
+)
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py || die
+}
+
+python_configure_all() {
+   find src_c/cython -name '*.pyx' -exec touch {} + || die
+   "${EPYTHON}" setup.py cython_only || die
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   script -eqc "${EPYTHON} -m pygame.tests -v" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}$(python_get_sitedir)"/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/, dev-python/pygame/files/

2023-01-16 Thread Ionen Wolkens
commit: ddcb6ceca54163321fc50de50e2d333d628f3a27
Author: Ionen Wolkens  gentoo  org>
AuthorDate: Tue Jan 17 01:06:30 2023 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Tue Jan 17 05:54:32 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddcb6cec

dev-python/pygame: enable py3.11, cythonize, adjust deps

For 3.11, meant to wait for next release that was supposed to
happen "soon" and have 3.11 fixes but that was about 3 months
ago and it's blocking adding 3.11 to other packages.

Tests pass on amd64 and tried a few games, afaik only real
issue was that it lacked cythonize which should be done
regardless of a new release.

wrt deps:
* add missing [webp] to test deps (used for 1 test)
* replace deprecated virtual/jpeg
* drop unused smpeg2 (no reference to smpeg in the source I can see)
* drop ancient version checks

Revbump to ~arch as a precaution, albeit unlikely cythonize
is going to cause any trouble.

Signed-off-by: Ionen Wolkens  gentoo.org>

 .../pygame/files/pygame-2.1.2-cython_only.patch| 36 
 dev-python/pygame/pygame-2.1.2-r2.ebuild   | 95 ++
 2 files changed, 131 insertions(+)

diff --git a/dev-python/pygame/files/pygame-2.1.2-cython_only.patch 
b/dev-python/pygame/files/pygame-2.1.2-cython_only.patch
new file mode 100644
index ..4fb935dcf668
--- /dev/null
+++ b/dev-python/pygame/files/pygame-2.1.2-cython_only.patch
@@ -0,0 +1,36 @@
+Backport to ease running cythonize, DISTUTILS_ARGS=(cython) resulted in
+reconfigure attempts that failed without PORTMIDI* being exported.
+
+https://github.com/pygame/pygame/commit/4eeffc049cf
+From: Ankith <46915066+ankit...@users.noreply.github.com>
+Date: Fri, 3 Jun 2022 21:27:57 +0530
+Subject: [PATCH] Add cython_only option to setup.py
+--- a/setup.py
 b/setup.py
+@@ -209,7 +209,16 @@ def consume_arg(name):
+ cflags += '-mfpu=neon'
+ os.environ['CFLAGS'] = cflags
+ 
++compile_cython = False
++cython_only = False
+ if consume_arg('cython'):
++compile_cython = True
++
++if consume_arg('cython_only'):
++compile_cython = True
++cython_only = True
++
++if compile_cython:
+ # compile .pyx files
+ # So you can `setup.py cython` or `setup.py cython install`
+ try:
+@@ -280,6 +289,9 @@ def consume_arg(name):
+ for i, kwargs in enumerate(queue):
+ kwargs['progress'] = f'[{i + 1}/{count}] '
+ cythonize_one(**kwargs)
++
++if cython_only:
++sys.exit(0)
+ 
+ no_compilation = any(x in ['lint', 'format', 'docs'] for x in sys.argv)
+ AUTO_CONFIG = not os.path.isfile('Setup') and not no_compilation

diff --git a/dev-python/pygame/pygame-2.1.2-r2.ebuild 
b/dev-python/pygame/pygame-2.1.2-r2.ebuild
new file mode 100644
index ..c6f10a469b75
--- /dev/null
+++ b/dev-python/pygame/pygame-2.1.2-r2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="https://www.pygame.org/;
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples midi opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libjpeg-turbo:=
+   media-libs/libpng:=
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   midi? ( media-libs/portmidi )
+   X? ( media-libs/libsdl2[opengl?,threads,video,X] )
+   !X? ( media-libs/libsdl2[threads] )"
+DEPEND="
+   ${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig"
+# util-linux provides script
+BDEPEND="
+   dev-python/cython[${PYTHON_USEDEP}]
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-libsdl2-2.26-tests.patch
+   "${FILESDIR}"/${P}-cython_only.patch
+)
+
+src_prepare() {
+   distutils-r1_src_prepare
+
+   if ! use midi; then
+   rm test/midi_test.py || die
+   fi
+}
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
+
+   # Disable automagic dependency on PortMidi.
+   if ! use midi; then
+   sed -e "s:^pypm :#&:" -i Setup || die
+   fi
+}
+
+python_configure_all() {
+   find src_c/cython -name '*.pyx' -exec touch {} + || die
+   "${EPYTHON}" setup.py cython_only || die
+}
+
+python_test() {
+   local -x 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/, dev-python/pygame/files/

2023-01-16 Thread Ionen Wolkens
commit: fc91679f86f1d32bfcc6a298d4e4169c52617cad
Author: Ionen Wolkens  gentoo  org>
AuthorDate: Tue Jan 17 04:46:50 2023 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Tue Jan 17 05:54:32 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc91679f

dev-python/pygame: backport test fix for >=libsdl2-2.26.0

Signed-off-by: Ionen Wolkens  gentoo.org>

 .../pygame/files/pygame-2.1.2-libsdl2-2.26-tests.patch  | 17 +
 dev-python/pygame/pygame-2.1.2-r1.ebuild|  4 
 2 files changed, 21 insertions(+)

diff --git a/dev-python/pygame/files/pygame-2.1.2-libsdl2-2.26-tests.patch 
b/dev-python/pygame/files/pygame-2.1.2-libsdl2-2.26-tests.patch
new file mode 100644
index ..e231d1bf6d85
--- /dev/null
+++ b/dev-python/pygame/files/pygame-2.1.2-libsdl2-2.26-tests.patch
@@ -0,0 +1,17 @@
+https://github.com/pygame/pygame/commit/420c1a7341
+From: Starbuck5 <46412508+starbu...@users.noreply.github.com>
+Date: Sat, 19 Nov 2022 21:17:32 -0800
+Subject: [PATCH] Adjust surface masks to create a proper 24 bit Surface
+
+The SDL 2.26.0 pre-release rejects a 24 bit Surface created with this mask, 
which is the right call, as it needs 32 bits of space. Older SDL went ahead and 
created a 32 bit surface anyway, which it probably shouldn't have.
+--- a/test/surface_test.py
 b/test/surface_test.py
+@@ -2023,7 +2023,7 @@ def test_get_losses(self):
+ mask8 = (224, 28, 3, 0)
+ mask15 = (31744, 992, 31, 0)
+ mask16 = (63488, 2016, 31, 0)
+-mask24 = (4278190080, 16711680, 65280, 0)
++mask24 = (16711680, 65280, 255, 0)
+ mask32 = (4278190080, 16711680, 65280, 255)
+ 
+ # Surfaces with standard depths and masks

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
index bf858b684edb..c7b3c066375a 100644
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -45,6 +45,10 @@ BDEPEND="
sys-apps/util-linux
)"
 
+PATCHES=(
+   "${FILESDIR}"/${P}-libsdl2-2.26-tests.patch
+)
+
 src_prepare() {
if ! use midi; then
rm test/midi_test.py || die



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-03-26 Thread Michał Górny
commit: feeb4b849b4f09403e4c622823d003ad42f256ad
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Mar 26 17:57:41 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Mar 26 17:57:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feeb4b84

dev-python/pygame: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 81 ---
 1 file changed, 81 deletions(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
deleted file mode 100644
index 0a8ee188120a..
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2022 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 bindings for SDL multimedia library"
-HOMEPAGE="https://www.pygame.org/;
-SRC_URI="
-   https://github.com/pygame/pygame/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
-IUSE="examples midi opengl test X"
-RESTRICT="!test? ( test )"
-
-RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
-   media-libs/freetype
-   media-libs/libpng:0=
-   >=media-libs/sdl2-image-1.2.2
-   >=media-libs/sdl2-mixer-1.2.4
-   >=media-libs/sdl2-ttf-2.0.6
-   >=media-libs/smpeg2-0.4.4-r1
-   virtual/jpeg
-   midi? ( media-libs/portmidi )
-   X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
-   !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
-DEPEND="${RDEPEND}
-   test? (
-   media-libs/sdl2-image[gif,jpeg,png,tiff]
-   media-libs/sdl2-mixer[mp3,vorbis,wav]
-   )"
-# fontconfig used for fc-list
-RDEPEND+="
-   media-libs/fontconfig"
-# util-linux provides script
-BDEPEND="
-   test? (
-   media-libs/fontconfig
-   sys-apps/util-linux
-   )"
-
-src_prepare() {
-   if ! use midi; then
-   rm test/midi_test.py || die
-   fi
-   distutils-r1_src_prepare
-}
-
-python_configure() {
-   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
-   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
-
-   # Disable automagic dependency on PortMidi.
-   if ! use midi; then
-   sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
-   fi
-}
-
-python_test() {
-   local -x PYTHONPATH=${BUILD_DIR}/install/lib
-   local -x SDL_VIDEODRIVER=dummy
-   local -x SDL_AUDIODRIVER=disk
-   distutils_install_for_testing --via-root
-   script -eqc "${EPYTHON} -m pygame.tests -v" || die
-}
-
-python_install() {
-   distutils-r1_python_install
-
-   # Bug #497720
-   rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
-}
-
-python_install_all() {
-   distutils-r1_python_install_all
-   use examples && dodoc -r examples
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-03-26 Thread Arthur Zamarin
commit: fe64d32018ab9020b3a1b50912dfca76606b8aca
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar 26 16:46:26 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar 26 16:46:26 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe64d320

dev-python/pygame: Stabilize 2.1.2-r1 sparc, #835680

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
index 5340e2d9ceaf..c7da382d8d6c 100644
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-03-26 Thread Arthur Zamarin
commit: aa15a58f65ecc8acdf220ccc7d0803c0111dc8f3
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar 26 16:43:01 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar 26 16:43:01 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa15a58f

dev-python/pygame: Stabilize 2.1.2-r1 amd64, #835680

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
index 7b1896e1b631..5340e2d9ceaf 100644
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-03-26 Thread Arthur Zamarin
commit: 2a2b722163a4017582a17330c56c6756427821ef
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar 26 16:42:54 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar 26 16:42:54 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a2b7221

dev-python/pygame: Stabilize 2.1.2-r1 ppc64, #835680

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
index eec103f314f4..4be426493693 100644
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-03-26 Thread Arthur Zamarin
commit: 055da5cf6e22876b5b9f1407b9cd2a2544dfa1cb
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar 26 16:42:51 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar 26 16:42:51 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=055da5cf

dev-python/pygame: Stabilize 2.1.2-r1 ppc, #835680

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
index 414326d498a9..eec103f314f4 100644
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-03-26 Thread Arthur Zamarin
commit: c46f4877392bd43b2c86292682ade71fa6b4fc7e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar 26 16:42:48 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar 26 16:42:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c46f4877

dev-python/pygame: Stabilize 2.1.2-r1 arm64, #835680

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
index d2bd2fb98f75..414326d498a9 100644
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-03-26 Thread Arthur Zamarin
commit: f4f7b3dc0b1ec94c6038c5742cde9cc5f9ad36ff
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar 26 16:42:45 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar 26 16:42:45 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4f7b3dc

dev-python/pygame: Stabilize 2.1.2-r1 arm, #835680

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
index b088b19e215d..d2bd2fb98f75 100644
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-03-26 Thread Arthur Zamarin
commit: 987d78f5e46f96307f9347ecdb4256e9cef5b342
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar 26 16:42:58 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar 26 16:42:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=987d78f5

dev-python/pygame: Stabilize 2.1.2-r1 x86, #835680

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
index 4be426493693..7b1896e1b631 100644
--- a/dev-python/pygame/pygame-2.1.2-r1.ebuild
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-15 Thread Michał Górny
commit: 62c09f5146af4f83f76683be87af7e0f3fd219ee
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Feb 15 09:17:29 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Feb 15 09:39:06 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62c09f51

dev-python/pygame: Use PEP517 build

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/pygame-2.1.2-r1.ebuild | 82 
 1 file changed, 82 insertions(+)

diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild 
b/dev-python/pygame/pygame-2.1.2-r1.ebuild
new file mode 100644
index ..8678150bfbb4
--- /dev/null
+++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="https://www.pygame.org/;
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="examples midi opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libpng:0=
+   >=media-libs/sdl2-image-1.2.2
+   >=media-libs/sdl2-mixer-1.2.4
+   >=media-libs/sdl2-ttf-2.0.6
+   >=media-libs/smpeg2-0.4.4-r1
+   virtual/jpeg
+   midi? ( media-libs/portmidi )
+   X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
+   !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
+DEPEND="${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png,tiff]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig"
+# util-linux provides script
+BDEPEND="
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )"
+
+src_prepare() {
+   if ! use midi; then
+   rm test/midi_test.py || die
+   fi
+   distutils-r1_src_prepare
+}
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
+
+   # Disable automagic dependency on PortMidi.
+   if ! use midi; then
+   sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
+   fi
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   script -eqc "${EPYTHON} -m pygame.tests -v" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}$(python_get_sitedir)"/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-15 Thread Michał Górny
commit: 9ecbcf25643067edd5d3aa71d1331588935a06da
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Feb 15 09:11:16 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Feb 15 09:39:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ecbcf25

dev-python/pygame: Run tests verbosely

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index fed06bb2f71f..cbcc38720110 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -65,7 +65,7 @@ python_test() {
local -x SDL_VIDEODRIVER=dummy
local -x SDL_AUDIODRIVER=disk
distutils_install_for_testing --via-root
-   script -eqc "${EPYTHON} -m pygame.tests" || die
+   script -eqc "${EPYTHON} -m pygame.tests -v" || die
 }
 
 python_install() {



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-15 Thread Michał Górny
commit: 45a64c58f24ef26c59943956c13c09cc25850499
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Feb 15 09:11:40 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Feb 15 09:39:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a64c58

dev-python/pygame: Remove the unmaintained live ebuild

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/pygame-.ebuild | 77 
 1 file changed, 77 deletions(-)

diff --git a/dev-python/pygame/pygame-.ebuild 
b/dev-python/pygame/pygame-.ebuild
deleted file mode 100644
index 7207ee8e45a9..
--- a/dev-python/pygame/pygame-.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1 git-r3
-
-DESCRIPTION="Python bindings for SDL multimedia library"
-HOMEPAGE="https://www.pygame.org/;
-EGIT_REPO_URI="https://github.com/pygame/pygame.git;
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS=""
-IUSE="doc examples midi opengl test X"
-RESTRICT="!test? ( test )"
-
-RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
-   >=media-libs/sdl2-image-1.2.2
-   >=media-libs/sdl2-mixer-1.2.4
-   >=media-libs/sdl2-ttf-2.0.6
-   >=media-libs/smpeg2-0.4.4-r1
-   midi? ( media-libs/portmidi )
-   X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
-   !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
-DEPEND="${RDEPEND}
-   test? (
-   media-libs/sdl2-image[gif,jpeg,png]
-   media-libs/sdl2-mixer[mp3,vorbis,wav]
-   )"
-# fontconfig used for fc-list
-RDEPEND+="
-   media-libs/fontconfig"
-# util-linux provides script
-BDEPEND="
-   test? (
-   media-libs/fontconfig
-   sys-apps/util-linux
-   )"
-
-python_configure() {
-   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
-   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
-
-   # Disable automagic dependency on PortMidi.
-   if ! use midi; then
-   sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
-   fi
-}
-
-python_test() {
-   local -x PYTHONPATH=
-   local -x SDL_VIDEODRIVER=dummy
-   local -x SDL_AUDIODRIVER=disk
-   distutils_install_for_testing
-   script -eqc "${EPYTHON} -m pygame.tests" || die
-}
-
-python_install() {
-   distutils-r1_python_install
-
-   # Bug #497720
-   rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
-}
-
-python_install_all() {
-   distutils-r1_python_install_all
-
-   if use doc; then
-   docinto html
-   dodoc -r docs/*
-   fi
-
-   use examples && dodoc -r examples
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-15 Thread Michał Górny
commit: dbf516071347552f163cadcaf2e12034da367a32
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Feb 15 09:12:00 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Feb 15 09:39:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbf51607

dev-python/pygame: Require tiff support in sdl2-image

Closes: https://bugs.gentoo.org/790113
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index cbcc38720110..0a8ee188120a 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -30,7 +30,7 @@ RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
!X? ( >=media-libs/libsdl2-1.2.5[threads] )"
 DEPEND="${RDEPEND}
test? (
-   media-libs/sdl2-image[gif,jpeg,png]
+   media-libs/sdl2-image[gif,jpeg,png,tiff]
media-libs/sdl2-mixer[mp3,vorbis,wav]
)"
 # fontconfig used for fc-list



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/, dev-python/pygame/files/

2022-02-13 Thread Michał Górny
commit: 908b0505c9c1e316ec2b6b74f730890253982d0b
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Feb 13 09:42:14 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Feb 13 09:42:14 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=908b0505

dev-python/pygame: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest |   8 --
 .../pygame/files/pygame-2.0.0_pre10-py39.patch |  34 ---
 dev-python/pygame/pygame-1.9.6-r1.ebuild   | 102 -
 dev-python/pygame/pygame-2.0.0.ebuild  |  91 --
 dev-python/pygame/pygame-2.0.0_pre10.ebuild|  85 -
 dev-python/pygame/pygame-2.0.1-r1.ebuild   |  96 ---
 dev-python/pygame/pygame-2.0.2.ebuild  |  91 --
 dev-python/pygame/pygame-2.0.3.ebuild  |  91 --
 dev-python/pygame/pygame-2.1.0.ebuild  |  91 --
 dev-python/pygame/pygame-2.1.1.ebuild  |  91 --
 10 files changed, 780 deletions(-)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 6abf32207f2e..fa5cbe30c92f 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -1,9 +1 @@
-DIST pygame-1.9.6.tar.gz 3223131 BLAKE2B 
a4d04c933fcad244d32bd512ef8717e60ec923f361e9e0296b5c7d57c5949d3434a040d028249c5b8f3c865ac3dcdbb32e6f0b223186678595a8625213ba2a17
 SHA512 
d923c554203a7c35e37921658cb4c5bf50215ab0ff4d2b869a1ee6b2e2ca31d66ec4bbde4287f5a777838ffe932cd15b993cb0224b86e43d684de61c35acbcd0
-DIST pygame-2.0.0.dev10.tar.gz 5567274 BLAKE2B 
7d78f260318cfabeb33f1073ae210f890d2f772e3ef302f243cca67724c6012355644ba60d4cae6de72db6dd61d320177deff6ee83dd355ec4cc33e841b565f7
 SHA512 
4cee7599fd8a6d31ddd66bfaad3bbb67cb167c1ae339f37e83322d810fea8746e81a191c224a0eeb6cc43a64bf1730ff0886c82f1a4f642e2e656ca9a837bf9e
-DIST pygame-2.0.0.tar.gz 5522621 BLAKE2B 
49773979af53595d3ff2db1a18e4bcd217e26db3ec28d6129d2a588f23a1bd5326fa79fab32c25aa796738cde0e68f5741bee58f62432e86f89cd49ee17a8f14
 SHA512 
3f65924d0e1d2863b84118a4e468b521a289e2cf174405c6f3ee2b2a2ed399cde7f9f310d57c4166351f84caaea02dd7408ee852dbcee7c205bb2955b6078fda
-DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B 
b27cb9001499a00da62dac0486a72079ff4e60ca609be444b04f547cb2372090da91d2670307ce7068b964458e6ac1284402439bb7809c9735135d5e93a71d78
 SHA512 
1535a872c43e5f75acdfa7d325fcfa0f0f826e18602b28b228cfdbe068a382678c21568d80873f7af4f0b318e693adb38afa4d632f8294f716a47188abe5245a
-DIST pygame-2.0.2.tar.gz 6309459 BLAKE2B 
0cb23b4226d8d86f938cba08b67ab3bd847c9e4122f5f6cce4d8810b239df672ab282e1b77dd7d71423f805c7c0418e54050347dfb9e506b799eb8e0b4f16856
 SHA512 
2cef4669e5bd81759c9886293ebc1b82e1ed3b4576a3632437f66cb353af330e15dd39e7378f2be8fd25838f202529dc550208a031aec77e1d05443a070638c8
-DIST pygame-2.0.3.tar.gz 5804279 BLAKE2B 
fb58dd57a9288bdff3c0d01389e363968ebddd4b2b0fa92335c825297026c5858da4f73a870f84e0c3c7cf302bd9f4163807c97a348d581658df7e7695fcb4fb
 SHA512 
1d2b4cb1e577f0244c2b92511b8fa0ab7bcd689d04a4451ced41e6d97758ba380d7e681e60abed26c81b96bd49d505cf481c67a466437b3cfdb547e744f22949
-DIST pygame-2.1.0.tar.gz 5790847 BLAKE2B 
1d2fc9f8d86ab823008cbb4c7431f44dd17ba5b356ed755a308737eb5a0db3c4033efe3fd4245bd740a33c6f4e5d2816daefc3785c747ef046b8f98aa8f58589
 SHA512 
b9394bea5dad54760297c75133ca56c99f89781340029f8866b169fcef3a7e12c16d00a18dd95f4fe3c13e393915d5b29b8d547465efb94f84b4875579166f1a
-DIST pygame-2.1.1.tar.gz 10132023 BLAKE2B 
41f6beb02ada13208d71375f15e247c785261801f82dfc47dba22a28692b5aea01072e46f2fd281451ce778d5818812c74776bd791d47d465645fdef63ffefec
 SHA512 
eea4be27bbf29cfeb98fb095121341e1366fed1cc1f3c16bb076adbd2f1c8583e51d34b93811259a80ea3e2a3bde83c8144e91cd83a7dde3cf730805c0b99ac3
 DIST pygame-2.1.2.gh.tar.gz 6100415 BLAKE2B 
4b81c2f0abc2c2c4732ddb8f8e6d4bffa5169e3d3ee2d9ea2798d294623a9c70e2ff004825030606285124ef1347177b46adc676db450785e8420de45f37db34
 SHA512 
531cb0371853def7a3ddb8eb0110fbd58acaf1b2351d7518402c9a960baca705bb34da879015e7a6cd5f2f8af98c57e7bc732021a8f62ed9f90cacf068c9c2d6

diff --git a/dev-python/pygame/files/pygame-2.0.0_pre10-py39.patch 
b/dev-python/pygame/files/pygame-2.0.0_pre10-py39.patch
deleted file mode 100644
index 9cfaa476db39..
--- a/dev-python/pygame/files/pygame-2.0.0_pre10-py39.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 159908e5726c3df5df58429d1ff3113137c57f98 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 
-Date: Mon, 8 Jun 2020 09:35:41 +0200
-Subject: [PATCH] Replace long-deprecated Thread.isAlive() with .is_alive()
-
-Replace Thread.isAlive() calls with Thread.is_alive() to fix
-compatibility with Python 3.9.  The new method was present since py2.6,
-the old one got deprecated in py3.1 and was finally removed in py3.9.

- test/threads_test.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/test/threads_test.py b/test/threads_test.py

[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-13 Thread Jakov Smolić
commit: 3e65a3cbf3cc124b588cfbf4897732858304b231
Author: Jakov Smolić  gentoo  org>
AuthorDate: Sun Feb 13 09:36:40 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Sun Feb 13 09:36:40 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e65a3cb

dev-python/pygame: Stabilize 2.1.2 x86, #832672

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index ab7b9083e27d..fed06bb2f71f 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-13 Thread Jakov Smolić
commit: 05c3528c8b7b2cf10a750b0593bb1a2cb6dc56e8
Author: Jakov Smolić  gentoo  org>
AuthorDate: Sun Feb 13 09:36:36 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Sun Feb 13 09:36:36 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05c3528c

dev-python/pygame: Stabilize 2.1.2 amd64, #832672

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index f5bd8770c0ac..ab7b9083e27d 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-11 Thread Arthur Zamarin
commit: 7779d52ed05cdfb162a491f5747a1781b21e7908
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Feb 11 20:48:55 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Feb 11 20:48:55 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7779d52e

dev-python/pygame: Stabilize 2.1.2 ppc, #832672

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index a65b9b5b99a8..01c18ae7da89 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ~ppc64 sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-11 Thread Arthur Zamarin
commit: 8fef085b892546b31d329de2b42d706e1a04117e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Feb 11 20:48:47 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Feb 11 20:48:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fef085b

dev-python/pygame: Stabilize 2.1.2 arm, #832672

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index 694acf735de8..cc4f8b345dea 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-11 Thread Arthur Zamarin
commit: be7edf8da5ce7ab4f361b0a2e82db8d1300562d4
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Feb 11 20:48:51 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Feb 11 20:48:51 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be7edf8d

dev-python/pygame: Stabilize 2.1.2 arm64, #832672

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index cc4f8b345dea..a65b9b5b99a8 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-11 Thread Arthur Zamarin
commit: 62b2385ef92d14db59ede255e8f7796aa0f6fe7a
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Feb 11 20:48:58 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Feb 11 20:48:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62b2385e

dev-python/pygame: Stabilize 2.1.2 ppc64, #832672

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index 01c18ae7da89..f5bd8770c0ac 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -13,7 +13,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ~ppc64 sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2022-02-11 Thread Arthur Zamarin
commit: 66cf9ddc2c6161a394a5bff7c3b477833ba9844e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Feb 11 19:17:19 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Feb 11 19:17:19 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66cf9ddc

dev-python/pygame: Stabilize 2.1.2 sparc, #832672

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
index 24fa1072e037..694acf735de8 100644
--- a/dev-python/pygame/pygame-2.1.2.ebuild
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -13,7 +13,7 @@ SRC_URI="
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86"
 IUSE="examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-12-30 Thread Arthur Zamarin
commit: 6b1ef5ba9dfe5b5d0943a6f55b5fe52c5a614091
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Thu Dec 30 20:06:31 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Dec 30 20:06:31 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b1ef5ba

dev-python/pygame: Stabilize 2.1.0 arm, #823545

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.0.ebuild 
b/dev-python/pygame/pygame-2.1.0.ebuild
index 06bbaeb6ea46..105b520dc82d 100644
--- a/dev-python/pygame/pygame-2.1.0.ebuild
+++ b/dev-python/pygame/pygame-2.1.0.ebuild
@@ -17,7 +17,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc ~x86"
 IUSE="doc examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-12-30 Thread Arthur Zamarin
commit: faa03670f213f8772ce00a4a318b0e7b93723d7f
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Thu Dec 30 18:46:41 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Dec 30 18:46:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faa03670

dev-python/pygame: Stabilize 2.1.0 arm64, #823545

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.0.ebuild 
b/dev-python/pygame/pygame-2.1.0.ebuild
index 4f01fbdc47f3..06bbaeb6ea46 100644
--- a/dev-python/pygame/pygame-2.1.0.ebuild
+++ b/dev-python/pygame/pygame-2.1.0.ebuild
@@ -17,7 +17,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc ~x86"
 IUSE="doc examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-12-28 Thread Michał Górny
commit: aab1331fb636abb16bf29867c90a79fe887b0d94
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Dec 28 08:32:07 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Dec 28 09:03:43 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aab1331f

dev-python/pygame: Bump to 2.1.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.1.2.ebuild | 81 +++
 2 files changed, 82 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index bf80956d1ccf..6abf32207f2e 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -6,3 +6,4 @@ DIST pygame-2.0.2.tar.gz 6309459 BLAKE2B 
0cb23b4226d8d86f938cba08b67ab3bd847c9e4
 DIST pygame-2.0.3.tar.gz 5804279 BLAKE2B 
fb58dd57a9288bdff3c0d01389e363968ebddd4b2b0fa92335c825297026c5858da4f73a870f84e0c3c7cf302bd9f4163807c97a348d581658df7e7695fcb4fb
 SHA512 
1d2b4cb1e577f0244c2b92511b8fa0ab7bcd689d04a4451ced41e6d97758ba380d7e681e60abed26c81b96bd49d505cf481c67a466437b3cfdb547e744f22949
 DIST pygame-2.1.0.tar.gz 5790847 BLAKE2B 
1d2fc9f8d86ab823008cbb4c7431f44dd17ba5b356ed755a308737eb5a0db3c4033efe3fd4245bd740a33c6f4e5d2816daefc3785c747ef046b8f98aa8f58589
 SHA512 
b9394bea5dad54760297c75133ca56c99f89781340029f8866b169fcef3a7e12c16d00a18dd95f4fe3c13e393915d5b29b8d547465efb94f84b4875579166f1a
 DIST pygame-2.1.1.tar.gz 10132023 BLAKE2B 
41f6beb02ada13208d71375f15e247c785261801f82dfc47dba22a28692b5aea01072e46f2fd281451ce778d5818812c74776bd791d47d465645fdef63ffefec
 SHA512 
eea4be27bbf29cfeb98fb095121341e1366fed1cc1f3c16bb076adbd2f1c8583e51d34b93811259a80ea3e2a3bde83c8144e91cd83a7dde3cf730805c0b99ac3
+DIST pygame-2.1.2.gh.tar.gz 6100415 BLAKE2B 
4b81c2f0abc2c2c4732ddb8f8e6d4bffa5169e3d3ee2d9ea2798d294623a9c70e2ff004825030606285124ef1347177b46adc676db450785e8420de45f37db34
 SHA512 
531cb0371853def7a3ddb8eb0110fbd58acaf1b2351d7518402c9a960baca705bb34da879015e7a6cd5f2f8af98c57e7bc732021a8f62ed9f90cacf068c9c2d6

diff --git a/dev-python/pygame/pygame-2.1.2.ebuild 
b/dev-python/pygame/pygame-2.1.2.ebuild
new file mode 100644
index ..24fa1072e037
--- /dev/null
+++ b/dev-python/pygame/pygame-2.1.2.ebuild
@@ -0,0 +1,81 @@
+# 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 bindings for SDL multimedia library"
+HOMEPAGE="https://www.pygame.org/;
+SRC_URI="
+   https://github.com/pygame/pygame/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="examples midi opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libpng:0=
+   >=media-libs/sdl2-image-1.2.2
+   >=media-libs/sdl2-mixer-1.2.4
+   >=media-libs/sdl2-ttf-2.0.6
+   >=media-libs/smpeg2-0.4.4-r1
+   virtual/jpeg
+   midi? ( media-libs/portmidi )
+   X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
+   !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
+DEPEND="${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig"
+# util-linux provides script
+BDEPEND="
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )"
+
+src_prepare() {
+   if ! use midi; then
+   rm test/midi_test.py || die
+   fi
+   distutils-r1_src_prepare
+}
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
+
+   # Disable automagic dependency on PortMidi.
+   if ! use midi; then
+   sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
+   fi
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   distutils_install_for_testing --via-root
+   script -eqc "${EPYTHON} -m pygame.tests" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-12-25 Thread Michał Górny
commit: 271d704d0eda938dd165a9aa8c2097884948bf8e
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Dec 25 07:44:17 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Dec 25 08:09:29 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=271d704d

dev-python/pygame: Bump to 2.1.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.1.1.ebuild | 91 +++
 2 files changed, 92 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 30ae8e15bdb5..bf80956d1ccf 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -5,3 +5,4 @@ DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B 
b27cb9001499a00da62dac0486a72079ff4e60c
 DIST pygame-2.0.2.tar.gz 6309459 BLAKE2B 
0cb23b4226d8d86f938cba08b67ab3bd847c9e4122f5f6cce4d8810b239df672ab282e1b77dd7d71423f805c7c0418e54050347dfb9e506b799eb8e0b4f16856
 SHA512 
2cef4669e5bd81759c9886293ebc1b82e1ed3b4576a3632437f66cb353af330e15dd39e7378f2be8fd25838f202529dc550208a031aec77e1d05443a070638c8
 DIST pygame-2.0.3.tar.gz 5804279 BLAKE2B 
fb58dd57a9288bdff3c0d01389e363968ebddd4b2b0fa92335c825297026c5858da4f73a870f84e0c3c7cf302bd9f4163807c97a348d581658df7e7695fcb4fb
 SHA512 
1d2b4cb1e577f0244c2b92511b8fa0ab7bcd689d04a4451ced41e6d97758ba380d7e681e60abed26c81b96bd49d505cf481c67a466437b3cfdb547e744f22949
 DIST pygame-2.1.0.tar.gz 5790847 BLAKE2B 
1d2fc9f8d86ab823008cbb4c7431f44dd17ba5b356ed755a308737eb5a0db3c4033efe3fd4245bd740a33c6f4e5d2816daefc3785c747ef046b8f98aa8f58589
 SHA512 
b9394bea5dad54760297c75133ca56c99f89781340029f8866b169fcef3a7e12c16d00a18dd95f4fe3c13e393915d5b29b8d547465efb94f84b4875579166f1a
+DIST pygame-2.1.1.tar.gz 10132023 BLAKE2B 
41f6beb02ada13208d71375f15e247c785261801f82dfc47dba22a28692b5aea01072e46f2fd281451ce778d5818812c74776bd791d47d465645fdef63ffefec
 SHA512 
eea4be27bbf29cfeb98fb095121341e1366fed1cc1f3c16bb076adbd2f1c8583e51d34b93811259a80ea3e2a3bde83c8144e91cd83a7dde3cf730805c0b99ac3

diff --git a/dev-python/pygame/pygame-2.1.1.ebuild 
b/dev-python/pygame/pygame-2.1.1.ebuild
new file mode 100644
index ..1ee94dd33f0e
--- /dev/null
+++ b/dev-python/pygame/pygame-2.1.1.ebuild
@@ -0,0 +1,91 @@
+# 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
+
+MY_PV=${PV/_pre/.dev}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="https://www.pygame.org/;
+SRC_URI="
+   
https://github.com/pygame/pygame/releases/download/${MY_PV}/${MY_P}.tar.gz;
+S=${WORKDIR}/${MY_P}
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples midi opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libpng:0=
+   >=media-libs/sdl2-image-1.2.2
+   >=media-libs/sdl2-mixer-1.2.4
+   >=media-libs/sdl2-ttf-2.0.6
+   >=media-libs/smpeg2-0.4.4-r1
+   virtual/jpeg
+   midi? ( media-libs/portmidi )
+   X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
+   !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
+DEPEND="${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig"
+# util-linux provides script
+BDEPEND="
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )"
+
+src_prepare() {
+   if ! use midi; then
+   rm test/midi_test.py || die
+   fi
+   distutils-r1_src_prepare
+}
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
+
+   # Disable automagic dependency on PortMidi.
+   if ! use midi; then
+   sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
+   fi
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   distutils_install_for_testing --via-root
+   script -eqc "${EPYTHON} -m pygame.tests" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   if use doc; then
+   docinto html
+   dodoc -r docs/*
+   fi
+
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-11-29 Thread Arthur Zamarin
commit: b849e8515c14ebabf0f060d9d1a23f8fbf7f9e00
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon Nov 29 10:22:00 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon Nov 29 10:22:18 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b849e851

dev-python/pygame: Stabilize 2.1.0 amd64, #823545

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.0.ebuild 
b/dev-python/pygame/pygame-2.1.0.ebuild
index f337bef6b3e6..4f01fbdc47f3 100644
--- a/dev-python/pygame/pygame-2.1.0.ebuild
+++ b/dev-python/pygame/pygame-2.1.0.ebuild
@@ -17,7 +17,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc ~x86"
 IUSE="doc examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-11-28 Thread Arthur Zamarin
commit: 0ea2971e8acc555d2f78b54fed066cde967e7bcc
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon Nov 29 07:37:22 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon Nov 29 07:39:26 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ea2971e

dev-python/pygame: Stabilize 2.1.0 ppc64, #823545

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.1.0.ebuild 
b/dev-python/pygame/pygame-2.1.0.ebuild
index 1ee94dd33f0e..f337bef6b3e6 100644
--- a/dev-python/pygame/pygame-2.1.0.ebuild
+++ b/dev-python/pygame/pygame-2.1.0.ebuild
@@ -17,7 +17,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc ~x86"
 IUSE="doc examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-11-08 Thread Michał Górny
commit: 6252aeaa466fcc02c7b5eec6764a6a14f785999e
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Nov  8 08:26:13 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Nov  8 08:26:13 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6252aeaa

dev-python/pygame: Bump to 2.1.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.1.0.ebuild | 91 +++
 2 files changed, 92 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 534421b453e..30ae8e15bdb 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -4,3 +4,4 @@ DIST pygame-2.0.0.tar.gz 5522621 BLAKE2B 
49773979af53595d3ff2db1a18e4bcd217e26db
 DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B 
b27cb9001499a00da62dac0486a72079ff4e60ca609be444b04f547cb2372090da91d2670307ce7068b964458e6ac1284402439bb7809c9735135d5e93a71d78
 SHA512 
1535a872c43e5f75acdfa7d325fcfa0f0f826e18602b28b228cfdbe068a382678c21568d80873f7af4f0b318e693adb38afa4d632f8294f716a47188abe5245a
 DIST pygame-2.0.2.tar.gz 6309459 BLAKE2B 
0cb23b4226d8d86f938cba08b67ab3bd847c9e4122f5f6cce4d8810b239df672ab282e1b77dd7d71423f805c7c0418e54050347dfb9e506b799eb8e0b4f16856
 SHA512 
2cef4669e5bd81759c9886293ebc1b82e1ed3b4576a3632437f66cb353af330e15dd39e7378f2be8fd25838f202529dc550208a031aec77e1d05443a070638c8
 DIST pygame-2.0.3.tar.gz 5804279 BLAKE2B 
fb58dd57a9288bdff3c0d01389e363968ebddd4b2b0fa92335c825297026c5858da4f73a870f84e0c3c7cf302bd9f4163807c97a348d581658df7e7695fcb4fb
 SHA512 
1d2b4cb1e577f0244c2b92511b8fa0ab7bcd689d04a4451ced41e6d97758ba380d7e681e60abed26c81b96bd49d505cf481c67a466437b3cfdb547e744f22949
+DIST pygame-2.1.0.tar.gz 5790847 BLAKE2B 
1d2fc9f8d86ab823008cbb4c7431f44dd17ba5b356ed755a308737eb5a0db3c4033efe3fd4245bd740a33c6f4e5d2816daefc3785c747ef046b8f98aa8f58589
 SHA512 
b9394bea5dad54760297c75133ca56c99f89781340029f8866b169fcef3a7e12c16d00a18dd95f4fe3c13e393915d5b29b8d547465efb94f84b4875579166f1a

diff --git a/dev-python/pygame/pygame-2.1.0.ebuild 
b/dev-python/pygame/pygame-2.1.0.ebuild
new file mode 100644
index 000..1ee94dd33f0
--- /dev/null
+++ b/dev-python/pygame/pygame-2.1.0.ebuild
@@ -0,0 +1,91 @@
+# 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
+
+MY_PV=${PV/_pre/.dev}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="https://www.pygame.org/;
+SRC_URI="
+   
https://github.com/pygame/pygame/releases/download/${MY_PV}/${MY_P}.tar.gz;
+S=${WORKDIR}/${MY_P}
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples midi opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libpng:0=
+   >=media-libs/sdl2-image-1.2.2
+   >=media-libs/sdl2-mixer-1.2.4
+   >=media-libs/sdl2-ttf-2.0.6
+   >=media-libs/smpeg2-0.4.4-r1
+   virtual/jpeg
+   midi? ( media-libs/portmidi )
+   X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
+   !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
+DEPEND="${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig"
+# util-linux provides script
+BDEPEND="
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )"
+
+src_prepare() {
+   if ! use midi; then
+   rm test/midi_test.py || die
+   fi
+   distutils-r1_src_prepare
+}
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
+
+   # Disable automagic dependency on PortMidi.
+   if ! use midi; then
+   sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
+   fi
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   distutils_install_for_testing --via-root
+   script -eqc "${EPYTHON} -m pygame.tests" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   if use doc; then
+   docinto html
+   dodoc -r docs/*
+   fi
+
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-11-01 Thread Michał Górny
commit: 5179bcd3bf06eaa1b2355207fe54f80d2e5bea5f
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Nov  1 07:34:38 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Nov  1 08:32:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5179bcd3

dev-python/pygame: Bump to 2.0.3

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.0.3.ebuild | 91 +++
 2 files changed, 92 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 2758cb912ab..534421b453e 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -3,3 +3,4 @@ DIST pygame-2.0.0.dev10.tar.gz 5567274 BLAKE2B 
7d78f260318cfabeb33f1073ae210f890
 DIST pygame-2.0.0.tar.gz 5522621 BLAKE2B 
49773979af53595d3ff2db1a18e4bcd217e26db3ec28d6129d2a588f23a1bd5326fa79fab32c25aa796738cde0e68f5741bee58f62432e86f89cd49ee17a8f14
 SHA512 
3f65924d0e1d2863b84118a4e468b521a289e2cf174405c6f3ee2b2a2ed399cde7f9f310d57c4166351f84caaea02dd7408ee852dbcee7c205bb2955b6078fda
 DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B 
b27cb9001499a00da62dac0486a72079ff4e60ca609be444b04f547cb2372090da91d2670307ce7068b964458e6ac1284402439bb7809c9735135d5e93a71d78
 SHA512 
1535a872c43e5f75acdfa7d325fcfa0f0f826e18602b28b228cfdbe068a382678c21568d80873f7af4f0b318e693adb38afa4d632f8294f716a47188abe5245a
 DIST pygame-2.0.2.tar.gz 6309459 BLAKE2B 
0cb23b4226d8d86f938cba08b67ab3bd847c9e4122f5f6cce4d8810b239df672ab282e1b77dd7d71423f805c7c0418e54050347dfb9e506b799eb8e0b4f16856
 SHA512 
2cef4669e5bd81759c9886293ebc1b82e1ed3b4576a3632437f66cb353af330e15dd39e7378f2be8fd25838f202529dc550208a031aec77e1d05443a070638c8
+DIST pygame-2.0.3.tar.gz 5804279 BLAKE2B 
fb58dd57a9288bdff3c0d01389e363968ebddd4b2b0fa92335c825297026c5858da4f73a870f84e0c3c7cf302bd9f4163807c97a348d581658df7e7695fcb4fb
 SHA512 
1d2b4cb1e577f0244c2b92511b8fa0ab7bcd689d04a4451ced41e6d97758ba380d7e681e60abed26c81b96bd49d505cf481c67a466437b3cfdb547e744f22949

diff --git a/dev-python/pygame/pygame-2.0.3.ebuild 
b/dev-python/pygame/pygame-2.0.3.ebuild
new file mode 100644
index 000..1ee94dd33f0
--- /dev/null
+++ b/dev-python/pygame/pygame-2.0.3.ebuild
@@ -0,0 +1,91 @@
+# 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
+
+MY_PV=${PV/_pre/.dev}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="https://www.pygame.org/;
+SRC_URI="
+   
https://github.com/pygame/pygame/releases/download/${MY_PV}/${MY_P}.tar.gz;
+S=${WORKDIR}/${MY_P}
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples midi opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libpng:0=
+   >=media-libs/sdl2-image-1.2.2
+   >=media-libs/sdl2-mixer-1.2.4
+   >=media-libs/sdl2-ttf-2.0.6
+   >=media-libs/smpeg2-0.4.4-r1
+   virtual/jpeg
+   midi? ( media-libs/portmidi )
+   X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
+   !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
+DEPEND="${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig"
+# util-linux provides script
+BDEPEND="
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )"
+
+src_prepare() {
+   if ! use midi; then
+   rm test/midi_test.py || die
+   fi
+   distutils-r1_src_prepare
+}
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
+
+   # Disable automagic dependency on PortMidi.
+   if ! use midi; then
+   sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
+   fi
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   distutils_install_for_testing --via-root
+   script -eqc "${EPYTHON} -m pygame.tests" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   if use doc; then
+   docinto html
+   dodoc -r docs/*
+   fi
+
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-10-11 Thread Michał Górny
commit: d10d862c530f8b680bf1422f6d07a28f9cc41e70
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Oct 11 07:03:30 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Oct 11 07:56:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d10d862c

dev-python/pygame: Bump to 2.0.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pygame/Manifest|  1 +
 dev-python/pygame/pygame-2.0.2.ebuild | 91 +++
 2 files changed, 92 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 938b4edaeb9..2758cb912ab 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -2,3 +2,4 @@ DIST pygame-1.9.6.tar.gz 3223131 BLAKE2B 
a4d04c933fcad244d32bd512ef8717e60ec923f
 DIST pygame-2.0.0.dev10.tar.gz 5567274 BLAKE2B 
7d78f260318cfabeb33f1073ae210f890d2f772e3ef302f243cca67724c6012355644ba60d4cae6de72db6dd61d320177deff6ee83dd355ec4cc33e841b565f7
 SHA512 
4cee7599fd8a6d31ddd66bfaad3bbb67cb167c1ae339f37e83322d810fea8746e81a191c224a0eeb6cc43a64bf1730ff0886c82f1a4f642e2e656ca9a837bf9e
 DIST pygame-2.0.0.tar.gz 5522621 BLAKE2B 
49773979af53595d3ff2db1a18e4bcd217e26db3ec28d6129d2a588f23a1bd5326fa79fab32c25aa796738cde0e68f5741bee58f62432e86f89cd49ee17a8f14
 SHA512 
3f65924d0e1d2863b84118a4e468b521a289e2cf174405c6f3ee2b2a2ed399cde7f9f310d57c4166351f84caaea02dd7408ee852dbcee7c205bb2955b6078fda
 DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B 
b27cb9001499a00da62dac0486a72079ff4e60ca609be444b04f547cb2372090da91d2670307ce7068b964458e6ac1284402439bb7809c9735135d5e93a71d78
 SHA512 
1535a872c43e5f75acdfa7d325fcfa0f0f826e18602b28b228cfdbe068a382678c21568d80873f7af4f0b318e693adb38afa4d632f8294f716a47188abe5245a
+DIST pygame-2.0.2.tar.gz 6309459 BLAKE2B 
0cb23b4226d8d86f938cba08b67ab3bd847c9e4122f5f6cce4d8810b239df672ab282e1b77dd7d71423f805c7c0418e54050347dfb9e506b799eb8e0b4f16856
 SHA512 
2cef4669e5bd81759c9886293ebc1b82e1ed3b4576a3632437f66cb353af330e15dd39e7378f2be8fd25838f202529dc550208a031aec77e1d05443a070638c8

diff --git a/dev-python/pygame/pygame-2.0.2.ebuild 
b/dev-python/pygame/pygame-2.0.2.ebuild
new file mode 100644
index 000..1ee94dd33f0
--- /dev/null
+++ b/dev-python/pygame/pygame-2.0.2.ebuild
@@ -0,0 +1,91 @@
+# 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
+
+MY_PV=${PV/_pre/.dev}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="https://www.pygame.org/;
+SRC_URI="
+   
https://github.com/pygame/pygame/releases/download/${MY_PV}/${MY_P}.tar.gz;
+S=${WORKDIR}/${MY_P}
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples midi opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+   media-libs/freetype
+   media-libs/libpng:0=
+   >=media-libs/sdl2-image-1.2.2
+   >=media-libs/sdl2-mixer-1.2.4
+   >=media-libs/sdl2-ttf-2.0.6
+   >=media-libs/smpeg2-0.4.4-r1
+   virtual/jpeg
+   midi? ( media-libs/portmidi )
+   X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
+   !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
+DEPEND="${RDEPEND}
+   test? (
+   media-libs/sdl2-image[gif,jpeg,png]
+   media-libs/sdl2-mixer[mp3,vorbis,wav]
+   )"
+# fontconfig used for fc-list
+RDEPEND+="
+   media-libs/fontconfig"
+# util-linux provides script
+BDEPEND="
+   test? (
+   media-libs/fontconfig
+   sys-apps/util-linux
+   )"
+
+src_prepare() {
+   if ! use midi; then
+   rm test/midi_test.py || die
+   fi
+   distutils-r1_src_prepare
+}
+
+python_configure() {
+   PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+   "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
+
+   # Disable automagic dependency on PortMidi.
+   if ! use midi; then
+   sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
+   fi
+}
+
+python_test() {
+   local -x PYTHONPATH=${BUILD_DIR}/install/lib
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=disk
+   distutils_install_for_testing --via-root
+   script -eqc "${EPYTHON} -m pygame.tests" || die
+}
+
+python_install() {
+   distutils-r1_python_install
+
+   # Bug #497720
+   rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   if use doc; then
+   docinto html
+   dodoc -r docs/*
+   fi
+
+   use examples && dodoc -r examples
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-10-04 Thread Arthur Zamarin
commit: 8caeaa343c91a5180134e9ab89efdf447d371ef2
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon Oct  4 13:53:25 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon Oct  4 14:21:45 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8caeaa34

dev-python/pygame: add github upstream metadata

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/pygame/metadata.xml b/dev-python/pygame/metadata.xml
index 32059e4d86c..4ce54800af7 100644
--- a/dev-python/pygame/metadata.xml
+++ b/dev-python/pygame/metadata.xml
@@ -10,5 +10,6 @@


pygame
+   pygame/pygame

 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-10-04 Thread Arthur Zamarin
commit: adbf3f7426e8fe72c85aec000fae1b8d6ef9df11
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon Oct  4 14:11:52 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon Oct  4 14:21:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adbf3f74

dev-python/pygame: enable py3.10

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pygame/pygame-2.0.1-r1.ebuild | 7 ++-
 dev-python/pygame/pygame-.ebuild | 5 +++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/dev-python/pygame/pygame-2.0.1-r1.ebuild 
b/dev-python/pygame/pygame-2.0.1-r1.ebuild
index 9fc9d5a9db7..b8c0c5f73b5 100644
--- a/dev-python/pygame/pygame-2.0.1-r1.ebuild
+++ b/dev-python/pygame/pygame-2.0.1-r1.ebuild
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
+
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 
@@ -51,6 +52,10 @@ src_prepare() {
if ! use midi; then
rm test/midi_test.py || die
fi
+   # Fixed in next release
+   sed -e 's/++Py_REFCNT/Py_INCREF/' \
+   -e 's/--Py_REFCNT/Py_DECREF/' \
+   -i src_c/_sdl2/*.c || die
distutils-r1_src_prepare
 }
 

diff --git a/dev-python/pygame/pygame-.ebuild 
b/dev-python/pygame/pygame-.ebuild
index 8d4ba88cd46..7207ee8e45a 100644
--- a/dev-python/pygame/pygame-.ebuild
+++ b/dev-python/pygame/pygame-.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
+
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1 git-r3
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-04-25 Thread James Le Cuirot
commit: 0482fba8caa91356911324b51840b4ec864de821
Author: James Le Cuirot  gentoo  org>
AuthorDate: Sun Apr 25 21:35:24 2021 +
Commit: James Le Cuirot  gentoo  org>
CommitDate: Sun Apr 25 21:36:31 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0482fba8

dev-python/pygame: Add missing libpng and jpeg dependencies

Although pygame depends on sdl2-image, it still uses libpng and
libjpeg directly. If any of these three are not found then the image
extension module is not built.

This module, and several others, are actually optional but we
unconditionally build them all. Changing this doesn't seem worth the
effort, given their automagic nature.

Closes: https://bugs.gentoo.org/785313
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: James Le Cuirot  gentoo.org>

 dev-python/pygame/{pygame-2.0.1.ebuild => pygame-2.0.1-r1.ebuild} | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-python/pygame/pygame-2.0.1.ebuild 
b/dev-python/pygame/pygame-2.0.1-r1.ebuild
similarity index 98%
rename from dev-python/pygame/pygame-2.0.1.ebuild
rename to dev-python/pygame/pygame-2.0.1-r1.ebuild
index 984200871ea..9fc9d5a9db7 100644
--- a/dev-python/pygame/pygame-2.0.1.ebuild
+++ b/dev-python/pygame/pygame-2.0.1-r1.ebuild
@@ -23,10 +23,12 @@ RESTRICT="!test? ( test )"
 
 RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
media-libs/freetype
+   media-libs/libpng:0=
>=media-libs/sdl2-image-1.2.2
>=media-libs/sdl2-mixer-1.2.4
>=media-libs/sdl2-ttf-2.0.6
>=media-libs/smpeg2-0.4.4-r1
+   virtual/jpeg
midi? ( media-libs/portmidi )
X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
!X? ( >=media-libs/libsdl2-1.2.5[threads] )"



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-03-14 Thread Conrad Kostecki
commit: 6c4710513a3bb3c0a10873a43b5eae7954701b04
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sun Mar 14 19:17:51 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Mar 14 19:18:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c471051

dev-python/pygame: add python3.9 support

Closes: https://bugs.gentoo.org/771981
Closes: https://github.com/gentoo/gentoo/pull/19585
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-python/pygame/pygame-1.9.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-1.9.6-r1.ebuild 
b/dev-python/pygame/pygame-1.9.6-r1.ebuild
index 61a94fda0e1..b18281a3721 100644
--- a/dev-python/pygame/pygame-1.9.6-r1.ebuild
+++ b/dev-python/pygame/pygame-1.9.6-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{7..9} )
 
 inherit flag-o-matic distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-02-25 Thread Sam James
commit: ed87572abb11204fb703cb9e5c1f9b58aff5b69b
Author: Sam James  gentoo  org>
AuthorDate: Thu Feb 25 14:09:39 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb 25 14:09:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed87572a

dev-python/pygame: Stabilize 2.0.1 ppc, #767109

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-2.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.0.1.ebuild 
b/dev-python/pygame/pygame-2.0.1.ebuild
index 54e876a05ab..984200871ea 100644
--- a/dev-python/pygame/pygame-2.0.1.ebuild
+++ b/dev-python/pygame/pygame-2.0.1.ebuild
@@ -17,7 +17,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ~ppc64 ~sparc x86"
 IUSE="doc examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/

2021-02-25 Thread Sam James
commit: e4d5ee2f51c959cbbbe2cc55f93451be10dbd670
Author: Sam James  gentoo  org>
AuthorDate: Thu Feb 25 08:33:35 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb 25 08:33:35 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4d5ee2f

dev-python/pygame: Stabilize 1.9.6-r1 ppc64, #730970

Signed-off-by: Sam James  gentoo.org>

 dev-python/pygame/pygame-1.9.6-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pygame/pygame-1.9.6-r1.ebuild 
b/dev-python/pygame/pygame-1.9.6-r1.ebuild
index 411f770c76b..61a94fda0e1 100644
--- a/dev-python/pygame/pygame-1.9.6-r1.ebuild
+++ b/dev-python/pygame/pygame-1.9.6-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ~ppc64 sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
 IUSE="doc examples midi opengl test X"
 RESTRICT="!test? ( test )"
 



  1   2   >