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

2023-12-30 Thread Michał Górny
commit: 7ceaa448ecab9aad84cc278204d1f89fc2a84a32
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Dec 30 18:31:08 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Dec 30 18:31:08 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ceaa448

dev-python/PySDL2: Remove old

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

 dev-python/PySDL2/Manifest |  1 -
 dev-python/PySDL2/PySDL2-0.9.13.ebuild | 66 --
 2 files changed, 67 deletions(-)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index 50a3d0c6876c..aeb9f90c26a4 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1,2 +1 @@
-DIST PySDL2-0.9.13.tar.gz 754811 BLAKE2B 
fe9d3fb32cac104303d67741c3b9e0d78d3d03198ed512464bbdf5bc487a5f4c9a92aafb100c53c02d8be87bb107034f67ebb72294ad67cc0a8b42ab7a678a31
 SHA512 
f866e7ed35e3ccfbb5b98f797e87d5b20c6f7dadbc3396b297cbb6c2d83a7f3290fde63940a4d8f190e40a4a9269d2df9efc1932d9578d3df1617e5fcbe6ecad
 DIST PySDL2-0.9.16.tar.gz 773537 BLAKE2B 
5cfe4ab3981a665fc7f7606c07a3252e58c2706e45ab41d0d6444b4d3fb1c8805b5fd67e770a8a64538d305be0013a4d599ee81f5de0c5370146edc9d4d858df
 SHA512 
ffe7abe8e828926934677c81a42c9af794c4817144eba50c40430c150d476dea40f0b36e639b2c270cbd8e00ab5bf5b032a4c0e514255cceef8161c8d76f8cb2

diff --git a/dev-python/PySDL2/PySDL2-0.9.13.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.13.ebuild
deleted file mode 100644
index 2d34a3934ab3..
--- a/dev-python/PySDL2/PySDL2-0.9.13.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{9..11} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
-HOMEPAGE="
-   https://github.com/py-sdl/py-sdl2/
-   https://pypi.org/project/PySDL2/
-"
-
-LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# Optional deps:
-# - dev-python/numpy,
-# - dev-python/pillow,
-# - media-libs/sdl2-* (loaded dynamically via ctypes).
-#
-# If a reverse dependency needs the specific module, it should
-# explicitly depend on the optional module in question. You also
-# probably need to explicitly require some media-libs/libsdl2 flags.
-RDEPEND="media-libs/libsdl2"
-
-# Require all of SDL2 libraries and at least the most common subsystems
-# for better test coverage.
-DEPEND="
-   test? (
-   dev-python/numpy[${PYTHON_USEDEP}]
-   dev-python/pillow[${PYTHON_USEDEP}]
-   media-libs/libsdl2[joystick,sound,video]
-   media-libs/sdl2-gfx
-   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
-   || (
-   media-libs/sdl2-mixer[flac]
-   media-libs/sdl2-mixer[midi]
-   media-libs/sdl2-mixer[mod]
-   media-libs/sdl2-mixer[mp3]
-   media-libs/sdl2-mixer[opus]
-   )
-   media-libs/sdl2-ttf
-   )"
-
-EPYTEST_DESELECT=(
-   # Both tests fail and seem machine-dependent?
-   sdl2/test/sdlttf_test.py::test_TTF_SetFontSize
-   sdl2/test/sdlttf_test.py::test_TTF_SetFontSizeDPI
-)
-
-distutils_enable_tests pytest
-
-src_test() {
-   # from .travis.yml
-   local -x SDL_VIDEODRIVER=dummy
-   local -x SDL_AUDIODRIVER=dummy
-   local -x SDL_RENDER_DRIVER=software
-
-   distutils-r1_src_test
-}



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

2023-10-22 Thread Sam James
commit: 3825b89edbaf421648a3aacc290951fd030d7a07
Author: Sam James  gentoo  org>
AuthorDate: Sun Oct 22 18:06:17 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 22 18:06:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3825b89e

dev-python/PySDL2: update test skip comment

Bug: https://bugs.gentoo.org/916118
Bug: https://bugs.gentoo.org/916120
Signed-off-by: Sam James  gentoo.org>

 dev-python/PySDL2/PySDL2-0.9.16.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-python/PySDL2/PySDL2-0.9.16.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.16.ebuild
index 76ccec4c0b4b..539e04548bf8 100644
--- a/dev-python/PySDL2/PySDL2-0.9.16.ebuild
+++ b/dev-python/PySDL2/PySDL2-0.9.16.ebuild
@@ -52,10 +52,11 @@ distutils_enable_tests pytest
 
 python_test() {
local EPYTEST_DESELECT=(
-   # libsdl2 itself is broken in numerous ways
+   # pysdl2 was misusing libsdl2's error API. Fixed upstream 
already
+   # but it didn't land in 0.9.16.
# https://bugs.gentoo.org/916120
-   sdl2/test/gamecontroller_test.py
# https://bugs.gentoo.org/916118
+   sdl2/test/gamecontroller_test.py
sdl2/test/hidapi_test.py::test_SDL_hid_enumerate
)
 



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

2023-10-22 Thread Michał Górny
commit: 204198253b6ee20f27f8534eabfd6f240b16ad5c
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Oct 22 14:04:03 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Oct 22 17:31:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20419825

dev-python/PySDL2: Bump to 0.9.16

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

 dev-python/PySDL2/Manifest |  1 +
 dev-python/PySDL2/PySDL2-0.9.16.ebuild | 68 ++
 2 files changed, 69 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index 9255809946ef..50a3d0c6876c 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1 +1,2 @@
 DIST PySDL2-0.9.13.tar.gz 754811 BLAKE2B 
fe9d3fb32cac104303d67741c3b9e0d78d3d03198ed512464bbdf5bc487a5f4c9a92aafb100c53c02d8be87bb107034f67ebb72294ad67cc0a8b42ab7a678a31
 SHA512 
f866e7ed35e3ccfbb5b98f797e87d5b20c6f7dadbc3396b297cbb6c2d83a7f3290fde63940a4d8f190e40a4a9269d2df9efc1932d9578d3df1617e5fcbe6ecad
+DIST PySDL2-0.9.16.tar.gz 773537 BLAKE2B 
5cfe4ab3981a665fc7f7606c07a3252e58c2706e45ab41d0d6444b4d3fb1c8805b5fd67e770a8a64538d305be0013a4d599ee81f5de0c5370146edc9d4d858df
 SHA512 
ffe7abe8e828926934677c81a42c9af794c4817144eba50c40430c150d476dea40f0b36e639b2c270cbd8e00ab5bf5b032a4c0e514255cceef8161c8d76f8cb2

diff --git a/dev-python/PySDL2/PySDL2-0.9.16.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.16.ebuild
new file mode 100644
index ..76ccec4c0b4b
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.16.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="
+   https://github.com/py-sdl/py-sdl2/
+   https://pypi.org/project/PySDL2/
+"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   || (
+   media-libs/sdl2-mixer[flac]
+   media-libs/sdl2-mixer[midi]
+   media-libs/sdl2-mixer[mod]
+   media-libs/sdl2-mixer[mp3]
+   media-libs/sdl2-mixer[opus]
+   )
+   media-libs/sdl2-ttf
+   )"
+
+distutils_enable_tests pytest
+
+python_test() {
+   local EPYTEST_DESELECT=(
+   # libsdl2 itself is broken in numerous ways
+   # https://bugs.gentoo.org/916120
+   sdl2/test/gamecontroller_test.py
+   # https://bugs.gentoo.org/916118
+   sdl2/test/hidapi_test.py::test_SDL_hid_enumerate
+   )
+
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+   epytest -x
+}



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

