aboutsummaryrefslogtreecommitdiff
blob: 5d43c60ffbd80a9633353f107228847407bbeb9c (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
73
74
75
76
77
78
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit enlightenment

DESCRIPTION="Enlightenment E17 window manager"
HOMEPAGE="http://www.enlightenment.org/"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~arm ~amd64 ~x86"
IUSE="X alsa dbus nls files pam"

inherit autotools subversion

RDEPEND="=dev-libs/eet-${PVR}
	=dev-libs/eina-${PVR}
	=dev-libs/efreet-${PVR}
	=x11-libs/ecore-${PVR}
	=x11-libs/evas-${PVR}[eet]
	=media-libs/edje-${PVR}
	dbus? ( =x11-libs/e_dbus-${PVR} )
	X?    ( x11-libs/libX11 )
	alsa? ( media-libs/alsa-lib )
	pam? ( sys-libs/pam )"

DEPEND=">=dev-util/pkgconfig-0.9.0
	media-libs/edje
	dev-util/cvs"

S="${WORKDIR}/${PN}"

pkg_setup() {
	if use dbus && ! built_with_use x11-libs/e_dbus hal; then
		die "Please rebuild x11-libs/e_dbus with the hal use flag enabled!"
	fi
}

src_unpack() {
	subversion_src_unpack

	cd "${S}"

	touch README
	touch ABOUT-NLS

	autopoint -f || die "autopoint failed"
	eautoreconf || die "eautoreconf failed"
}

src_compile() {
	local myconf

	myconf="${myconf}             \
		$(use_enable alsa)    \
		$(use_enable files)   \
		$(use_enable nls)     \
		$(use_enable pam)     \
		$(use_with   X     x) \
		--x-includes=${SYSROOT}/usr/X11R6/include \
		--x-libraries=${SYSROOT}/usr/X11R6/lib\
		--with-edje-cc=/usr/bin/edje_cc\
		--with-eet-eet=/usr/bin/eet"

	econf $myconf || die "econf failed"

	emake || die "emake failed"
}

src_install () {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS ChangeLog COPYING NEWS README

        keepdir /etc/xdg/menus
        insinto /etc/xdg/menus
        newins "${FILESDIR}/applications.menu" applications.menu

}