blob: 414181e9d5e1721ccddba673986f2cdc8544b74f (
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 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Banish the mouse cursor when typing, show it again when the mouse moves"
HOMEPAGE="https://github.com/jcs/xbanish"
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz"
KEYWORDS="~amd64"
# NOTE: Upstream moved to ISC license on master.
# So this needs to be changed on the next version (1.7+).
LICENSE="BSD"
SLOT="0"
IUSE=""
# NOTE: x11-libs/libXext might become a dep next version (1.7+)
DEPEND="
x11-libs/libX11
x11-libs/libXfixes
x11-libs/libXi
"
RDEPEND="${DEPEND}"
src_configure() {
# Makefile doesn't respect user's LDFLAGS
sed -i \
-e 's|\$(LIBS) |\$(LIBS) $(LDFLAGS) |g' \
Makefile || die "sed failed"
}
src_compile() {
emake CC=$(tc-getCC)
}
src_install() {
dobin xbanish
doman xbanish.1
}
|