From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/pywlroots/Manifest | 1 + ...pywlroots-0.15.24-no-import-version-check.patch | 13 +++++ dev-python/pywlroots/metadata.xml | 8 ++++ dev-python/pywlroots/pywlroots-0.17.0.ebuild | 55 ++++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 dev-python/pywlroots/Manifest create mode 100644 dev-python/pywlroots/files/pywlroots-0.15.24-no-import-version-check.patch create mode 100644 dev-python/pywlroots/metadata.xml create mode 100644 dev-python/pywlroots/pywlroots-0.17.0.ebuild (limited to 'dev-python/pywlroots') diff --git a/dev-python/pywlroots/Manifest b/dev-python/pywlroots/Manifest new file mode 100644 index 000000000000..3d84f9bb70e7 --- /dev/null +++ b/dev-python/pywlroots/Manifest @@ -0,0 +1 @@ +DIST pywlroots-0.17.0.tar.gz 99439 BLAKE2B 0f4153e5d4e7786d52d2a66614c4c92d29d0ef57be74ce8e7b23ed244c361a551b84606493296b99b4b1f48f5c862911f48aa32f3e7d5bd1c0fcedcfb1240474 SHA512 20b93845f26f1942bc111d12de24acc17af24cd70abd644a66a4b43e3622fa2cb9323c7dc846a5708c5cb63631e77020350231a67d3b6702ac5882fcd31411df diff --git a/dev-python/pywlroots/files/pywlroots-0.15.24-no-import-version-check.patch b/dev-python/pywlroots/files/pywlroots-0.15.24-no-import-version-check.patch new file mode 100644 index 000000000000..eb0cce91ac35 --- /dev/null +++ b/dev-python/pywlroots/files/pywlroots-0.15.24-no-import-version-check.patch @@ -0,0 +1,13 @@ +https://github.com/flacjacket/gentoo-overlay/blob/master/dev-python/pywlroots/files/pywlroots-no_version_check.patch + +This causes sandbox failures in e.g. qtile on importing pywlroots. +--- a/wlroots/ffi_build.py ++++ b/wlroots/ffi_build.py +@@ -44,6 +44,7 @@ def load_wlroots_version(): + + def check_version(): + """Check for wlroots version compatibility""" ++ return + # When importing a system-level installed package, we may not be able to + # create neighboring files, which is done by the `.verify` step. If this + # error is hit, we check with the compiled `wlroots.lib`. diff --git a/dev-python/pywlroots/metadata.xml b/dev-python/pywlroots/metadata.xml new file mode 100644 index 000000000000..988ae9a6a6fe --- /dev/null +++ b/dev-python/pywlroots/metadata.xml @@ -0,0 +1,8 @@ + + + + + python@gentoo.org + + baldeagleos-repo + diff --git a/dev-python/pywlroots/pywlroots-0.17.0.ebuild b/dev-python/pywlroots/pywlroots-0.17.0.ebuild new file mode 100644 index 000000000000..5f5d3df9f078 --- /dev/null +++ b/dev-python/pywlroots/pywlroots-0.17.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2025 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_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python binding to the wlroots library using cffi" +HOMEPAGE=" + https://github.com/flacjacket/pywlroots/ + https://pypi.org/project/pywlroots/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~riscv ~x86" +IUSE="X" + +# See README for wlroots dep +DEPEND=" + dev-python/cffi:=[${PYTHON_USEDEP}] + >=dev-python/pywayland-0.4.14[${PYTHON_USEDEP}] + >=dev-python/xkbcommon-0.2[${PYTHON_USEDEP}] + =gui-libs/wlroots-$(ver_cut 1-2)*:=[X?] +" +RDEPEND=" + ${DEPEND} +" + +distutils_enable_tests pytest + +src_prepare() { + local PATCHES=( + "${FILESDIR}"/${PN}-0.15.24-no-import-version-check.patch + ) + + # override automagic detection and caching that's completely broken + # by design; https://github.com/flacjacket/pywlroots/issues/132 + cat > wlroots/_build.py <<-EOF || die + has_xwayland = $(usex X True False) + EOF + sed -e "s:return.*has_xwayland$:return $(usex X True False):" \ + -i wlroots/ffi_build.py || die + + distutils-r1_src_prepare +} + +python_test() { + rm -rf wlroots || die + epytest +} -- cgit v1.3