Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/qtile/files/, x11-wm/qtile/
Date: Thu, 19 May 2022 01:09:35
Message-Id: 1652922560.cd62e1953a2c3b84280308b57848cc47c6fdcfec.sam@gentoo
1 commit: cd62e1953a2c3b84280308b57848cc47c6fdcfec
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 01:07:24 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 01:09:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd62e195
7
8 x11-wm/qtile: add 0.21.0
9
10 Notably no Wayland glue added yet as it's automagic by the looks of it
11 (see bug for details).
12
13 Some of the bits were based on the ebuild posted in bug (which itself
14 is from flacjacket overlay).
15
16 Bug: https://bugs.gentoo.org/846380
17 Closes: https://bugs.gentoo.org/846362
18 Closes: https://bugs.gentoo.org/809251
19 Thanks-to: Sean Vig <sean.v.775 <AT> gmail.com>
20 Signed-off-by: Sam James <sam <AT> gentoo.org>
21
22 x11-wm/qtile/Manifest | 1 +
23 x11-wm/qtile/files/qtile.desktop | 6 ++++
24 x11-wm/qtile/qtile-0.21.0.ebuild | 69 ++++++++++++++++++++++++++++++++++++++++
25 3 files changed, 76 insertions(+)
26
27 diff --git a/x11-wm/qtile/Manifest b/x11-wm/qtile/Manifest
28 index a8500cbec56b..aac5206b1051 100644
29 --- a/x11-wm/qtile/Manifest
30 +++ b/x11-wm/qtile/Manifest
31 @@ -1,2 +1,3 @@
32 DIST qtile-0.16.1.tar.gz 324668 BLAKE2B 1f75f5dbcab6180dcf778e28108e70b6dd01105fa275aadf4a53d96ab84f3b759cb8553bcf3de2011b0990d61adc9269663afa32b83d1aa9c052b00ef9e89358 SHA512 aea42f7f6799a88b586167a57f5b5ab6f1c5bb663dec352d15eb47ce0d37fb23c31d1631cab8178c71be5ae714ec12c35a350377383dba1749a98cd45c22515b
33 DIST qtile-0.17.0.tar.gz 336235 BLAKE2B f2290ab823b31cd8ed512f076018a8df19bbfedbb7d5c6932eee7cd46c341a08af04ed0d99f4391d1b3ccc07eb33015bbf0050c1c5d749bace4fb6dcfcb71ac9 SHA512 bfe51aabef2d48693c5bb7525cf67b1bb99cf3af5a653cd81d523e5adaa4767a43e7a87db14f9b85fae3a9e414af41a2e66736556eb1552d099755ba6f39caeb
34 +DIST qtile-0.21.0.tar.gz 475428 BLAKE2B 8c63eb8776fb6feab30c7ee2a19e6f28df6715fc18b09c63b89de6bf2129cd3c5c516d0c9efc946f24590fa8afc6e87c704c8e3b7094d0843b5b6e34df57ca18 SHA512 b7c5fc478180413e263445316ac9560c1d22668194415c3e4edae5c672f4b317fd978083dc9a985f0d145aeaaa55ffab0017e83af963f30d8b36f9963e12b079
35
36 diff --git a/x11-wm/qtile/files/qtile.desktop b/x11-wm/qtile/files/qtile.desktop
37 new file mode 100644
38 index 000000000000..5b00f85a88c0
39 --- /dev/null
40 +++ b/x11-wm/qtile/files/qtile.desktop
41 @@ -0,0 +1,6 @@
42 +[Desktop Entry]
43 +Name=Qtile
44 +Comment=Qtile Wayland Session
45 +Exec=qtile start -b wayland
46 +Type=Application
47 +Keywords=wm;tiling
48
49 diff --git a/x11-wm/qtile/qtile-0.21.0.ebuild b/x11-wm/qtile/qtile-0.21.0.ebuild
50 new file mode 100644
51 index 000000000000..d219eaf9e16c
52 --- /dev/null
53 +++ b/x11-wm/qtile/qtile-0.21.0.ebuild
54 @@ -0,0 +1,69 @@
55 +# Copyright 1999-2022 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=8
59 +
60 +DISTUTILS_USE_PEP517=setuptools
61 +PYTHON_COMPAT=( python3_{8..10} )
62 +
63 +inherit distutils-r1 virtualx
64 +
65 +DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
66 +HOMEPAGE="http://qtile.org/"
67 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
68 +
69 +LICENSE="MIT"
70 +SLOT="0"
71 +KEYWORDS="~amd64"
72 +
73 +RDEPEND=">=dev-python/cairocffi-0.9.0[${PYTHON_USEDEP}]
74 + >=dev-python/cffi-1.1.0[${PYTHON_USEDEP}]
75 + dev-python/dbus-next[${PYTHON_USEDEP}]
76 + dev-python/pygobject[${PYTHON_USEDEP}]
77 + dev-python/setuptools[${PYTHON_USEDEP}]
78 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
79 + >=dev-python/six-1.4.1[${PYTHON_USEDEP}]
80 + >=dev-python/xcffib-0.10.1[${PYTHON_USEDEP}]
81 + media-sound/pulseaudio
82 + x11-libs/cairo[X,xcb(+)]
83 + x11-libs/libnotify[introspection]
84 + x11-libs/pango"
85 +BDEPEND="test? ( x11-base/xorg-server[xephyr] )"
86 +
87 +EPYTEST_DESELECT=(
88 + # Can't find built qtile like migrate
89 + test/test_qtile_cmd.py::test_qtile_cmd
90 + test/test_qtile_cmd.py::test_display_kb
91 +)
92 +
93 +EPYTEST_IGNORE=(
94 + # Tries to find binary and fails; not worth running anyway?
95 + test/test_migrate.py
96 +)
97 +
98 +distutils_enable_tests pytest
99 +
100 +src_test() {
101 + virtx distutils-r1_src_test
102 +}
103 +
104 +python_test() {
105 + # Force usage of built module
106 + rm -rf "${S}"/libqtile || die
107 +
108 + epytest || die "Tests failed with ${EPYTHON}"
109 +}
110 +
111 +python_install_all() {
112 + local DOCS=( CHANGELOG README.rst )
113 + distutils-r1_python_install_all
114 +
115 + insinto /usr/share/xsessions
116 + doins resources/qtile.desktop
117 +
118 + insinto /usr/share/wayland-sessions
119 + doins "${FILESDIR}"/qtile.desktop
120 +
121 + exeinto /etc/X11/Sessions
122 + newexe "${FILESDIR}"/${PN}-session ${PN}
123 +}