blob: 36207dde51f80eb053fcc8b491753112b2b7042e (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit git multilib
DESCRIPTION="An improved dynamic tiling window manager"
HOMEPAGE="http://i3.zekjur.net/"
SRC_URI=""
EGIT_REPO_URI="git://code.stapelberg.de/i3"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE="doc"
RDEPEND="x11-libs/libxcb
x11-libs/xcb-util
x11-libs/libX11
dev-libs/libev"
DEPEND="${RDEPEND}
x11-proto/xcb-proto
>=app-text/asciidoc-8.3
app-text/xmlto
app-text/docbook-xml-dtd"
src_prepare() {
sed -i \
-e "s:/usr/local/include:/usr/include:" \
-e "s:/usr/local/lib:/usr/$(get_libdir):" \
Makefile || die "sed die"
}
src_compile() {
emake || die "emake compile die"
emake -C man || die "emake man die"
use doc && { emake -C docs || die "emake docs die" ; }
}
src_install() {
emake DESTDIR="${D}" install || die "emake install die"
dodoc GOALS TODO CMDMODE || die "dodoc die"
doman man/i3.1 || die "doman die"
use doc && { dohtml -r website/* docs/*.html || die "dohtml die" ; }
}
pkg_postinst() {
use doc && elog "Documentation in html is in /etc/share/doc/${P}"
}
|