blob: a592bf5ff36fb4f4db821a9748642dd187a5596f (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Small and simple window manager of novel design"
HOMEPAGE="https://github.com/nick-gravgaard/windowlab"
SRC_URI="http://www.nickgravgaard.com/${PN}/${P}.tar"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~mips ppc x86"
IUSE="truetype"
RDEPEND="truetype? ( x11-libs/libXft )
x11-libs/libXext"
DEPEND="${RDEPEND}
x11-base/xorg-proto"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${PN}-1.34-fixed-font.patch"
"${FILESDIR}/${P}-gentoo.diff"
"${FILESDIR}/${PN}-1.40-libdir.patch"
)
src_configure() {
if use truetype ; then
export DEFINES=-DXFT
export EXTRA_INC=$($(tc-getPKG_CONFIG) --cflags xft)
export EXTRA_LIBS=$($(tc-getPKG_CONFIG) --libs xft)
fi
tc-export CC
}
src_install() {
default
exeinto /etc/X11/Sessions
cat <<- EOF > "${T}"/${PN}
#!/bin/sh
exec /usr/bin/${PN}
EOF
doexe "${T}"/${PN}
}
pkg_postinst() {
elog "${PN}'s menu config file has been changed from"
elog "${EROOT}/etc/X11/${PN}/menurc to ${EROOT}/etc/X11/${PN}/${PN}.menurc"
}
|