2023-03-17 Thread Michał Górny
commit: c53b8693b1b0f811a375aa5b6a5d1961fd86e1d2
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Mar 17 11:59:12 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Mar 17 15:22:18 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c53b8693

dev-python/PySDL2: Use pypi.eclass

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

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

diff --git a/dev-python/PySDL2/PySDL2-0.9.13.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.13.ebuild
index f3210381e39c..2d34a3934ab3 100644
--- a/dev-python/PySDL2/PySDL2-0.9.13.ebuild
+++ b/dev-python/PySDL2/PySDL2-0.9.13.ebuild
@@ -4,16 +4,16 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
 PYTHON_COMPAT=( python3_{9..11} )
 
-inherit distutils-r1
+inherit distutils-r1 pypi
 
 DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
 HOMEPAGE="
https://github.com/py-sdl/py-sdl2/
https://pypi.org/project/PySDL2/
 "
-SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
 SLOT="0"



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

2022-11-13 Thread Michał Górny
commit: 0ff29569925959110a5f5f5d1fe684e398d8d71b
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Nov 14 05:01:07 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Nov 14 05:05:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ff29569

dev-python/PySDL2: Remove old

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

 dev-python/PySDL2/Manifest |  2 --
 dev-python/PySDL2/PySDL2-0.9.11.ebuild | 60 ---
 dev-python/PySDL2/PySDL2-0.9.12.ebuild | 66 --
 3 files changed, 128 deletions(-)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index 44192d98cba7..9255809946ef 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1,3 +1 @@
-DIST PySDL2-0.9.11.tar.gz 736026 BLAKE2B 
ebf5a98958681cc61155aeffdb67ca9d1aeef8143ca876b63772ce95b7bf23cc5708a01cfa83d3128d4fe20c2b714bf2f1e7dc64454c7d063590c55cfc236f24
 SHA512 
4e3383ef64f4f164d60a69a5a2c6ea153269b45661c9bba988d4c44a5cce7195cec0d29384d1855e9c9d507af2608bc808b9885449aea61c5ee51fc2d4f4af6f
-DIST PySDL2-0.9.12.tar.gz 741668 BLAKE2B 
82f1f63f0b637981a8e98966f34d721495764630f9f0f95e0f6fd4c428d8adf0a31c540f0dcc36da24f073b3485cdb4987e0deb79d7df484ed05bad93c17a2ed
 SHA512 
e4dd5b11a8e1082751bc45b9a18c1c3f7ff977091a35c35965f93b1946f634ea096ba94088404153c712c42cf3b4a8876c9ae05496def51b296be55c31b3b59b
 DIST PySDL2-0.9.13.tar.gz 754811 BLAKE2B 
fe9d3fb32cac104303d67741c3b9e0d78d3d03198ed512464bbdf5bc487a5f4c9a92aafb100c53c02d8be87bb107034f67ebb72294ad67cc0a8b42ab7a678a31
 SHA512 
f866e7ed35e3ccfbb5b98f797e87d5b20c6f7dadbc3396b297cbb6c2d83a7f3290fde63940a4d8f190e40a4a9269d2df9efc1932d9578d3df1617e5fcbe6ecad

diff --git a/dev-python/PySDL2/PySDL2-0.9.11.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.11.ebuild
deleted file mode 100644
index 324c0960f1a4..
--- a/dev-python/PySDL2/PySDL2-0.9.11.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# 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 (ctypes) bindings for SDL2 libraries"
-HOMEPAGE="
-   https://github.com/py-sdl/py-sdl2/
-   https://pypi.org/project/PySDL2/
-"
-SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# Optional deps:
-# - dev-python/numpy,
-# - dev-python/pillow,
-# - media-libs/sdl2-* (loaded dynamically via ctypes).
-#
-# If a reverse dependency needs the specific module, it should
-# explicitly depend on the optional module in question. You also
-# probably need to explicitly require some media-libs/libsdl2 flags.
-RDEPEND="media-libs/libsdl2"
-
-# Require all of SDL2 libraries and at least the most common subsystems
-# for better test coverage.
-DEPEND="
-   test? (
-   dev-python/numpy[${PYTHON_USEDEP}]
-   dev-python/pillow[${PYTHON_USEDEP}]
-   media-libs/libsdl2[joystick,sound,video]
-   media-libs/sdl2-gfx
-   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
-   || (
-   media-libs/sdl2-mixer[flac]
-   media-libs/sdl2-mixer[midi]
-   media-libs/sdl2-mixer[mod]
-   media-libs/sdl2-mixer[mp3]
-   media-libs/sdl2-mixer[opus]
-   )
-   media-libs/sdl2-ttf
-   )"
-
-distutils_enable_tests pytest
-
-src_test() {
-   # from .travis.yml
-   local -x SDL_VIDEODRIVER=dummy
-   local -x SDL_AUDIODRIVER=dummy
-   local -x SDL_RENDER_DRIVER=software
-
-   distutils-r1_src_test
-}

