summaryrefslogtreecommitdiff
blob: 3b0d09fb2090aadb56ca0257fdea5784f5299629 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/ewl/ewl-9999.ebuild,v 1.12 2006/10/29 03:22:49 vapier Exp $

inherit enlightenment

DESCRIPTION="simple-to-use general purpose widget library"

IUSE="X fbcon opengl"

RDEPEND=">=media-libs/edje-9999
	>=dev-libs/evas-9999
	>=dev-libs/ecore-9999
	>=media-libs/emotion-9999
	>=dev-libs/efreet-9999"
DEPEND="${RDEPEND}
	doc? ( virtual/latex-base )"

pkg_setup() {
	if ! built_with_use dev-libs/evas png ; then
		eerror "Re-emerge evas with USE=png"
		die "Re-emerge evas with USE=png"
	fi

	local flag
	for flag in fbcon opengl X ; do
		if use ${flag} ; then
			if ! built_with_use dev-libs/ecore ${flag} ; then
				eerror "Re-emerge ecore with USE=${flag}"
				die "Re-emerge ecore with USE=${flag}"
			fi
		fi
	done

	enlightenment_pkg_setup
}

src_compile() {
	export MY_ECONF="
		--enable-buffer
		$(use_enable X software-x11)
		$(use_enable X software-16-x11)
		$(use_enable X xrender-x11)
		$(use_enable opengl opengl-x11)
		$(use_enable fbcon)
	"
	enlightenment_src_compile
}