blob: 878dd0b074828c1a721b4f208dbf012ebdd0f0b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 2026 SrcUX contributors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..14} )
inherit meson python-single-r1
DESCRIPTION="Unified Wayfire inspection and control with wf-info and wf-ctrl compatibility"
HOMEPAGE="https://www.hedronfire.com/"
SRC_URI="https://www.hedronfire.com/distfiles/wfctl-0.2.0-r1.tar.gz"
S="${WORKDIR}/wfctl-0.2.0-r1"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
>=gui-wm/wayfire-0.11.0-r68
${PYTHON_DEPS}
!gui-apps/wf-info
!gui-apps/wf-ctrl
"
BDEPEND="${PYTHON_DEPS}"
src_install() {
meson_src_install
python_fix_shebang "${ED}/usr/bin/wfctl"
# The build installs its docs unversioned; keep them in the versioned dir.
if [[ -d ${ED}/usr/share/doc/${PN} ]]; then
mkdir -p "${ED}/usr/share/doc/${PF}" || die
mv "${ED}/usr/share/doc/${PN}"/* "${ED}/usr/share/doc/${PF}/" || die
rmdir "${ED}/usr/share/doc/${PN}" || die
fi
}
pkg_postinst() {
einfo "wfctl owns the wf-info and wf-ctrl compatibility commands."
einfo "Use ipc, ipc-rules, stipc, wm-actions, vswitch and grid plugins."
einfo "Remove wfctl, wf-info and wf-ctrl from the next session plugin list."
}
|