aboutsummaryrefslogtreecommitdiff
blob: dd69886f2e5d36fdba2b1bd7e1e2371805527d8d (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"

EGIT_REPO_URI="git://code.stapelberg.de/i3"
: ${EGIT_BRANCH:=next}

inherit multilib git-2

DESCRIPTION="An improved dynamic tiling window manager"
HOMEPAGE="http://i3wm.org/"
SRC_URI=""

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="debug doc +man"

RDEPEND="
	dev-libs/libev
	dev-libs/yajl
	x11-libs/libX11
	>=x11-libs/libxcb-1.1.93
	x11-libs/startup-notification
	>=x11-libs/xcb-util-0.3.3
	|| (
		<x11-libs/xcb-util-0.3.8
		(
			>=x11-libs/xcb-util-0.3.8
			>=x11-libs/xcb-util-keysyms-0.3.8
			>=x11-libs/xcb-util-wm-0.3.8
		)
	)
	"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	sys-devel/bison
	sys-devel/flex
	>=x11-proto/xcb-proto-1.3
	doc? ( >=app-text/asciidoc-8.3 )
	man? (
		>=app-text/asciidoc-8.3
		app-text/xmlto
	)
	"

src_prepare() {
	use debug || { sed -i -e "s:DEBUG=1:DEBUG=0:" common.mk || die "sed die - debug" ; }
}

src_compile() {
	emake i3

	local subs=( ${PN}-{input,msg} )

	use doc && subs+=( docs )
	use man && subs+=( man i3bar/doc )

	for sub in ${subs[@]}; do
		emake -C ${sub}
	done
}

src_install() {
	emake DESTDIR="${D}" install
	use man && doman man/*.1 i3bar/doc/*.1
	dodoc GOALS
	use doc && dohtml -r docs/*.html
}