9 |
9 |
inherit distutils-r1 virtualx
|
10 |
10 |
|
11 |
11 |
DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
|
12 |
|
HOMEPAGE="http://qtile.org/"
|
|
12 |
HOMEPAGE="http://www.qtile.org/"
|
13 |
13 |
|
14 |
14 |
if [[ ${PV} == 9999 ]]; then
|
15 |
15 |
inherit git-r3
|
16 |
16 |
EGIT_REPO_URI="https://github.com/qtile/qtile.git"
|
17 |
17 |
else
|
18 |
18 |
inherit pypi
|
19 |
|
KEYWORDS="amd64 ~riscv ~x86"
|
|
19 |
KEYWORDS="~amd64 ~riscv ~x86"
|
20 |
20 |
fi
|
21 |
21 |
|
22 |
22 |
LICENSE="MIT"
|
23 |
23 |
SLOT="0"
|
24 |
24 |
IUSE="pulseaudio wayland"
|
25 |
25 |
|
26 |
|
# See bug #895722 and https://github.com/qtile/qtile/pull/3985 regarding
|
27 |
|
# pywlroots-0.15 dep.
|
28 |
|
# xcffib v1.4.0 breaks its ffi export (https://github.com/qtile/qtile/pull/4289)
|
29 |
26 |
RDEPEND="
|
30 |
|
<dev-python/cairocffi-1.6.0[${PYTHON_USEDEP}]
|
|
27 |
>=dev-python/cairocffi-1.6.0[${PYTHON_USEDEP}]
|
31 |
28 |
>=dev-python/cffi-1.1.0[${PYTHON_USEDEP}]
|
32 |
29 |
dev-python/dbus-next[${PYTHON_USEDEP}]
|
33 |
30 |
dev-python/pygobject[${PYTHON_USEDEP}]
|
34 |
31 |
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
|
35 |
|
<dev-python/xcffib-1.4.0[${PYTHON_USEDEP}]
|
|
32 |
>=dev-python/xcffib-1.4.0[${PYTHON_USEDEP}]
|
36 |
33 |
x11-libs/cairo[X,xcb(+)]
|
37 |
34 |
x11-libs/libnotify[introspection]
|
38 |
35 |
x11-libs/pango
|
39 |
|
pulseaudio? (
|
40 |
|
media-sound/pulseaudio
|
41 |
|
)
|
42 |
|
wayland? (
|
43 |
|
=dev-python/pywlroots-0.15*[${PYTHON_USEDEP}]
|
44 |
|
)
|
|
36 |
pulseaudio? ( media-libs/libpulse )
|
|
37 |
wayland? ( dev-python/pywlroots[${PYTHON_USEDEP}] )
|
45 |
38 |
"
|
46 |
39 |
BDEPEND="
|
47 |
40 |
dev-python/setuptools-scm[${PYTHON_USEDEP}]
|
... | ... | |
67 |
60 |
python_prepare_all() {
|
68 |
61 |
# Avoid automagic dependency on libpulse
|
69 |
62 |
if ! use pulseaudio ; then
|
70 |
|
sed -i -e "s/call('libpulse', '--libs')/raise PkgConfigError/" setup.py || die
|
71 |
|
|
72 |
|
# TODO: use this sed for next release after 0.22.1, quoting changed
|
73 |
|
# sed -i -e 's/call("libpulse", "--libs")/throw PkgConfigError/' setup.py || die
|
|
63 |
sed -i -e 's/call("libpulse", "--libs")/raise PkgConfigError/' setup.py || die
|
74 |
64 |
fi
|
75 |
65 |
|
76 |
66 |
# Avoid automagic dependency on pywlroots
|