diff --git a/dev-python/PySDL2/PySDL2-0.9.12.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.12.ebuild
deleted file mode 100644
index e6dabf07cdbd..
--- a/dev-python/PySDL2/PySDL2-0.9.12.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# 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..11} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
-HOMEPAGE="
-   https://github.com/py-sdl/py-sdl2/
-   https://pypi.org/project/PySDL2/
-"
-SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# Optional deps:
-# - dev-python/numpy,
-# - dev-python/pillow,
-# - media-libs/sdl2-* (loaded dynamically via ctypes).
-#
-# If a reverse dependency needs the specific module, it should
-# explicitly depend on the optional module in question. You also
-# probably need to explicitly require some media-libs/libsdl2 flags.
-RDEPEND="media-libs/libsdl2"
-
-# Require all of SDL2 libraries and at least the most common subsystems
-# for better test coverage.
-DEPEND="
-   test? (
-  

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

2022-07-29 Thread Arthur Zamarin
commit: ab910f2b50e1271922feb74fbe6eb5c952ff821f
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jul 29 10:29:31 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jul 29 10:29:31 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab910f2b

dev-python/PySDL2: add 0.9.13

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

 dev-python/PySDL2/Manifest |  1 +
 dev-python/PySDL2/PySDL2-0.9.13.ebuild | 66 ++
 2 files changed, 67 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index dddcf0dee0dd..44192d98cba7 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1,2 +1,3 @@
 DIST PySDL2-0.9.11.tar.gz 736026 BLAKE2B 
ebf5a98958681cc61155aeffdb67ca9d1aeef8143ca876b63772ce95b7bf23cc5708a01cfa83d3128d4fe20c2b714bf2f1e7dc64454c7d063590c55cfc236f24
 SHA512 
4e3383ef64f4f164d60a69a5a2c6ea153269b45661c9bba988d4c44a5cce7195cec0d29384d1855e9c9d507af2608bc808b9885449aea61c5ee51fc2d4f4af6f
 DIST PySDL2-0.9.12.tar.gz 741668 BLAKE2B 
82f1f63f0b637981a8e98966f34d721495764630f9f0f95e0f6fd4c428d8adf0a31c540f0dcc36da24f073b3485cdb4987e0deb79d7df484ed05bad93c17a2ed
 SHA512 
e4dd5b11a8e1082751bc45b9a18c1c3f7ff977091a35c35965f93b1946f634ea096ba94088404153c712c42cf3b4a8876c9ae05496def51b296be55c31b3b59b
+DIST PySDL2-0.9.13.tar.gz 754811 BLAKE2B 
fe9d3fb32cac104303d67741c3b9e0d78d3d03198ed512464bbdf5bc487a5f4c9a92aafb100c53c02d8be87bb107034f67ebb72294ad67cc0a8b42ab7a678a31
 SHA512 
f866e7ed35e3ccfbb5b98f797e87d5b20c6f7dadbc3396b297cbb6c2d83a7f3290fde63940a4d8f190e40a4a9269d2df9efc1932d9578d3df1617e5fcbe6ecad

diff --git a/dev-python/PySDL2/PySDL2-0.9.13.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.13.ebuild
new file mode 100644
index ..e6dabf07cdbd
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.13.ebuild
@@ -0,0 +1,66 @@
+# 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..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="
+   https://github.com/py-sdl/py-sdl2/
+   https://pypi.org/project/PySDL2/
+"
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   || (
+   media-libs/sdl2-mixer[flac]
+   media-libs/sdl2-mixer[midi]
+   media-libs/sdl2-mixer[mod]
+   media-libs/sdl2-mixer[mp3]
+   media-libs/sdl2-mixer[opus]
+   )
+   media-libs/sdl2-ttf
+   )"
+
+EPYTEST_DESELECT=(
+   # Both tests fail and seem machine-dependent?
+   sdl2/test/sdlttf_test.py::test_TTF_SetFontSize
+   sdl2/test/sdlttf_test.py::test_TTF_SetFontSizeDPI
+)
+
+distutils_enable_tests pytest
+
+src_test() {
+   # from .travis.yml
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   distutils-r1_src_test
+}



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

2022-07-18 Thread Sam James
commit: 035d0d76709af717f39b0491ce5f9672612f9a27
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 19 01:07:06 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 19 01:07:21 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=035d0d76

dev-python/PySDL2: add 0.9.12

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

 dev-python/PySDL2/Manifest |  1 +
 dev-python/PySDL2/PySDL2-0.9.12.ebuild | 66 ++
 2 files changed, 67 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index d604a9de88f7..dddcf0dee0dd 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1 +1,2 @@
 DIST PySDL2-0.9.11.tar.gz 736026 BLAKE2B 
ebf5a98958681cc61155aeffdb67ca9d1aeef8143ca876b63772ce95b7bf23cc5708a01cfa83d3128d4fe20c2b714bf2f1e7dc64454c7d063590c55cfc236f24
 SHA512 
4e3383ef64f4f164d60a69a5a2c6ea153269b45661c9bba988d4c44a5cce7195cec0d29384d1855e9c9d507af2608bc808b9885449aea61c5ee51fc2d4f4af6f
+DIST PySDL2-0.9.12.tar.gz 741668 BLAKE2B 
82f1f63f0b637981a8e98966f34d721495764630f9f0f95e0f6fd4c428d8adf0a31c540f0dcc36da24f073b3485cdb4987e0deb79d7df484ed05bad93c17a2ed
 SHA512 
e4dd5b11a8e1082751bc45b9a18c1c3f7ff977091a35c35965f93b1946f634ea096ba94088404153c712c42cf3b4a8876c9ae05496def51b296be55c31b3b59b

diff --git a/dev-python/PySDL2/PySDL2-0.9.12.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.12.ebuild
new file mode 100644
index ..e6dabf07cdbd
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.12.ebuild
@@ -0,0 +1,66 @@
+# 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..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="
+   https://github.com/py-sdl/py-sdl2/
+   https://pypi.org/project/PySDL2/
+"
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   || (
+   media-libs/sdl2-mixer[flac]
+   media-libs/sdl2-mixer[midi]
+   media-libs/sdl2-mixer[mod]
+   media-libs/sdl2-mixer[mp3]
+   media-libs/sdl2-mixer[opus]
+   )
+   media-libs/sdl2-ttf
+   )"
+
+EPYTEST_DESELECT=(
+   # Both tests fail and seem machine-dependent?
+   sdl2/test/sdlttf_test.py::test_TTF_SetFontSize
+   sdl2/test/sdlttf_test.py::test_TTF_SetFontSizeDPI
+)
+
+distutils_enable_tests pytest
+
+src_test() {
+   # from .travis.yml
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   distutils-r1_src_test
+}



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

2022-05-16 Thread Michał Górny
commit: 5bb1a00b365eed38b189153bb4a43c18cbc78a3c
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May 16 13:22:20 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May 16 13:22:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bb1a00b

dev-python/PySDL2: Update HOMEPAGE

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

 dev-python/PySDL2/PySDL2-0.9.11.ebuild | 5 -
 dev-python/PySDL2/metadata.xml | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-python/PySDL2/PySDL2-0.9.11.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.11.ebuild
