mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-03 15:58:25 +00:00
python3-kivy: Upgrade 2.2.1 -> 2.3.0
Upgrade to version 2.3.0: - core-providers (audio): removes deprecated status property - core-providers (audio): removes deprecated filename property - core-providers (window): Removes deprecated toggle_fullscreen method - Add graphics with antialiasing: SmoothRectangle, SmoothEllipse, SmoothRoundedRectangle, SmoothQuad and SmoothTriangle - Linux dependencies: Build libpng16 for freetype so can render colored emoji - Remove the extra position added to undo list while using Shift key - macOS dependencies: Build libpng16 for freetype, so can render colored emoji - Honour multiline=True/False while pasting, Fix Scroll after backspace and undo. - Added spanish layout json for the vkeyboard - Pillow text provider: use get_bbox when get_size is not available. Allows latest versions of pillow to work along with older ones. License-Update: Copyright year changes Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
73
meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb
Normal file
73
meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY = "Open source Python library for rapid development of applications \
|
||||
that make use of innovative user interfaces, such as multi-touch apps."
|
||||
HOMEPAGE = "https://kivy.org/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=6d3bc49400e35d5a2279d14c40dcfb09"
|
||||
|
||||
inherit setuptools3 pkgconfig features_check
|
||||
PIP_INSTALL_PACKAGE = "Kivy"
|
||||
|
||||
# Kivy's setup files only look for GLES libraries for Android, iOS, RPi,
|
||||
# and mali-based OS's. We need to patch the setup file to tell Kivy setup
|
||||
# that our machine has GLES libaries installed as well
|
||||
# Also, if using SDL2 as backend, SDL2 needs to be configured with gles
|
||||
SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \
|
||||
file://0001-add-support-for-glesv2.patch \
|
||||
"
|
||||
|
||||
SRCREV = "9ef218027178115a66b417ae34b21f488bdd3617"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
PACKAGES += "${PN}-examples"
|
||||
FILES:${PN}-examples = "/usr/share/kivy-examples"
|
||||
|
||||
USE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', '0', d)}"
|
||||
export USE_WAYLAND
|
||||
|
||||
# if using Wayland, let's use pure Wayland (and not XWayland)
|
||||
# so do not build using X11 flag when we detect Wayland
|
||||
USE_X11 = " \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '0', \
|
||||
bb.utils.contains('DISTRO_FEATURES', 'x11', '1', \
|
||||
'0', d), d)}"
|
||||
export USE_X11
|
||||
|
||||
# Use OpenGL ES 2.0 library
|
||||
KIVY_GRAPHICS = "gles"
|
||||
export KIVY_GRAPHICS
|
||||
|
||||
KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}"
|
||||
export KIVY_CROSS_SYSROOT
|
||||
|
||||
REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data"
|
||||
|
||||
ANY_OF_DISTRO_FEATURES = "x11 wayland"
|
||||
|
||||
DEPENDS += " \
|
||||
gstreamer1.0 \
|
||||
gstreamer1.0-python \
|
||||
libsdl2 \
|
||||
libsdl2-ttf \
|
||||
libsdl2-image \
|
||||
libsdl2-mixer \
|
||||
pango \
|
||||
python3 \
|
||||
python3-cython-native \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
gstreamer1.0 \
|
||||
gstreamer1.0-python \
|
||||
libsdl2 \
|
||||
libsdl2-ttf \
|
||||
libsdl2-image \
|
||||
libsdl2-mixer \
|
||||
pango \
|
||||
python3 \
|
||||
python3-docutils \
|
||||
python3-fcntl \
|
||||
python3-image \
|
||||
python3-pillow \
|
||||
python3-pygments \
|
||||
"
|
||||
Reference in New Issue
Block a user