From 9aefa814d833d6bdd1bdbc7d0f44d5680c9beaa8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 24 Dec 2022 14:02:21 +0000 Subject: gentoo auto-resync : 24:12:2022 - 14:02:21 --- x11-wm/qtile/qtile-0.22.1.ebuild | 79 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 x11-wm/qtile/qtile-0.22.1.ebuild (limited to 'x11-wm/qtile/qtile-0.22.1.ebuild') diff --git a/x11-wm/qtile/qtile-0.22.1.ebuild b/x11-wm/qtile/qtile-0.22.1.ebuild new file mode 100644 index 000000000000..11d0d1fd538d --- /dev/null +++ b/x11-wm/qtile/qtile-0.22.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="A full-featured, hackable tiling window manager written in Python" +HOMEPAGE="http://qtile.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/qtile/qtile.git" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~riscv ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +RDEPEND=">=dev-python/cairocffi-0.9.0[${PYTHON_USEDEP}] + >=dev-python/cffi-1.1.0[${PYTHON_USEDEP}] + dev-python/dbus-next[${PYTHON_USEDEP}] + dev-python/pygobject[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] + >=dev-python/six-1.4.1[${PYTHON_USEDEP}] + >=dev-python/xcffib-0.10.1[${PYTHON_USEDEP}] + media-sound/pulseaudio + x11-libs/cairo[X,xcb(+)] + x11-libs/libnotify[introspection] + x11-libs/pango" +BDEPEND=" + test? ( + media-gfx/imagemagick[X] + x11-base/xorg-server[xephyr] + )" + +EPYTEST_DESELECT=( + # Can't find built qtile like migrate + test/test_qtile_cmd.py::test_qtile_cmd + test/test_qtile_cmd.py::test_display_kb +) + +EPYTEST_IGNORE=( + # Tries to find binary and fails; not worth running anyway? + test/test_migrate.py +) + +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + # Force usage of built module + rm -rf "${S}"/libqtile || die + + epytest || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + local DOCS=( CHANGELOG README.rst ) + distutils-r1_python_install_all + + insinto /usr/share/xsessions + doins resources/qtile.desktop + + insinto /usr/share/wayland-sessions + doins resources/qtile-wayland.desktop + + exeinto /etc/X11/Sessions + newexe "${FILESDIR}"/${PN}-session-r1 ${PN} +} -- cgit v1.2.3