summaryrefslogtreecommitdiff
path: root/dev-python/pywlroots
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-12-05 21:10:33 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-12-05 21:10:33 +0000
commit0ff2b922b0569616bb03f92e9563ac1812dd7604 (patch)
tree0f412fe2846b82b12eab5ed493c392582a050cbb /dev-python/pywlroots
parentd9af447f4fbcf1081e40b9c10b74d82a369b7291 (diff)
downloadbaldeagleos-repo-0ff2b922b0569616bb03f92e9563ac1812dd7604.tar.gz
baldeagleos-repo-0ff2b922b0569616bb03f92e9563ac1812dd7604.tar.xz
baldeagleos-repo-0ff2b922b0569616bb03f92e9563ac1812dd7604.zip
Adding metadata
Diffstat (limited to 'dev-python/pywlroots')
-rw-r--r--dev-python/pywlroots/pywlroots-0.16.6-r2.ebuild (renamed from dev-python/pywlroots/pywlroots-0.16.6-r1.ebuild)24
1 files changed, 18 insertions, 6 deletions
diff --git a/dev-python/pywlroots/pywlroots-0.16.6-r1.ebuild b/dev-python/pywlroots/pywlroots-0.16.6-r2.ebuild
index 262cc2ffab5d..5f9a5c33fd34 100644
--- a/dev-python/pywlroots/pywlroots-0.16.6-r1.ebuild
+++ b/dev-python/pywlroots/pywlroots-0.16.6-r2.ebuild
@@ -18,25 +18,37 @@ HOMEPAGE="
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)*:=
- x11-base/xwayland
+ =gui-libs/wlroots-$(ver_cut 1-2)*:=[X?]
"
RDEPEND="
${DEPEND}
"
-PATCHES=(
- "${FILESDIR}"/${PN}-0.15.24-no-import-version-check.patch
-)
-
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