pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-kivy



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Nov 20 06:36:48 UTC 2023

Modified Files:
        pkgsrc/devel/py-kivy: Makefile PLIST distinfo
Added Files:
        pkgsrc/devel/py-kivy/patches: patch-kivy_core_image___img__sdl2.pyx
            patch-kivy_core_window___window__sdl2.pyx
            patch-kivy_lib_gstplayer___gstplayer.pyx patch-setup.py

Log Message:
py-kivy: update to 2.2.1.

Add upstream patch for cython 3.

2.2.1

Highlights

    [#8283]: backport (#8276): Limit stencil to inner instructions on Image widget

Tests/ci

    [#8288]: backport (#8263): Increase timeout of httpbin tests to reduce risk of failures on CI runs

Documentation

    [#8252]: backport (#8251): Ensures that jQuery is always installed (on newer sphinx versions is not the default)

2.2.0

Highlights

    [#7876]: Line/SmoothLine: Fixes rendering issues related to corner radius and updates its order (rounded_rectangle) + add getter methods for rounded_rectangle, rectangle, ellipse, circle.
    [#7882]: Re-implements the Bubble widget.
    [#7908]: Speed up SmoothLine creation by ~2.5x
    [#7942]: Config unicode support on Windows
    [#7988]: Added support for KIVY_LOG_MODE
    [#8044]: Add support for Python 3.11
    [#8056]: New Feature: Add BoxShadow graphic instruction 🎉
    [#8115]: Use font_direction and font_script_name from SDL2_ttf
    [#8144]: Added property for mouse draggable tab scrollbar to TabbedPanel
    [#8162]: Label: allow different values of left, top, right and bottom for padding.
    [#8169]: Image: add fit_mode feature
    [#8096]: Introduce build script for SDL dependencies and KIVY_DEPS_ROOT

2.1.0

Highlights

    [#7658]: Feature: Added EventManagerBase. We can now register managers that selectively process inputs e.g. touch and decide how to dispatch it to the widget tree. on_motion and motion_filter was 
added to Widget to handle generic motion inputs from the managers.
    [#7270]: Graphics: We now check whether the user called GL instructions from an external thread and raise an error.
    [#7293]: Properties: Added dynamic screen density/dpi support. KV code referencing density e.g. width: "5dp" will now update if the window dpi changes.
    [#7371]: KV: Allow using f-strings in KV-lang.
    [#7424]: Properties: Speed up bare widget creation (3X) and property dispatching/setting.
    [#7587]: Fix PermissionError when reconnecting mtdev input devices.
    [#7637]: Added Custom titlebar support.
    [#7642]: TextInput loading time optimization for large texts.
    [#7663]: Add python3.10 support.
    [#7678]: Add support for Apple Silicon.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-kivy/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-kivy/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-kivy/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/py-kivy/patches/patch-kivy_core_image___img__sdl2.pyx \
    pkgsrc/devel/py-kivy/patches/patch-kivy_core_window___window__sdl2.pyx \
    pkgsrc/devel/py-kivy/patches/patch-kivy_lib_gstplayer___gstplayer.pyx \
    pkgsrc/devel/py-kivy/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-kivy/Makefile
diff -u pkgsrc/devel/py-kivy/Makefile:1.4 pkgsrc/devel/py-kivy/Makefile:1.5
--- pkgsrc/devel/py-kivy/Makefile:1.4   Tue Jun  6 12:41:14 2023
+++ pkgsrc/devel/py-kivy/Makefile       Mon Nov 20 06:36:47 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2023/06/06 12:41:14 riastradh Exp $
+# $NetBSD: Makefile,v 1.5 2023/11/20 06:36:47 wiz Exp $
 
-DISTNAME=      Kivy-2.0.0
+DISTNAME=      Kivy-2.2.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=K/Kivy/}
 
@@ -11,6 +10,8 @@ HOMEPAGE=     https://kivy.org/
 COMMENT=       Library for rapid development of multitouch applications
 LICENSE=       mit
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
 DEPENDS+=      ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
 TOOL_DEPENDS+= ${PYPKGPREFIX}-kivy-garden-[0-9]*:../../devel/py-kivy-garden
@@ -18,6 +19,7 @@ TOOL_DEPENDS+=        ${PYPKGPREFIX}-kivy-garde
 DEPENDS+=      ${PYPKGPREFIX}-enchant>=1.6.5:../../textproc/py-enchant
 DEPENDS+=      ${PYPKGPREFIX}-game-[0-9]*:../../devel/py-game
 DEPENDS+=      ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark-[0-9]*:../../devel/py-test-benchmark
 
 USE_LANGUAGES= c
 USE_TOOLS+=    pkg-config
@@ -27,7 +29,6 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27
 pre-configure:
        ${CHMOD} -R go-w ${WRKSRC}
 
-.include "../../devel/py-cython/buildlink3.mk"
 .include "../../graphics/MesaLib/buildlink3.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-kivy/PLIST
diff -u pkgsrc/devel/py-kivy/PLIST:1.1 pkgsrc/devel/py-kivy/PLIST:1.2
--- pkgsrc/devel/py-kivy/PLIST:1.1      Mon Jan  3 10:48:05 2022
+++ pkgsrc/devel/py-kivy/PLIST  Mon Nov 20 06:36:47 2023
@@ -1,9 +1,11 @@
-@comment $NetBSD: PLIST,v 1.1 2022/01/03 10:48:05 wiz Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.2 2023/11/20 06:36:47 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/dependency_links.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/kivy/__init__.py
 ${PYSITELIB}/kivy/__init__.pyc
 ${PYSITELIB}/kivy/__init__.pyo
@@ -11,6 +13,8 @@ ${PYSITELIB}/kivy/_clock.pxd
 ${PYSITELIB}/kivy/_clock.so
 ${PYSITELIB}/kivy/_event.pxd
 ${PYSITELIB}/kivy/_event.so
+${PYSITELIB}/kivy/_metrics.pxd
+${PYSITELIB}/kivy/_metrics.so
 ${PYSITELIB}/kivy/_version.py
 ${PYSITELIB}/kivy/_version.pyc
 ${PYSITELIB}/kivy/_version.pyo
@@ -254,6 +258,9 @@ ${PYSITELIB}/kivy/effects/scroll.pyo
 ${PYSITELIB}/kivy/event.py
 ${PYSITELIB}/kivy/event.pyc
 ${PYSITELIB}/kivy/event.pyo
+${PYSITELIB}/kivy/eventmanager/__init__.py
+${PYSITELIB}/kivy/eventmanager/__init__.pyc
+${PYSITELIB}/kivy/eventmanager/__init__.pyo
 ${PYSITELIB}/kivy/extras/__init__.py
 ${PYSITELIB}/kivy/extras/__init__.pyc
 ${PYSITELIB}/kivy/extras/__init__.pyo
@@ -278,6 +285,8 @@ ${PYSITELIB}/kivy/gesture.pyo
 ${PYSITELIB}/kivy/graphics/__init__.py
 ${PYSITELIB}/kivy/graphics/__init__.pyc
 ${PYSITELIB}/kivy/graphics/__init__.pyo
+${PYSITELIB}/kivy/graphics/boxshadow.pxd
+${PYSITELIB}/kivy/graphics/boxshadow.so
 ${PYSITELIB}/kivy/graphics/buffer.pxd
 ${PYSITELIB}/kivy/graphics/buffer.so
 ${PYSITELIB}/kivy/graphics/cgl.pxd
@@ -540,6 +549,7 @@ ${PYSITELIB}/kivy/tests/conftest.py
 ${PYSITELIB}/kivy/tests/conftest.pyc
 ${PYSITELIB}/kivy/tests/conftest.pyo
 ${PYSITELIB}/kivy/tests/coverage_lang.kv
+${PYSITELIB}/kivy/tests/data/test.ini
 ${PYSITELIB}/kivy/tests/fixtures.py
 ${PYSITELIB}/kivy/tests/fixtures.pyc
 ${PYSITELIB}/kivy/tests/fixtures.pyo
@@ -566,6 +576,7 @@ ${PYSITELIB}/kivy/tests/pyinstaller/vide
 ${PYSITELIB}/kivy/tests/pyinstaller/video_widget/project/__init__.py
 ${PYSITELIB}/kivy/tests/pyinstaller/video_widget/project/__init__.pyc
 ${PYSITELIB}/kivy/tests/pyinstaller/video_widget/project/__init__.pyo
+${PYSITELIB}/kivy/tests/pytest.ini
 ${PYSITELIB}/kivy/tests/sample1.ogg
 ${PYSITELIB}/kivy/tests/test_animations.py
 ${PYSITELIB}/kivy/tests/test_animations.pyc
@@ -576,6 +587,9 @@ ${PYSITELIB}/kivy/tests/test_app.pyo
 ${PYSITELIB}/kivy/tests/test_audio.py
 ${PYSITELIB}/kivy/tests/test_audio.pyc
 ${PYSITELIB}/kivy/tests/test_audio.pyo
+${PYSITELIB}/kivy/tests/test_benchmark.py
+${PYSITELIB}/kivy/tests/test_benchmark.pyc
+${PYSITELIB}/kivy/tests/test_benchmark.pyo
 ${PYSITELIB}/kivy/tests/test_button.png
 ${PYSITELIB}/kivy/tests/test_clipboard.py
 ${PYSITELIB}/kivy/tests/test_clipboard.pyc
@@ -583,12 +597,21 @@ ${PYSITELIB}/kivy/tests/test_clipboard.p
 ${PYSITELIB}/kivy/tests/test_clock.py
 ${PYSITELIB}/kivy/tests/test_clock.pyc
 ${PYSITELIB}/kivy/tests/test_clock.pyo
+${PYSITELIB}/kivy/tests/test_compat.py
+${PYSITELIB}/kivy/tests/test_compat.pyc
+${PYSITELIB}/kivy/tests/test_compat.pyo
+${PYSITELIB}/kivy/tests/test_config.py
+${PYSITELIB}/kivy/tests/test_config.pyc
+${PYSITELIB}/kivy/tests/test_config.pyo
 ${PYSITELIB}/kivy/tests/test_coverage.py
 ${PYSITELIB}/kivy/tests/test_coverage.pyc
 ${PYSITELIB}/kivy/tests/test_coverage.pyo
 ${PYSITELIB}/kivy/tests/test_doc_gallery.py
 ${PYSITELIB}/kivy/tests/test_doc_gallery.pyc
 ${PYSITELIB}/kivy/tests/test_doc_gallery.pyo
+${PYSITELIB}/kivy/tests/test_environ_cli.py
+${PYSITELIB}/kivy/tests/test_environ_cli.pyc
+${PYSITELIB}/kivy/tests/test_environ_cli.pyo
 ${PYSITELIB}/kivy/tests/test_fbo_py2py3.py
 ${PYSITELIB}/kivy/tests/test_fbo_py2py3.pyc
 ${PYSITELIB}/kivy/tests/test_fbo_py2py3.pyo
@@ -604,6 +627,9 @@ ${PYSITELIB}/kivy/tests/test_fonts.pyo
 ${PYSITELIB}/kivy/tests/test_graphics.py
 ${PYSITELIB}/kivy/tests/test_graphics.pyc
 ${PYSITELIB}/kivy/tests/test_graphics.pyo
+${PYSITELIB}/kivy/tests/test_graphics_svg.py
+${PYSITELIB}/kivy/tests/test_graphics_svg.pyc
+${PYSITELIB}/kivy/tests/test_graphics_svg.pyo
 ${PYSITELIB}/kivy/tests/test_image.py
 ${PYSITELIB}/kivy/tests/test_image.pyc
 ${PYSITELIB}/kivy/tests/test_image.pyo
@@ -634,6 +660,9 @@ ${PYSITELIB}/kivy/tests/test_issues/test
 ${PYSITELIB}/kivy/tests/test_issues/test_issue_883.py
 ${PYSITELIB}/kivy/tests/test_issues/test_issue_883.pyc
 ${PYSITELIB}/kivy/tests/test_issues/test_issue_883.pyo
+${PYSITELIB}/kivy/tests/test_kivy_init.py
+${PYSITELIB}/kivy/tests/test_kivy_init.pyc
+${PYSITELIB}/kivy/tests/test_kivy_init.pyo
 ${PYSITELIB}/kivy/tests/test_knspace.py
 ${PYSITELIB}/kivy/tests/test_knspace.pyc
 ${PYSITELIB}/kivy/tests/test_knspace.pyo
@@ -646,9 +675,21 @@ ${PYSITELIB}/kivy/tests/test_lang_comple
 ${PYSITELIB}/kivy/tests/test_lang_pre_process_and_post_process.py
 ${PYSITELIB}/kivy/tests/test_lang_pre_process_and_post_process.pyc
 ${PYSITELIB}/kivy/tests/test_lang_pre_process_and_post_process.pyo
+${PYSITELIB}/kivy/tests/test_logger.py
+${PYSITELIB}/kivy/tests/test_logger.pyc
+${PYSITELIB}/kivy/tests/test_logger.pyo
+${PYSITELIB}/kivy/tests/test_metrics.py
+${PYSITELIB}/kivy/tests/test_metrics.pyc
+${PYSITELIB}/kivy/tests/test_metrics.pyo
 ${PYSITELIB}/kivy/tests/test_module_inspector.py
 ${PYSITELIB}/kivy/tests/test_module_inspector.pyc
 ${PYSITELIB}/kivy/tests/test_module_inspector.pyo
+${PYSITELIB}/kivy/tests/test_motion_event.py
+${PYSITELIB}/kivy/tests/test_motion_event.pyc
+${PYSITELIB}/kivy/tests/test_motion_event.pyo
+${PYSITELIB}/kivy/tests/test_mouse_hover_event.py
+${PYSITELIB}/kivy/tests/test_mouse_hover_event.pyc
+${PYSITELIB}/kivy/tests/test_mouse_hover_event.pyo
 ${PYSITELIB}/kivy/tests/test_mouse_multitouchsim.py
 ${PYSITELIB}/kivy/tests/test_mouse_multitouchsim.pyc
 ${PYSITELIB}/kivy/tests/test_mouse_multitouchsim.pyo
@@ -658,6 +699,9 @@ ${PYSITELIB}/kivy/tests/test_multistroke
 ${PYSITELIB}/kivy/tests/test_properties.py
 ${PYSITELIB}/kivy/tests/test_properties.pyc
 ${PYSITELIB}/kivy/tests/test_properties.pyo
+${PYSITELIB}/kivy/tests/test_resources.py
+${PYSITELIB}/kivy/tests/test_resources.pyc
+${PYSITELIB}/kivy/tests/test_resources.pyo
 ${PYSITELIB}/kivy/tests/test_rst_replace.py
 ${PYSITELIB}/kivy/tests/test_rst_replace.pyc
 ${PYSITELIB}/kivy/tests/test_rst_replace.pyo
@@ -697,6 +741,9 @@ ${PYSITELIB}/kivy/tests/test_uix_layout.
 ${PYSITELIB}/kivy/tests/test_uix_modal.py
 ${PYSITELIB}/kivy/tests/test_uix_modal.pyc
 ${PYSITELIB}/kivy/tests/test_uix_modal.pyo
+${PYSITELIB}/kivy/tests/test_uix_recyclegridlayout.py
+${PYSITELIB}/kivy/tests/test_uix_recyclegridlayout.pyc
+${PYSITELIB}/kivy/tests/test_uix_recyclegridlayout.pyo
 ${PYSITELIB}/kivy/tests/test_uix_relativelayout.py
 ${PYSITELIB}/kivy/tests/test_uix_relativelayout.pyc
 ${PYSITELIB}/kivy/tests/test_uix_relativelayout.pyo
@@ -715,12 +762,18 @@ ${PYSITELIB}/kivy/tests/test_uix_textinp
 ${PYSITELIB}/kivy/tests/test_uix_translate_coordinates.py
 ${PYSITELIB}/kivy/tests/test_uix_translate_coordinates.pyc
 ${PYSITELIB}/kivy/tests/test_uix_translate_coordinates.pyo
+${PYSITELIB}/kivy/tests/test_uix_videoplayer.py
+${PYSITELIB}/kivy/tests/test_uix_videoplayer.pyc
+${PYSITELIB}/kivy/tests/test_uix_videoplayer.pyo
 ${PYSITELIB}/kivy/tests/test_uix_widget.py
 ${PYSITELIB}/kivy/tests/test_uix_widget.pyc
 ${PYSITELIB}/kivy/tests/test_uix_widget.pyo
-${PYSITELIB}/kivy/tests/test_urlrequest.py
-${PYSITELIB}/kivy/tests/test_urlrequest.pyc
-${PYSITELIB}/kivy/tests/test_urlrequest.pyo
+${PYSITELIB}/kivy/tests/test_urlrequest/test_urlrequest_requests.py
+${PYSITELIB}/kivy/tests/test_urlrequest/test_urlrequest_requests.pyc
+${PYSITELIB}/kivy/tests/test_urlrequest/test_urlrequest_requests.pyo
+${PYSITELIB}/kivy/tests/test_urlrequest/test_urlrequest_urllib.py
+${PYSITELIB}/kivy/tests/test_urlrequest/test_urlrequest_urllib.pyc
+${PYSITELIB}/kivy/tests/test_urlrequest/test_urlrequest_urllib.pyo
 ${PYSITELIB}/kivy/tests/test_utils.py
 ${PYSITELIB}/kivy/tests/test_utils.pyc
 ${PYSITELIB}/kivy/tests/test_utils.pyo
@@ -739,6 +792,9 @@ ${PYSITELIB}/kivy/tests/test_widget.pyo
 ${PYSITELIB}/kivy/tests/test_widget_walk.py
 ${PYSITELIB}/kivy/tests/test_widget_walk.pyc
 ${PYSITELIB}/kivy/tests/test_widget_walk.pyo
+${PYSITELIB}/kivy/tests/test_window_base.py
+${PYSITELIB}/kivy/tests/test_window_base.pyc
+${PYSITELIB}/kivy/tests/test_window_base.pyo
 ${PYSITELIB}/kivy/tests/test_window_info.py
 ${PYSITELIB}/kivy/tests/test_window_info.pyc
 ${PYSITELIB}/kivy/tests/test_window_info.pyo
@@ -813,6 +869,7 @@ ${PYSITELIB}/kivy/tools/pep8checker/pep8
 ${PYSITELIB}/kivy/tools/pep8checker/pep8kivy.pyc
 ${PYSITELIB}/kivy/tools/pep8checker/pep8kivy.pyo
 ${PYSITELIB}/kivy/tools/pep8checker/pre-commit.githook
+${PYSITELIB}/kivy/tools/precommit_hooks/pre-commit-config.yaml
 ${PYSITELIB}/kivy/tools/report.py
 ${PYSITELIB}/kivy/tools/report.pyc
 ${PYSITELIB}/kivy/tools/report.pyo
@@ -1307,6 +1364,7 @@ share/kivy-examples/kv/ids/kv_and_py/tes
 share/kivy-examples/kv/kivy.jpg
 share/kivy-examples/kv/kvrun.py
 share/kivy-examples/miscellaneous/clipboard.py
+share/kivy-examples/miscellaneous/custom_titlebar.py
 share/kivy-examples/miscellaneous/imagesave.py
 share/kivy-examples/miscellaneous/joystick.py
 share/kivy-examples/miscellaneous/multiple_dropfile.py
@@ -1329,6 +1387,7 @@ share/kivy-examples/svg/cloud.svg
 share/kivy-examples/svg/main-smaa.py
 share/kivy-examples/svg/main.py
 share/kivy-examples/svg/music.svg
+share/kivy-examples/svg/rotated.svg
 share/kivy-examples/svg/ship.svg
 share/kivy-examples/svg/sun.svg
 share/kivy-examples/svg/tiger.svg

Index: pkgsrc/devel/py-kivy/distinfo
diff -u pkgsrc/devel/py-kivy/distinfo:1.2 pkgsrc/devel/py-kivy/distinfo:1.3
--- pkgsrc/devel/py-kivy/distinfo:1.2   Fri Feb 10 14:52:31 2023
+++ pkgsrc/devel/py-kivy/distinfo       Mon Nov 20 06:36:47 2023
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.2 2023/02/10 14:52:31 wiz Exp $
+$NetBSD: distinfo,v 1.3 2023/11/20 06:36:47 wiz Exp $
 
-BLAKE2s (Kivy-2.0.0.tar.gz) = 977121940776b21767410732b1ebd05d5a857144c5ff3f78e835b488758ed3ef
-SHA512 (Kivy-2.0.0.tar.gz) = dd91feddaf8477093a0e12bd94a265e1b6eaeccc08f6a1908cba8b89fd388dbd803ef98975d9c4c3d4d0f335da5df247f2773f1bcb14e54ee0506c8a7e9a369d
-Size (Kivy-2.0.0.tar.gz) = 23709407 bytes
-SHA1 (patch-setup.cfg) = 51be57cafa27443bf02cf943d88fb2572853ab74
+BLAKE2s (Kivy-2.2.1.tar.gz) = cc86df8a3d8f972cbb05c570be1492a6a48235deff0bc85dc22e15c44051b60f
+SHA512 (Kivy-2.2.1.tar.gz) = 64f517a10c5681a556954057f1ae35bfab9a71fb3808e395ae9a59a8fbe505260c554851f2a89db0cb1fee1bf0c8d8ae14d3cb72877b60b0d9ba7c9f9aacb227
+Size (Kivy-2.2.1.tar.gz) = 23972000 bytes
+SHA1 (patch-kivy_core_image___img__sdl2.pyx) = f6844b3f490278a41d4e5f763c279cca7715aaa8
+SHA1 (patch-kivy_core_window___window__sdl2.pyx) = 61648494f37db9c481bf38a8fc5efe0a69c55bdb
+SHA1 (patch-kivy_lib_gstplayer___gstplayer.pyx) = 80f62b6492b4d0128b24108af2ed0438ed8762a7
+SHA1 (patch-setup.py) = 38743d28429d2bac8d496ae016f1e51d9d5d5a5e

Added files:

Index: pkgsrc/devel/py-kivy/patches/patch-kivy_core_image___img__sdl2.pyx
diff -u /dev/null pkgsrc/devel/py-kivy/patches/patch-kivy_core_image___img__sdl2.pyx:1.1
--- /dev/null   Mon Nov 20 06:36:48 2023
+++ pkgsrc/devel/py-kivy/patches/patch-kivy_core_image___img__sdl2.pyx  Mon Nov 20 06:36:47 2023
@@ -0,0 +1,23 @@
+$NetBSD: patch-kivy_core_image___img__sdl2.pyx,v 1.1 2023/11/20 06:36:47 wiz Exp $
+
+https://github.com/kivy/kivy/pull/8326/files
+
+--- kivy/core/image/_img_sdl2.pyx.orig 2023-11-20 06:24:23.659161661 +0000
++++ kivy/core/image/_img_sdl2.pyx
+@@ -14,14 +14,14 @@ cdef struct SDL_RWops:
+     int (* close) (SDL_RWops * context)
+ 
+ 
+-cdef size_t rwops_bytesio_write(SDL_RWops *context, const void *ptr, size_t size, size_t num):
++cdef size_t rwops_bytesio_write(SDL_RWops *context, const void *ptr, size_t size, size_t num) noexcept:
+     cdef char *c_string = <char *>ptr
+     byteio = <object>context.hidden.unknown.data1
+     byteio.write(c_string[:size * num])
+     return size * num
+ 
+ 
+-cdef int rwops_bytesio_close(SDL_RWops *context):
++cdef int rwops_bytesio_close(SDL_RWops *context) noexcept:
+     byteio = <object>context.hidden.unknown.data1
+     byteio.seek(0)
+ 
Index: pkgsrc/devel/py-kivy/patches/patch-kivy_core_window___window__sdl2.pyx
diff -u /dev/null pkgsrc/devel/py-kivy/patches/patch-kivy_core_window___window__sdl2.pyx:1.1
--- /dev/null   Mon Nov 20 06:36:48 2023
+++ pkgsrc/devel/py-kivy/patches/patch-kivy_core_window___window__sdl2.pyx      Mon Nov 20 06:36:47 2023
@@ -0,0 +1,33 @@
+$NetBSD: patch-kivy_core_window___window__sdl2.pyx,v 1.1 2023/11/20 06:36:47 wiz Exp $
+
+https://github.com/kivy/kivy/pull/8326/files
+
+--- kivy/core/window/_window_sdl2.pyx.orig     2023-11-20 06:24:57.914793792 +0000
++++ kivy/core/window/_window_sdl2.pyx
+@@ -263,7 +263,7 @@ cdef class _WindowSDL2Storage:
+         for joy_i in range(SDL_NumJoysticks()):
+             SDL_JoystickOpen(joy_i)
+ 
+-        SDL_SetEventFilter(_event_filter, <void *>self)
++        SDL_SetEventFilter(<SDL_EventFilter *>_event_filter, <void *>self)
+ 
+         SDL_EventState(SDL_DROPFILE, SDL_ENABLE)
+         SDL_EventState(SDL_DROPTEXT, SDL_ENABLE)
+@@ -437,7 +437,7 @@ cdef class _WindowSDL2Storage:
+     def set_shape(self, shape, mode, cutoff, color_key):
+         cdef SDL_Surface * sdl_shape
+ 
+-        cpdef SDL_WindowShapeMode sdl_window_mode
++        cdef SDL_WindowShapeMode sdl_window_mode
+         cdef SDL_WindowShapeParams parameters
+         cdef SDL_Color color
+         cdef int result
+@@ -793,7 +793,7 @@ cdef class _WindowSDL2Storage:
+ 
+     def set_custom_titlebar(self, titlebar_widget):
+         SDL_SetWindowBordered(self.win, SDL_FALSE)
+-        return SDL_SetWindowHitTest(self.win,custom_titlebar_handler_callback,<void *>titlebar_widget)
++        return SDL_SetWindowHitTest(self.win,<SDL_HitTest>custom_titlebar_handler_callback,<void *>titlebar_widget)
+ 
+     @property
+     def window_size(self):
Index: pkgsrc/devel/py-kivy/patches/patch-kivy_lib_gstplayer___gstplayer.pyx
diff -u /dev/null pkgsrc/devel/py-kivy/patches/patch-kivy_lib_gstplayer___gstplayer.pyx:1.1
--- /dev/null   Mon Nov 20 06:36:48 2023
+++ pkgsrc/devel/py-kivy/patches/patch-kivy_lib_gstplayer___gstplayer.pyx       Mon Nov 20 06:36:47 2023
@@ -0,0 +1,30 @@
+$NetBSD: patch-kivy_lib_gstplayer___gstplayer.pyx,v 1.1 2023/11/20 06:36:47 wiz Exp $
+
+https://github.com/kivy/kivy/pull/8326/files
+
+--- kivy/lib/gstplayer/_gstplayer.pyx.orig     2023-11-20 06:25:57.768092066 +0000
++++ kivy/lib/gstplayer/_gstplayer.pyx
+@@ -225,7 +225,7 @@ cdef class GstPlayer:
+         gst_bus_enable_sync_message_emission(self.bus)
+         if self.eos_cb or self.message_cb:
+             self.hid_message = c_bus_connect_message(
+-                    self.bus, _on_gstplayer_message, <void *>self)
++                    self.bus, <buscallback_t>_on_gstplayer_message, <void *>self)
+ 
+         # instantiate the playbin
+         self.playbin = gst_element_factory_make('playbin', NULL)
+@@ -266,7 +266,7 @@ cdef class GstPlayer:
+         # the reference of self in the set_sample_callback() method.
+         if self.sample_cb:
+             self.hid_sample = c_appsink_set_sample_callback(
+-                    self.appsink, _on_appsink_sample, <void *>self)
++                    self.appsink, <appcallback_t>_on_appsink_sample, <void *>self)
+ 
+         # get ready!
+         with nogil:
+@@ -415,4 +415,4 @@ cdef class GstPlayer:
+                     &pending_state, <GstClockTime>GST_SECOND)
+             if current_state != GST_STATE_PLAYING:
+                 c_appsink_pull_preroll(
+-                    self.appsink, _on_appsink_sample, <void *>self)
++                    self.appsink, <appcallback_t>_on_appsink_sample, <void *>self)
Index: pkgsrc/devel/py-kivy/patches/patch-setup.py
diff -u /dev/null pkgsrc/devel/py-kivy/patches/patch-setup.py:1.1
--- /dev/null   Mon Nov 20 06:36:48 2023
+++ pkgsrc/devel/py-kivy/patches/patch-setup.py Mon Nov 20 06:36:47 2023
@@ -0,0 +1,17 @@
+$NetBSD: patch-setup.py,v 1.1 2023/11/20 06:36:47 wiz Exp $
+
+https://github.com/kivy/kivy/pull/8326/files
+
+--- setup.py.orig      2023-11-20 06:26:46.811168742 +0000
++++ setup.py
+@@ -597,10 +597,6 @@ class CythonExtension(Extension):
+             'language_level': 3,
+             'unraisable_tracebacks': True,
+         }
+-        # XXX with pip, setuptools is imported before distutils, and change
+-        # our pyx to c, then, cythonize doesn't happen. So force again our
+-        # sources
+-        self.sources = args[1]
+ 
+ 
+ def merge(d1, *args):



Home | Main Index | Thread Index | Old Index