blob: 70e04ab11895bf909c05d51dc90974b702be6d22 (
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
72
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/kahakai/kahakai-0.6.2_p20040306.ebuild,v 1.9 2006/09/11 11:22:57 nixphoeni Exp $
inherit eutils
IUSE="truetype xinerama ruby"
DESCRIPTION="A language agnostic scriptable window manager based on Waimea."
HOMEPAGE="http://kahakai.sf.net/"
#SRC_URI="mirror://sourceforge/kahakai/${P}.tar.bz2"
SRC_URI="mirror://gentoo/${P/_p/-}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="-alpha ppc ~sparc x86"
RDEPEND="( x11-libs/libX11
x11-libs/libXrandr
x11-libs/libXrender
x11-proto/xextproto
xinerama? ( x11-libs/libXinerama )
)
truetype? ( || ( x11-libs/libXft virtual/xft x11-base/xorg-x11 ) )
ruby? ( || ( >=dev-lang/ruby-1.8 dev-lang/ruby-cvs ) )
=dev-lang/swig-1.3.21
>=media-libs/imlib2-1.1.0
dev-util/pkgconfig
media-fonts/artwiz-fonts
dev-libs/boost"
DEPEND="${RDEPEND}
>=sys-devel/autoconf-2.57-r1
>=sys-devel/automake-1.7.2
sys-devel/libtool"
S="${WORKDIR}/${PN}"
pkg_setup() {
if use ruby && ! built_with_use dev-lang/swig ruby; then
die "dev-lang/swig must be built with ruby support"
fi
}
src_unpack() {
unpack ${A}
cd ${S}/src
epatch ${FILESDIR}/${P}-rubyscript-gentoo.diff
epatch ${FILESDIR}/${P}-compilation_fix.patch
}
src_compile() {
libtoolize --copy --force || die
./autogen.sh || die
econf \
$(use_enable ruby) \
$(use_enable xinerama) \
$(use_enable truetype xft) || die
emake || die
# fix the error about redefining "None"
sed -i -e 's:\bNone =.*::' ${S}/src/kahakai.py
}
src_install() {
einstall || die
cd doc
dodoc AUTHORS NEWS COPYING README ChangeLog TODO
exeinto /etc/X11/Sessions
echo "/usr/bin/kahakai" > ${T}/kahakai
doexe ${T}/kahakai
}
|