You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
7 years ago
|
inherit toolchain-funcs
|
||
13 years ago
|
|
||
10 years ago
|
DESCRIPTION="small and simple window manager of novel design"
|
||
13 years ago
|
HOMEPAGE="http://www.nickgravgaard.com/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-proto/xextproto
|
||
13 years ago
|
virtual/pkgconfig"
|
||
13 years ago
|
|
||
7 years ago
|
PATCHES=( "${FILESDIR}/${PN}-1.34-fixed-font.patch"
|
||
|
"${FILESDIR}/${P}-gentoo.diff" )
|
||
|
|
||
13 years ago
|
pkg_setup() {
|
||
|
if use truetype ; then
|
||
|
export DEFINES=-DXFT
|
||
|
export EXTRA_INC=$(pkg-config --cflags xft)
|
||
|
export EXTRA_LIBS=$(pkg-config --libs xft)
|
||
|
fi
|
||
|
tc-export CC
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
7 years ago
|
emake DESTDIR="${D}" install
|
||
|
dodoc CHANGELOG README TODO
|
||
13 years ago
|
|
||
|
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 "/etc/X11/${PN}/menurc to /etc/X11/${PN}/${PN}.menurc"
|
||
|
}
|