index 4169764895e7..324c0960f1a4 100644
--- a/dev-python/PySDL2/PySDL2-0.9.11.ebuild
+++ b/dev-python/PySDL2/PySDL2-0.9.11.ebuild
@@ -9,7 +9,10 @@ PYTHON_COMPAT=( python3_{8..10} )
 inherit distutils-r1
 
 DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
-HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
+HOMEPAGE="
+   https://github.com/py-sdl/py-sdl2/
+   https://pypi.org/project/PySDL2/
+"
 SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( public-domain CC0-1.0 ZLIB )"

diff --git a/dev-python/PySDL2/metadata.xml b/dev-python/PySDL2/metadata.xml
index c7909ded7a27..4f40190355c3 100644
--- a/dev-python/PySDL2/metadata.xml
+++ b/dev-python/PySDL2/metadata.xml
@@ -9,7 +9,7 @@
pyt...@gentoo.org


-   marcusva/py-sdl2
+   py-sdl/py-sdl2
PySDL2

 



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

2022-05-16 Thread Michał Górny
commit: 67092cdd97cc8b053adb5a42bcf6d7b19e12e4b7
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May 16 13:21:09 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May 16 13:21:09 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67092cdd

dev-python/PySDL2: Remove old

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

 dev-python/PySDL2/Manifest |  2 --
 dev-python/PySDL2/PySDL2-0.9.10.ebuild | 55 --
 dev-python/PySDL2/PySDL2-0.9.9.ebuild  | 55 --
 3 files changed, 112 deletions(-)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index 3986d0fc6426..d604a9de88f7 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1,3 +1 @@
-DIST PySDL2-0.9.10.tar.gz 5228778 BLAKE2B 
1aac6ac3a33dd5cb56aad7e9fdcfe5ec62f7b406b9779aa04f92ec4f051cbe5f03596de06aa2d5688724c811c86959edefe40dab1e39980a8410c6b09c10c5ab
 SHA512 
86517734d356ba7685914ce6e4583c8131bc2e84bf2318f985119407d39794878aeb8fdb84464e1e35c3b4cc1569777239dedb16f4669169f9f0302dacd8689e
 DIST PySDL2-0.9.11.tar.gz 736026 BLAKE2B 
ebf5a98958681cc61155aeffdb67ca9d1aeef8143ca876b63772ce95b7bf23cc5708a01cfa83d3128d4fe20c2b714bf2f1e7dc64454c7d063590c55cfc236f24
 SHA512 
4e3383ef64f4f164d60a69a5a2c6ea153269b45661c9bba988d4c44a5cce7195cec0d29384d1855e9c9d507af2608bc808b9885449aea61c5ee51fc2d4f4af6f
-DIST PySDL2-0.9.9.tar.gz 743302 BLAKE2B 
1e9e0eeea48b838227d3fe6ea93311d445b1d3a15588f4b83d075d18306b419ba3512826e44c5e4ecc2aec59ad44da73372ec740ebf6106271fd0b77175b88d7
 SHA512 
52b469735b1229392ea2f73b2dfcf1e75cedf7582a488461be9b06bc072f82a5c8c559d345a0c3668829c0f8bb2996005d538465ed7d2a45fb8480001fd0ccce

diff --git a/dev-python/PySDL2/PySDL2-0.9.10.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.10.ebuild
deleted file mode 100644
index 08911e560403..
--- a/dev-python/PySDL2/PySDL2-0.9.10.ebuild
+++ /dev/null
@@ -1,55 +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 (ctypes) bindings for SDL2 libraries"
-HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
-SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# Optional deps:
-# - dev-python/numpy,
-# - dev-python/pillow,
-# - media-libs/sdl2-* (loaded dynamically via ctypes).
-#
-# If a reverse dependency needs the specific module, it should
-# explicitly depend on the optional module in question. You also
-# probably need to explicitly require some media-libs/libsdl2 flags.
-RDEPEND="media-libs/libsdl2"
-
-# Require all of SDL2 libraries and at least the most common subsystems
-# for better test coverage.
-DEPEND="
-   test? (
-   dev-python/numpy[${PYTHON_USEDEP}]
-   dev-python/pillow[${PYTHON_USEDEP}]
-   media-libs/libsdl2[joystick,sound,video]
-   media-libs/sdl2-gfx
-   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
-   || (
-   media-libs/sdl2-mixer[flac]
-   media-libs/sdl2-mixer[midi]
-   media-libs/sdl2-mixer[mod]
-   media-libs/sdl2-mixer[mp3]
-   media-libs/sdl2-mixer[opus]
-   )
-   media-libs/sdl2-ttf
-   )"
-
-distutils_enable_tests pytest
-
-src_test() {
-   # from .travis.yml
-   local -x SDL_VIDEODRIVER=dummy
-   local -x SDL_AUDIODRIVER=dummy
-   local -x SDL_RENDER_DRIVER=software
-
-   distutils-r1_src_test
-}

