summaryrefslogtreecommitdiff
blob: 8abb5b19cce6f20f0afe78ef0284cbca18496139 (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
# Copyright 1999-2010 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="tree"

inherit eutils git-2 toolchain-funcs

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

LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE="doc"

CDEPEND="dev-libs/libev
	dev-libs/yajl
	x11-libs/libxcb
	x11-libs/libX11
	x11-libs/xcb-util"
DEPEND="${CDEPEND}
	sys-devel/flex
	sys-devel/bison
	app-text/asciidoc
	app-text/xmlto
	app-text/docbook-xml-dtd
	x11-proto/xcb-proto"
RDEPEND="${CDEPEND}
	x11-apps/xmessage"

pkg_setup() {
	tc-export CC
}

src_prepare() {
	epatch "${FILESDIR}"/${P}-build.patch
	sed	-e "/SILENT/d" -e "/DEBUG=/d" \
		-e '/ifeq ($(DEBUG),1)/,/endif/d' \
		-i common.mk || die
	sed -e '/echo "\([[:upper:]]\)/d' \
		-i Makefile i3-{msg,nagbar,config-wizard}/Makefile || die
}

src_compile() {
	emake || die
	emake -C man || die
	use doc && { emake -C docs || die ; }
}

src_install() {
	emake DESTDIR="${D}" install || die
	dodoc GOALS TODO CMDMODE RELEASE-*
	doman man/*.1
	if use doc; then
		dohtml -r docs/*.html
	fi
}