# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_IN_SOURCE_BUILD="1" PYTHON_COMPAT=( python3_11 ) PYPI_NO_NORMALIZE=1 PYPI_PN="wxPython" WX_GTK_VER="3.2-gtk3" inherit distutils-r1 multiprocessing virtualx wxwidgets pypi DESCRIPTION="A blending of the wxWindows C++ class library with Python" HOMEPAGE="https://www.wxpython.org/" LICENSE="wxWinLL-3" SLOT="4.0" KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86" IUSE="test webkit" # Tests broken: #726812, #722716 # Nearly there as of 4.2.0 but still quite flaky (inconsistent set of failures) RESTRICT="!test? ( test ) test" # wxPython doesn't seem to be able to optionally disable features. webkit is # optionally patched out because it's so huge, but other elements are not, # which makes us have to require all features from wxGTK RDEPEND=" >=x11-libs/wxGTK-3.0.4-r301:${WX_GTK_VER}=[gstreamer,libnotify,opengl,sdl,tiff,webkit?,X] media-libs/libpng:= media-libs/tiff:= media-libs/libjpeg-turbo:= " DEPEND="${RDEPEND}" #