diff --git a/dev-python/PySDL2/PySDL2-0.9.9.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.9.ebuild
deleted file mode 100644
index e3b42a45db2c..
--- a/dev-python/PySDL2/PySDL2-0.9.9.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1
-
-DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
-HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
-SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# Optional deps:
-# - dev-python/numpy,
-# - dev-python/pillow,
-# - media-libs/sdl2-* (loaded dynamically via ctypes).
-#
-# If a reverse dependency needs the specific module, it should
-# explicitly depend on the optional module in question. You also
-# probably need to explicitly require some media-libs/libsdl2 flags.
-RDEPEND="media-libs/libsdl2"
-
-# Require all of SDL2 libraries and at least the most common subsystems
-# for better test coverage.
-DEPEND="
-   test? (
-   dev-python/numpy[${PYTHON_USEDEP}]
-   dev-python/pillow[${PYTHON_USEDEP}]
- 

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

2022-01-28 Thread Michał Górny
commit: 0bf65a88d93918695e56e1f42f2eab63fe686113
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Jan 28 08:10:48 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Jan 28 08:54:09 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bf65a88

dev-python/PySDL2: Bump to 0.9.11

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

 dev-python/PySDL2/Manifest |  1 +
 dev-python/PySDL2/PySDL2-0.9.11.ebuild | 57 ++
 2 files changed, 58 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index fbbe1cb19202..3986d0fc6426 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1,2 +1,3 @@
 DIST PySDL2-0.9.10.tar.gz 5228778 BLAKE2B 
1aac6ac3a33dd5cb56aad7e9fdcfe5ec62f7b406b9779aa04f92ec4f051cbe5f03596de06aa2d5688724c811c86959edefe40dab1e39980a8410c6b09c10c5ab
 SHA512 
86517734d356ba7685914ce6e4583c8131bc2e84bf2318f985119407d39794878aeb8fdb84464e1e35c3b4cc1569777239dedb16f4669169f9f0302dacd8689e
+DIST PySDL2-0.9.11.tar.gz 736026 BLAKE2B 
ebf5a98958681cc61155aeffdb67ca9d1aeef8143ca876b63772ce95b7bf23cc5708a01cfa83d3128d4fe20c2b714bf2f1e7dc64454c7d063590c55cfc236f24
 SHA512 
4e3383ef64f4f164d60a69a5a2c6ea153269b45661c9bba988d4c44a5cce7195cec0d29384d1855e9c9d507af2608bc808b9885449aea61c5ee51fc2d4f4af6f
 DIST PySDL2-0.9.9.tar.gz 743302 BLAKE2B 
1e9e0eeea48b838227d3fe6ea93311d445b1d3a15588f4b83d075d18306b419ba3512826e44c5e4ecc2aec59ad44da73372ec740ebf6106271fd0b77175b88d7
 SHA512 
52b469735b1229392ea2f73b2dfcf1e75cedf7582a488461be9b06bc072f82a5c8c559d345a0c3668829c0f8bb2996005d538465ed7d2a45fb8480001fd0ccce

diff --git a/dev-python/PySDL2/PySDL2-0.9.11.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.11.ebuild
new file mode 100644
index ..4169764895e7
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.11.ebuild
@@ -0,0 +1,57 @@
+# 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 (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   || (
+   media-libs/sdl2-mixer[flac]
+   media-libs/sdl2-mixer[midi]
+   media-libs/sdl2-mixer[mod]
+   media-libs/sdl2-mixer[mp3]
+   media-libs/sdl2-mixer[opus]
+   )
+   media-libs/sdl2-ttf
+   )"
+
+distutils_enable_tests pytest
+
+src_test() {
+   # from .travis.yml
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   distutils-r1_src_test
+}



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

2022-01-12 Thread Michał Górny
commit: 9f15cb2d9a762ec7db61433aa6c4bff7160e35e6
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Jan 12 07:56:46 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jan 12 08:36:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f15cb2d

dev-python/PySDL2: Bump to 0.9.10

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

 dev-python/PySDL2/Manifest |  1 +
 dev-python/PySDL2/PySDL2-0.9.10.ebuild | 55 ++
 2 files changed, 56 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index d7c14151b7ff..fbbe1cb19202 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1 +1,2 @@
+DIST PySDL2-0.9.10.tar.gz 5228778 BLAKE2B 
1aac6ac3a33dd5cb56aad7e9fdcfe5ec62f7b406b9779aa04f92ec4f051cbe5f03596de06aa2d5688724c811c86959edefe40dab1e39980a8410c6b09c10c5ab
 SHA512 
86517734d356ba7685914ce6e4583c8131bc2e84bf2318f985119407d39794878aeb8fdb84464e1e35c3b4cc1569777239dedb16f4669169f9f0302dacd8689e
 DIST PySDL2-0.9.9.tar.gz 743302 BLAKE2B 
1e9e0eeea48b838227d3fe6ea93311d445b1d3a15588f4b83d075d18306b419ba3512826e44c5e4ecc2aec59ad44da73372ec740ebf6106271fd0b77175b88d7
 SHA512 
52b469735b1229392ea2f73b2dfcf1e75cedf7582a488461be9b06bc072f82a5c8c559d345a0c3668829c0f8bb2996005d538465ed7d2a45fb8480001fd0ccce

diff --git a/dev-python/PySDL2/PySDL2-0.9.10.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.10.ebuild
new file mode 100644
index ..08911e560403
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.10.ebuild
@@ -0,0 +1,55 @@
+# 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 (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   || (
+   media-libs/sdl2-mixer[flac]
+   media-libs/sdl2-mixer[midi]
+   media-libs/sdl2-mixer[mod]
+   media-libs/sdl2-mixer[mp3]
+   media-libs/sdl2-mixer[opus]
+   )
+   media-libs/sdl2-ttf
+   )"
+
+distutils_enable_tests pytest
+
+src_test() {
+   # from .travis.yml
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   distutils-r1_src_test
+}



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

2021-10-17 Thread Michał Górny
commit: 2de903c3d3a1715f5a618c8a9ba3b87164dc7365
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Oct 17 07:21:26 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Oct 17 07:21:26 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2de903c3

dev-python/PySDL2: Remove old

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

 dev-python/PySDL2/Manifest |  2 -
 dev-python/PySDL2/PySDL2-0.9.7.ebuild  | 61 --
 dev-python/PySDL2/PySDL2-0.9.8.ebuild  | 55 ---
 .../PySDL2/files/PySDL2-0.9.7-nameerror.patch  | 24 -
 4 files changed, 142 deletions(-)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index 5dbc4f6a789..d7c14151b7f 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1,3 +1 @@
-DIST PySDL2-0.9.7.tar.gz 1079253 BLAKE2B 
986a21d8c2f4f45df683d85a8369be7b39f102e59a1b3fd37e2941065a1174d5cd6dd056f78fbc3e2cf50228ee40abf67352e5ae75176a9c000fb6f672fb
 SHA512 
10d40063762272eaaae1cb6290e007481887806938ba0ba17d28974a3a3c8b36570054587001d00eb9ab4aa2375c616c43a81c7e7308fbb9b61b55b3eb7da5ac
-DIST PySDL2-0.9.8.tar.gz 742279 BLAKE2B 
403fba93f446f6eeb8c3b365f02207e5447c4fc16a08835ef81a1846491a4a3745ea1b7694f3b5ec3e7058975f33c20885065a4521f50aaf5c290728dbac9dd0
 SHA512 
674af175b1c5bd9b4100f94738c41b9b5517d2d536a7d6f7a356aafa81b67bce8349c74c166ae9289b8f746a9a16c785f88595bc48399d834d62af5355c59344
 DIST PySDL2-0.9.9.tar.gz 743302 BLAKE2B 
1e9e0eeea48b838227d3fe6ea93311d445b1d3a15588f4b83d075d18306b419ba3512826e44c5e4ecc2aec59ad44da73372ec740ebf6106271fd0b77175b88d7
 SHA512 
52b469735b1229392ea2f73b2dfcf1e75cedf7582a488461be9b06bc072f82a5c8c559d345a0c3668829c0f8bb2996005d538465ed7d2a45fb8480001fd0ccce

