summaryrefslogtreecommitdiff
blob: 0bcd843ced7a89aaec0a49d39cb4da215d272431 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/gnome-mag/gnome-mag-0.16.1.ebuild,v 1.8 2011/03/06 22:55:26 nirbheek Exp $

EAPI="2"

inherit eutils gnome2 virtualx

DESCRIPTION="Gnome magnification service definition"
HOMEPAGE="http://www.gnome.org/"

LICENSE="LGPL-2"
SLOT="1"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""

RDEPEND=">=dev-libs/glib-2.11.1:2
	>=x11-libs/gtk+-2.6:2"

# FIXME: need libcolorblind (debian package)
# python deps are for applets
#	applet? (
#		>=dev-python/pygtk-2.6
#		dev-python/pygobject
#
#		>=dev-python/libbonobo-python-2.10
#		>=dev-python/gconf-python-2.10
#		>=dev-python/libgnome-python-2.10
#		>=dev-python/gnome-applets-python-2.10 )

RDEPEND="${RDEPEND}
	>=gnome-base/libbonobo-1.107
	>=gnome-extra/at-spi-1.5.2
	>=gnome-base/orbit-2.3.100

	dev-libs/dbus-glib

	x11-libs/libX11
	x11-libs/libXtst
	x11-libs/libXdamage
	x11-libs/libXfixes
	x11-libs/libXrender
	x11-libs/libXcomposite"

DEPEND="${RDEPEND}
	>=dev-util/pkgconfig-0.9
	>=dev-util/intltool-0.35

	x11-proto/xextproto
	x11-proto/xproto"

DOCS="AUTHORS ChangeLog NEWS README"

#pkg_setup() {
#	G2CONF="${G2CONF} $(use_enable applet colorblind-applet)"
#}

src_prepare() {
	gnome2_src_prepare

	# Fix some ugly warnings, originally per upstream bug #578798
	epatch "${FILESDIR}/${PN}-0.15.9-magnifier-fix-warnings.patch"

	# Workaround intltool tests failure
	echo "colorblind/GNOME_Magnifier_ColorblindApplet.server.in.in
colorblind/data/Colorblind_Applet.xml
colorblind/data/colorblind-applet.schemas.in
colorblind/data/colorblind-prefs.ui
colorblind/ui/About.py
colorblind/ui/ColorblindPreferencesUI.py
colorblind/ui/WindowUI.py" >> "${S}"/po/POTFILES.skip
}

src_test() {
	Xemake check || die "emake check failed"
}