summaryrefslogtreecommitdiff
blob: 43e6ac00185d64ecfa55631e0219298ca64fbcbd (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/gnome-mousetrap/gnome-mousetrap-0.3.ebuild,v 1.4 2011/02/24 20:52:56 tomka Exp $

EAPI="2"
GCONF_DEBUG="no"

inherit eutils gnome2

MY_PV=${PV}+svn17
MY_P=${PN}_${MY_PV}
PATCHLEVEL=3

DESCRIPTION="Standalone application that allows users with physical impairments to move a mouse cursor"
HOMEPAGE="http://live.gnome.org/MouseTrap"
SRC_URI="mirror://debian/pool/main/g/${PN}/${MY_P}.orig.tar.gz
	mirror://debian/pool/main/g/${PN}/${MY_P}-${PATCHLEVEL}.diff.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc"

RDEPEND="gnome-extra/at-spi
	media-libs/opencv[python]
	dev-python/libgnome-python
	dev-python/python-xlib"
DEPEND="${RDEPEND}
	>=dev-util/intltool-0.35"

S=${WORKDIR}/${PN}-${MY_PV}

pkg_setup() {
	G2CONF="${G2CONF}
		--disable-dependency-tracking
		$(use_enable doc pydoc)"
}

src_prepare() {
	gnome2_src_prepare
	epatch "${WORKDIR}/${MY_P}-${PATCHLEVEL}.diff"

	# Use a specific version of python is a bad thing
	sed 's:/usr/bin/python2.5:/usr/bin/python:g' \
		-i src/mouseTrap/mousetrap.in || die "sed failed"

	# Fix intltool tests
	echo "src/mouseTrap/scripts/profiles/dragProfile.py" >> po/POTFILES.skip
}