blob: 9f90f7cd767df83543e1374c5ff1ecacee4fdb09 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/bspwm/bspwm-0.8.8.ebuild,v 1.1 2014/01/24 08:20:56 radhermit Exp $
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Tiling window manager based on binary space partitioning"
HOMEPAGE="https://github.com/baskerville/bspwm/"
SRC_URI="https://github.com/baskerville/bspwm/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
DEPEND="
x11-libs/libxcb
x11-libs/xcb-util-wm
"
RDEPEND="${DEPEND}
x11-misc/sxhkd
"
src_prepare() {
epatch "${FILESDIR}"/${P}-flags.patch
}
src_compile() {
emake PREFIX=/usr CC="$(tc-getCC)"
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
dodoc doc/{CONTRIBUTING,MISC,TODO}.md
exeinto /etc/X11/Sessions
newexe "${FILESDIR}"/${PN}-session ${PN}
insinto /usr/share/xsessions
doins contrib/lightdm/bspwm.desktop
insinto /etc/xdg/sxhkd
doins examples/sxhkdrc
if use examples ; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
}
|