summary refs log tree commit diff
path: root/x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild
blob: 2a83a92de0d8a5fa584ebdb2982503cf3032cd66 (plain) (blame)
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
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit git-r3

DESCRIPTION="Useful bits and pieces for wmutils"
HOMEPAGE="https://github.com/wmutils/contrib"
EGIT_REPO_URI="https://github.com/wmutils/contrib.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="+deletelock +focus_watcher +killwa +switch_grid"

DEPEND="
	x11-wm/wmutils
	killwa? (
		x11-libs/libxcb
		x11-libs/xcb-util-wm
	)
"
RDEPEND="${DEPEND}
	deletelock? ( x11-apps/xprop )
	focus_watcher? ( x11-wm/wmutils-opt )
	switch_grid? ( x11-wm/wmutils-opt )
"
BDEPEND=""

DOCS=( README.md )

src_prepare() {
	default
	if use killwa; then
		local S="${S}/killwa"
		sed -e 's/-Os//g' -i "${S}/config.mk" || die
	fi
}

src_compile() {
	if use killwa; then
		local S="${S}/killwa"
		emake -C "${S}"
	fi
}

src_install() {
	dobin closest.sh
	dobin focus.sh
	dobin fullscreen.sh
	dobin groups.sh
	dobin rainbow.sh
	dobin snap.sh
	dobin tile.sh
	dobin underneath.sh
	dobin wmenu.sh
	dobin workspace.sh
	use focus_watcher && dobin focus_watcher.sh
	use switch_grid && dobin switch_grid.sh
	use deletelock && dobin deletelock.sh
	if use killwa; then
		local S="${S}/killwa"
		emake -C "${S}" DESTDIR="${D}" install
	fi
}

Consider giving Nix/NixOS a try! <3