summaryrefslogtreecommitdiff
path: root/gui-apps/wfctl/wfctl-0.2.2.ebuild
blob: ab753321d75c2930fd4f83d78b4b4aebb17e4731 (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
43
44
# 0.2.2: tag v0.2.2 of https://git.hedronfire.com/wfctl (crucible distfiles); no patches. `wfctl workspace N`
# switches to the panel's workspace number N (owner request 2026-10-30).
# Copyright 2026 SrcUX contributors
# Distributed under the terms of the GNU General Public License v2

# 0.2.1: first release cut from Git, tag v0.2.1 of https://git.hedronfire.com/wfctl (crucible distfiles); no patches.
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/${P}.tar.gz"
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."
}