blob: 31b9838afc840dbaffaa0dc104390041d669c23b (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 savedconfig toolchain-funcs
DESCRIPTION="X Obstinate Asymmetric Tiler"
HOMEPAGE="https://github.com/seanpringle/xoat"
EGIT_REPO_URI="https://github.com/seanpringle/xoat"
LICENSE="MIT"
SLOT="0"
DEPEND="
x11-libs/libX11
x11-libs/libXft
x11-libs/libXinerama
"
RDEPEND="
${DEPEND}
!savedconfig? ( x11-misc/dmenu )
"
BDEPEND="virtual/pkgconfig"
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 status xinitrc xoat.md xoatrc
doman xoat.1
save_config config.h
}
|