diff --git a/dev-python/PySDL2/PySDL2-0.9.7.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.7.ebuild
deleted file mode 100644
index 8508908fc72..000
--- a/dev-python/PySDL2/PySDL2-0.9.7.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} )
-inherit distutils-r1
-
-DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
-HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
-SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# Optional deps:
-# - dev-python/numpy,
-# - dev-python/pillow,
-# - media-libs/sdl2-* (loaded dynamically via ctypes).
-#
-# If a reverse dependency needs the specific module, it should
-# explicitly depend on the optional module in question. You also
-# probably need to explicitly require some media-libs/libsdl2 flags.
-RDEPEND="media-libs/libsdl2"
-
-# Require all of SDL2 libraries and at least the most common subsystems
-# for better test coverage.
-DEPEND="
-   test? (
-   dev-python/numpy[${PYTHON_USEDEP}]
-   dev-python/pillow[${PYTHON_USEDEP}]
-   media-libs/libsdl2[joystick,sound,video]
-   media-libs/sdl2-gfx
-   media-libs/sdl2-image
-   media-libs/sdl2-mixer
-   media-libs/sdl2-ttf
-   )"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-   "${FILESDIR}"/${P}-nameerror.patch
-)
-
-src_prepare() {
-   # tarball uses DOS line endings
-   find '(' -name '*.py' -o -name '*.rst' -o -name '*.txt' ')' \
-   -type f -exec sed -i -e 's/\r$//' {} + || die
-
-   distutils-r1_src_prepare
-}
-
-src_test() {
-   # from .travis.yml
-   local -x SDL_VIDEODRIVER=dummy
-   local -x SDL_AUDIODRIVER=dummy
-   local -x SDL_RENDER_DRIVER=software
-
-   distutils-r1_src_test
-}

diff --git a/dev-python/PySDL2/PySDL2-0.9.8.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.8.ebuild
deleted file mode 100644
index e3b42a45db2..000
--- a/dev-python/PySDL2/PySDL2-0.9.8.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1
-
-DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
-HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
-SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# Optional deps:
-# - dev-python/numpy,
-# - dev-python/pillow,
-# - media-libs/sdl2-* (loaded dynamically via ctypes).
-#
-# If a reverse dependency needs the specific module, it should
-# explicitly depend on the optional module in question. You also
-# probably need to explicitly require some media-libs/libsdl2 flags.
-RDEPEND="media-libs/libsdl2"
-
-# Require all of SDL2 libraries and at least the most common subsystems
-# for better test coverage.
-DEPEND="
-   test? (
-   

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

2021-09-02 Thread Michał Górny
commit: ae968b68b4e1d5d71a6acc32f582eeccbf59539c
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Sep  2 20:37:27 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Sep  2 20:59:54 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae968b68

dev-python/PySDL2: Bump to 0.9.9

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

 dev-python/PySDL2/Manifest|  1 +
 dev-python/PySDL2/PySDL2-0.9.9.ebuild | 55 +++
 2 files changed, 56 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index c12a1859fdd..5dbc4f6a789 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1,2 +1,3 @@
 DIST PySDL2-0.9.7.tar.gz 1079253 BLAKE2B 
986a21d8c2f4f45df683d85a8369be7b39f102e59a1b3fd37e2941065a1174d5cd6dd056f78fbc3e2cf50228ee40abf67352e5ae75176a9c000fb6f672fb
 SHA512 
10d40063762272eaaae1cb6290e007481887806938ba0ba17d28974a3a3c8b36570054587001d00eb9ab4aa2375c616c43a81c7e7308fbb9b61b55b3eb7da5ac
 DIST PySDL2-0.9.8.tar.gz 742279 BLAKE2B 
403fba93f446f6eeb8c3b365f02207e5447c4fc16a08835ef81a1846491a4a3745ea1b7694f3b5ec3e7058975f33c20885065a4521f50aaf5c290728dbac9dd0
 SHA512 
674af175b1c5bd9b4100f94738c41b9b5517d2d536a7d6f7a356aafa81b67bce8349c74c166ae9289b8f746a9a16c785f88595bc48399d834d62af5355c59344
+DIST PySDL2-0.9.9.tar.gz 743302 BLAKE2B 
1e9e0eeea48b838227d3fe6ea93311d445b1d3a15588f4b83d075d18306b419ba3512826e44c5e4ecc2aec59ad44da73372ec740ebf6106271fd0b77175b88d7
 SHA512 
52b469735b1229392ea2f73b2dfcf1e75cedf7582a488461be9b06bc072f82a5c8c559d345a0c3668829c0f8bb2996005d538465ed7d2a45fb8480001fd0ccce

diff --git a/dev-python/PySDL2/PySDL2-0.9.9.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.9.ebuild
new file mode 100644
index 000..e3b42a45db2
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.9.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
+   || (
+   media-libs/sdl2-mixer[flac]
+   media-libs/sdl2-mixer[midi]
+   media-libs/sdl2-mixer[mod]
+   media-libs/sdl2-mixer[mp3]
+   media-libs/sdl2-mixer[opus]
+   )
+   media-libs/sdl2-ttf
+   )"
+
+distutils_enable_tests pytest
+
+src_test() {
+   # from .travis.yml
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   distutils-r1_src_test
+}



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

2021-08-07 Thread Michał Górny
commit: bd2cdd3f2efd2e9ba1e655f22f3e808b15fa191e
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Aug  7 20:26:33 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Aug  7 20:31:28 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd2cdd3f

dev-python/PySDL2: requires at least one audio format for tests

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

 dev-python/PySDL2/PySDL2-0.9.8.ebuild | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-python/PySDL2/PySDL2-0.9.8.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.8.ebuild
index b6a18cc3ce7..e3b42a45db2 100644
--- a/dev-python/PySDL2/PySDL2-0.9.8.ebuild
+++ b/dev-python/PySDL2/PySDL2-0.9.8.ebuild
@@ -33,7 +33,13 @@ DEPEND="
media-libs/libsdl2[joystick,sound,video]
media-libs/sdl2-gfx
media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
-   media-libs/sdl2-mixer
+   || (
+   media-libs/sdl2-mixer[flac]
+   media-libs/sdl2-mixer[midi]
+   media-libs/sdl2-mixer[mod]
+   media-libs/sdl2-mixer[mp3]
+   media-libs/sdl2-mixer[opus]
+   )
media-libs/sdl2-ttf
)"
 



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

2021-08-07 Thread Michał Górny
commit: 52893a67daa7bfd54e8916d15c815e19573cc87e
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Aug  7 13:11:25 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Aug  7 13:29:50 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52893a67

dev-python/PySDL2: Fix test-dep on sdl2-image providers

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

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

