blob: 3cf77904ed0641eb07dee2f2f8145e7e259246fd (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# r21 (::personal): QoL find-pointer module on the r20 sources.
EAPI=8
inherit meson
DESCRIPTION="Independent custom Wayfire plugins for window actions, Show Desktop, workspace backgrounds, the screensaver and finding the pointer"
HOMEPAGE="https://www.hedronfire.com/"
SRC_URI="https://www.hedronfire.com/distfiles/wayfire-plugins-custom-0.1.0-r20.tar.xz"
S="${WORKDIR}/wayfire-plugins-custom-0.1.0-r20"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+window-actions +panel-desktop +workspace-backgrounds +screensaver +find-pointer test"
REQUIRED_USE="|| ( window-actions panel-desktop workspace-backgrounds screensaver find-pointer )"
RESTRICT="mirror !test? ( test )"
RDEPEND="
>=gui-wm/wayfire-0.11.0-r19:0=
gui-libs/wf-config:=
gui-libs/wlroots:0.20=
workspace-backgrounds? ( >=gui-wm/wayfire-0.11.0-r29:0= x11-libs/cairo x11-libs/gdk-pixbuf:2 )
screensaver? ( >=gui-wm/wayfire-0.11.0-r73:0= )
!<gui-apps/wayfire-panel-0.1.0-r7
!<gui-apps/wayfire-dock-0.1.1-r5
!<gui-apps/wayfire-settings-0.1.4-r3
!<gui-apps/wayfire-session-0.1.11-r3
"
DEPEND="${RDEPEND}
workspace-backgrounds? ( dev-cpp/nlohmann_json )
window-actions? ( dev-cpp/nlohmann_json )
"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${PN}-0.1.0-qol-1.patch"
)
src_configure() {
local emesonargs=(
$(meson_use window-actions)
$(meson_use panel-desktop)
$(meson_use workspace-backgrounds)
$(meson_use screensaver)
$(meson_use find-pointer)
-Dworkspace-backgrounds-test-api=false
$(meson_use test tests)
)
meson_src_configure
}
src_install() {
meson_src_install
# meson installs package docs under ${PN}; Gentoo keeps them under ${PF}.
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
dodoc README.md ORIGINS.json
local plugin
for plugin in window-actions panel-desktop workspace-backgrounds screensaver find-pointer; do
if use "${plugin}"; then
docinto "plugins/${plugin}"
dodoc "plugins/${plugin}/README.md" "plugins/${plugin}/LICENSE"
fi
done
}
pkg_postinst() {
elog "Workspace backgrounds: start the matching Wayfire, enable workspace-backgrounds and ipc, then open WCM Displays → Backgrounds."
elog "Load plugins by bare name; versioned library paths are no longer installed."
elog "Select modules with USE flags; enable them separately in Wayfire. Drag snapping is configured in Move."
if use screensaver; then
elog "Screensaver: add screensaver to [core] plugins (/usr/libexec/live-wallpaper/migrate"
elog "does this when coming from ambient-background). Settings: WCM -> Screensaver."
fi
if use find-pointer; then
elog "Find the pointer: add find-pointer to [core] plugins ('pyr defaults --apply' does it),"
elog "then press Ctrl twice."
fi
if use window-actions; then
elog "The window-state plugin is now window-actions (libwindow-actions.so). In wayfire.ini,"
elog "replace window-state with window-actions in [core] plugins and delete any"
elog "[window-state] section, then log out and back in so the panel, dock and session"
elog "daemon reconnect. Activity placements now live in the session daemon's"
elog "activities.json; ~/.local/state/wayfire/layouts.db* is no longer used and can be deleted."
fi
}
|