blob: 3f0e23cc46be25616503f8b03532aed629105799 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/enlightenment/enlightenment-0.16.6.ebuild,v 1.15 2006/01/07 07:28:45 vapier Exp $
inherit eutils
DESCRIPTION="Enlightenment Window Manager"
HOMEPAGE="http://www.enlightenment.org/"
SRC_URI="mirror://sourceforge/enlightenment/${P/_/-}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha hppa ia64 amd64"
IUSE="esd nls"
DEPEND=">=media-libs/fnlib-0.5
esd? ( >=media-sound/esound-0.2.19 )
=media-libs/freetype-1*
>=gnome-base/libghttp-1.0.9-r1
>=media-libs/imlib-1.9.8"
RDEPEND="nls? ( sys-devel/gettext )"
S=${WORKDIR}/${PN}-${PV/_pre?/}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-kde-menu.patch
epatch ${FILESDIR}/${PV}-edox.patch
}
src_compile() {
# `use_enable gnome hints-gnome` \
# `use_enable kde hints-kde` \
econf \
`use_enable nls` \
`use_enable esd sound` \
--enable-upgrade \
--enable-hints-ewmh \
--enable-fsstd \
--enable-zoom \
|| die
#enlightenment's makefile uses the $USER env var (bad), which may not be
#set correctly if you did a "su" to get root before emerging. Normally,
#your $USER will still exist when you su (unless you enter a chroot,) but
#will cause perms to be wrong. This fixes this:
export USER=root
emake || die
}
src_install() {
export USER=root
emake -j1 install DESTDIR=${D} || die
mv ${D}/usr/bin/{,e}dox
exeinto /etc/X11/Sessions
doexe ${FILESDIR}/enlightenment
dodoc AUTHORS ChangeLog FAQ INSTALL NEWS README
# fix default xcursor support
cd ${D}/usr/share/enlightenment/themes
local deftheme=`readlink DEFAULT`
cp -rf ${deftheme} ${deftheme}-xcursors
rm DEFAULT
ln -s ${deftheme}-xcursors DEFAULT
rm -rf ${deftheme}-xcursors/cursors*
cp ${FILESDIR}/cursors.cfg ${deftheme}-xcursors/
}
|