blob: 97b5709e2170eed0a3e0c56e594bd4ad316da8dc (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic git-r3 savedconfig toolchain-funcs
DESCRIPTION="An obstinate, asymmetric, tiling, window manager for X"
HOMEPAGE="https://github.com/seanpringle/xoat"
EGIT_REPO_URI="https://github.com/seanpringle/xoat"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
DEPEND="
x11-libs/libX11
x11-libs/libXft
x11-libs/libXinerama
"
RDEPEND="
${DEPEND}
!savedconfig? ( x11-misc/dmenu )
"
src_prepare() {
default
restore_config config.h
}
src_configure() {
tc-export CC PKG_CONFIG
}
src_compile() {
XOAT_COMPILE=(
${CC} -o ${PN} ${PN}.c ${CFLAGS} -std=c99 ${LDFLAGS}
$(${PKG_CONFIG} --cflags --libs x11 xinerama xft)
)
echo ${XOAT_COMPILE[@]}
${XOAT_COMPILE[@]} || die
}
src_install() {
dobin xoat
dodoc xoat.md status
doman xoat.1
save_config config.h
}
|