diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-18 12:04:39 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-18 12:04:39 +0100 |
commit | 2d01b3d133c0fbf17de8d7b47905585af88bd6e4 (patch) | |
tree | f74eb9a3d16ed25f8c15b825f4d28b759ae99a42 /dev-python/pywlroots/pywlroots-0.16.7.ebuild | |
parent | 97bacba3ead078e5db8b87ab651a3ffa7d82f60f (diff) |
gentoo auto-resync : 18:04:2024 - 12:04:39
Diffstat (limited to 'dev-python/pywlroots/pywlroots-0.16.7.ebuild')
-rw-r--r-- | dev-python/pywlroots/pywlroots-0.16.7.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/pywlroots/pywlroots-0.16.7.ebuild b/dev-python/pywlroots/pywlroots-0.16.7.ebuild new file mode 100644 index 000000000000..9a4044ba719c --- /dev/null +++ b/dev-python/pywlroots/pywlroots-0.16.7.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 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_{10..12} ) + +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 +} |