You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-accessibility/gnome-mousetrap/gnome-mousetrap-0.3.ebuild

50 lines
1.3 KiB

# 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.5 2011/08/19 11:35:04 nirbheek 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:1
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
}