diff --git a/dev-python/PySDL2/PySDL2-0.9.8.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.8.ebuild
index 9b0237c5a24..b6a18cc3ce7 100644
--- a/dev-python/PySDL2/PySDL2-0.9.8.ebuild
+++ b/dev-python/PySDL2/PySDL2-0.9.8.ebuild
@@ -32,7 +32,7 @@ DEPEND="
dev-python/pillow[${PYTHON_USEDEP}]
media-libs/libsdl2[joystick,sound,video]
media-libs/sdl2-gfx
-   media-libs/sdl2-image
+   media-libs/sdl2-image[gif,jpeg,png,tiff,webp]
media-libs/sdl2-mixer
media-libs/sdl2-ttf
)"



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

2021-08-07 Thread Michał Górny
commit: 2c0bea040755fee112b0d0b2c57bce0ca4850e30
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Aug  7 06:07:59 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Aug  7 06:33:27 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c0bea04

dev-python/PySDL2: Bump to 0.9.8

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

 dev-python/PySDL2/Manifest|  1 +
 dev-python/PySDL2/PySDL2-0.9.8.ebuild | 49 +++
 2 files changed, 50 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index b485746b017..c12a1859fdd 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1 +1,2 @@
 DIST PySDL2-0.9.7.tar.gz 1079253 BLAKE2B 
986a21d8c2f4f45df683d85a8369be7b39f102e59a1b3fd37e2941065a1174d5cd6dd056f78fbc3e2cf50228ee40abf67352e5ae75176a9c000fb6f672fb
 SHA512 
10d40063762272eaaae1cb6290e007481887806938ba0ba17d28974a3a3c8b36570054587001d00eb9ab4aa2375c616c43a81c7e7308fbb9b61b55b3eb7da5ac
+DIST PySDL2-0.9.8.tar.gz 742279 BLAKE2B 
403fba93f446f6eeb8c3b365f02207e5447c4fc16a08835ef81a1846491a4a3745ea1b7694f3b5ec3e7058975f33c20885065a4521f50aaf5c290728dbac9dd0
 SHA512 
674af175b1c5bd9b4100f94738c41b9b5517d2d536a7d6f7a356aafa81b67bce8349c74c166ae9289b8f746a9a16c785f88595bc48399d834d62af5355c59344

diff --git a/dev-python/PySDL2/PySDL2-0.9.8.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.8.ebuild
new file mode 100644
index 000..9b0237c5a24
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.8.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   )"
+
+distutils_enable_tests pytest
+
+src_test() {
+   # from .travis.yml
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   distutils-r1_src_test
+}



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

2020-07-12 Thread Michał Górny
commit: 79ca08da9b23aa5c1a55716f9f1ad678299e6197
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Jul 12 06:22:05 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jul 12 06:37:04 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ca08da

dev-python/PySDL2: Bump to 0.9.7, py3.9

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

 dev-python/PySDL2/Manifest |  1 +
 dev-python/PySDL2/PySDL2-0.9.7.ebuild  | 61 ++
 .../PySDL2/files/PySDL2-0.9.7-nameerror.patch  | 24 +
 3 files changed, 86 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
index f44f4f7a63a..efbcb6a7a22 100644
--- a/dev-python/PySDL2/Manifest
+++ b/dev-python/PySDL2/Manifest
@@ -1 +1,2 @@
 DIST PySDL2-0.9.6.tar.gz 1048158 BLAKE2B 
70a450990dd73169489af2d5b218eea0794c9f75948d774680df4b4423855318ddc6d16a0453f62361d4f0b81e872edc067235c4f946476ea8988e16cd0de44c
 SHA512 
676b1b3381b614122442c70fe4cbd7c210ef3d8695c2babd37938e67b5cfeb2f8acbdcb914c5f68aceb549d89f7a77bdc80c7406b340b0e38c22543df8d46739
+DIST PySDL2-0.9.7.tar.gz 1079253 BLAKE2B 
986a21d8c2f4f45df683d85a8369be7b39f102e59a1b3fd37e2941065a1174d5cd6dd056f78fbc3e2cf50228ee40abf67352e5ae75176a9c000fb6f672fb
 SHA512 
10d40063762272eaaae1cb6290e007481887806938ba0ba17d28974a3a3c8b36570054587001d00eb9ab4aa2375c616c43a81c7e7308fbb9b61b55b3eb7da5ac

diff --git a/dev-python/PySDL2/PySDL2-0.9.7.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.7.ebuild
new file mode 100644
index 000..e35d9527702
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.7.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+inherit distutils-r1
+
+DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/;
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   )"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+   "${FILESDIR}"/${P}-nameerror.patch
+)
+
+src_prepare() {
+   # tarball uses DOS line endings
+   find '(' -name '*.py' -o -name '*.rst' -o -name '*.txt' ')' \
+   -type f -exec sed -i -e 's/\r$//' {} + || die
+
+   distutils-r1_src_prepare
+}
+
+src_test() {
+   # from .travis.yml
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   distutils-r1_src_test
+}

diff --git a/dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch 
b/dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch
new file mode 100644
index 000..c94d354c576
--- /dev/null
+++ b/dev-python/PySDL2/files/PySDL2-0.9.7-nameerror.patch
@@ -0,0 +1,24 @@
+From 635048e81402f3dcc9719c060a67f33e6950649c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 
+Date: Sun, 12 Jul 2020 08:18:06 +0200
+Subject: [PATCH] Fix NameError when calling SDL_SetColorKey()
+
+---
+ sdl2/ext/image.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sdl2/ext/image.py b/sdl2/ext/image.py
+index 1a413e1..49d897d 100644
+--- a/sdl2/ext/image.py
 b/sdl2/ext/image.py
+@@ -154,6 +154,6 @@ def load_image(fname, enforce=None):
+ # If the image has a single transparent palette index, set
+ # that index as the color key to make blitting correct.
+ if 'transparency' in image.info and 
isinstance(image.info['transparency'], int):
+-sdl2.SDL_SetColorKey(imgsurface, True, 
image.info['transparency'])
++surface.SDL_SetColorKey(imgsurface, True, 
image.info['transparency'])
+ 
+ return imgsurface
+-- 
+2.27.0
+



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

2020-01-17 Thread Michał Górny
commit: 152f094999bf9e7e8709adea31300e568656d3d4
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Jan 17 11:17:52 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Jan 17 11:25:28 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=152f0949

dev-python/PySDL2: Set DISTUTILS_USE_SETUPTOOLS

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

 dev-python/PySDL2/PySDL2-0.9.6.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/PySDL2/PySDL2-0.9.6.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.6.ebuild
index 025e430c1d6..85eed5b0afa 100644
--- a/dev-python/PySDL2/PySDL2-0.9.6.ebuild
+++ b/dev-python/PySDL2/PySDL2-0.9.6.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=6
 
+DISTUTILS_USE_SETUPTOOLS=no
 PYTHON_COMPAT=( python3_{6,7} )
 inherit distutils-r1
 



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

2018-12-02 Thread Jonathan Callen
commit: 3744a9650dc540c05c4cb5c72d9727c9e48f185c
Author: Jonathan Callen  gentoo  org>
AuthorDate: Mon Dec  3 01:25:02 2018 +
Commit: Jonathan Callen  gentoo  org>
CommitDate: Mon Dec  3 02:18:13 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3744a965

dev-python/PySDL2: add python3_7

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Jonathan Callen  gentoo.org>

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

diff --git a/dev-python/PySDL2/PySDL2-0.9.6.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.6.ebuild
index 77afc908e4e..05f52e5 100644
--- a/dev-python/PySDL2/PySDL2-0.9.6.ebuild
+++ b/dev-python/PySDL2/PySDL2-0.9.6.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
 inherit distutils-r1
 
 DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"



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

2018-01-01 Thread Michał Górny
commit: b5bfe230bd9108c5b6bf4cf45a781a6e7a1f4fbb
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Jan  1 13:13:43 2018 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Jan  1 13:47:25 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5bfe230

dev-python/PySDL2: New package, needed for games-emu/m64py

Bug: https://bugs.gentoo.org/626488

 dev-python/PySDL2/Manifest |  1 +
 dev-python/PySDL2/PySDL2-0.9.6.ebuild  | 64 ++
 ...lways-allow-greater-patch-version-of-SDL2.patch | 47 
 ...-Handle-missing-haptic-support-gracefully.patch | 26 +
 dev-python/PySDL2/metadata.xml | 15 +
 5 files changed, 153 insertions(+)

diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest
new file mode 100644
index 000..f44f4f7a63a
--- /dev/null
+++ b/dev-python/PySDL2/Manifest
@@ -0,0 +1 @@
+DIST PySDL2-0.9.6.tar.gz 1048158 BLAKE2B 
70a450990dd73169489af2d5b218eea0794c9f75948d774680df4b4423855318ddc6d16a0453f62361d4f0b81e872edc067235c4f946476ea8988e16cd0de44c
 SHA512 
676b1b3381b614122442c70fe4cbd7c210ef3d8695c2babd37938e67b5cfeb2f8acbdcb914c5f68aceb549d89f7a77bdc80c7406b340b0e38c22543df8d46739

diff --git a/dev-python/PySDL2/PySDL2-0.9.6.ebuild 
b/dev-python/PySDL2/PySDL2-0.9.6.ebuild
new file mode 100644
index 000..d761ef0b205
--- /dev/null
+++ b/dev-python/PySDL2/PySDL2-0.9.6.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
+inherit distutils-r1
+
+DESCRIPTION="Python (ctypes) bindings for SDL2 libraries"
+HOMEPAGE="https://github.com/marcusva/py-sdl2 
https://pypi.python.org/pypi/PySDL2;
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# Optional deps:
+# - dev-python/numpy,
+# - dev-python/pillow,
+# - media-libs/sdl2-* (loaded dynamically via ctypes).
+#
+# If a reverse dependency needs the specific module, it should
+# explicitly depend on the optional module in question. You also
+# probably need to explicitly require some media-libs/libsdl2 flags.
+RDEPEND="media-libs/libsdl2"
+
+# Require all of SDL2 libraries and at least the most common subsystems
+# for better test coverage.
+DEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   media-libs/libsdl2[joystick,sound,video]
+   media-libs/sdl2-gfx
+   media-libs/sdl2-image
+   media-libs/sdl2-mixer
+   media-libs/sdl2-ttf
+   )"
+
+PATCHES=(
+   # fix tests to allow newer versions of libsdl2
+   
"${FILESDIR}"/PySDL2-0.9.6-0001-test-Always-allow-greater-patch-version-of-SDL2.patch
+   # fix tests to handle missing haptic support gracefully
+   
"${FILESDIR}"/PySDL2-0.9.6-0002-test-Handle-missing-haptic-support-gracefully.patch
+)
+
+src_prepare() {
+   # tarball uses DOS line endings
+   find '(' -name '*.py' -o -name '*.rst' -o -name '*.txt' ')' \
+   -type f -exec sed -i -e 's/\r$//' {} + || die
+
+   distutils-r1_src_prepare
+}
+
+python_test() {
+   # from .travis.yml
+   local -x SDL_VIDEODRIVER=dummy
+   local -x SDL_AUDIODRIVER=dummy
+   local -x SDL_RENDER_DRIVER=software
+
+   "${PYTHON}" -m unittest discover -v \
+   -s sdl2/test -p '*_test.py' || die "Tests fail with ${EPYTHON}"
+}

diff --git 
a/dev-python/PySDL2/files/PySDL2-0.9.6-0001-test-Always-allow-greater-patch-version-of-SDL2.patch
 
b/dev-python/PySDL2/files/PySDL2-0.9.6-0001-test-Always-allow-greater-patch-version-of-SDL2.patch
new file mode 100644
index 000..0b72f903663
--- /dev/null
+++ 
b/dev-python/PySDL2/files/PySDL2-0.9.6-0001-test-Always-allow-greater-patch-version-of-SDL2.patch
@@ -0,0 +1,47 @@
+From d34a898bb8d8bfd9cb4a85ff880826e4c7f2b0f7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 
+Date: Mon, 1 Jan 2018 12:31:52 +0100
+Subject: [PATCH 1/2] test: Always allow greater patch-version of SDL2
+
+Similarly to sdlimage_test, allow newer patch-version of other SDL2
+libraries. There is no technical reason to prevent people from upgrading
+libsdl2 while having old PySDL2 installed, and there is no reason to
+make tests fail every time libsdl2 happens to be upgraded.
+
+(backported for 0.9.6)
+
+Closes: https://github.com/marcusva/py-sdl2/issues/115
+---
+ sdl2/test/sdlmixer_test.py | 2 +-
+ sdl2/test/version_test.py  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/sdl2/test/sdlmixer_test.py b/sdl2/test/sdlmixer_test.py
+index 00c2ca6..1cebe55 100644
+--- a/sdl2/test/sdlmixer_test.py
 b/sdl2/test/sdlmixer_test.py
+@@ -27,7 +27,7 @@ class SDLMixerTest(unittest.TestCase):
+