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.
calculate-overlay/x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.2.2-...

56 lines
1.5 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.2.2.ebuild,v 1.3 2010/04/10 09:46:50 scarabeus Exp $
EAPI="2"
inherit linux-info x-modular
DESCRIPTION="Driver for Synaptics touchpads"
HOMEPAGE="http://cgit.freedesktop.org/xorg/driver/xf86-input-synaptics/"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="hal"
RDEPEND="
>=x11-base/xorg-server-1.6[-hal]
>=x11-libs/libXi-1.2
x11-libs/libXtst
hal? ( sys-apps/hal )
sys-fs/udev[extras]"
DEPEND="${RDEPEND}
x11-proto/inputproto
>=sys-apps/sed-4"
src_install() {
DOCS="INSTALL TODO README"
x-modular_src_install
if use hal ; then
insinto /usr/share/hal/fdi/policy/10osvendor
doins "${S}"/fdi/11-x11-synaptics.fdi
fi
}
pkg_postinst() {
x-modular_pkg_postinst
# Just a friendly warning
if ! linux_config_exists \
|| ! linux_chkconfig_present INPUT_EVDEV; then
echo
ewarn "This driver requires event interface support in your kernel"
ewarn " Device Drivers --->"
ewarn " Input device support --->"
ewarn " <*> Event interface"
echo
fi
if use hal ; then
elog "If you want to modify Synaptics settings, please create an fdi file in:"
elog "/etc/hal/fdi/policy/"
echo
ewarn "The current default are set by :"
ewarn "/usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi"
ewarn "You can use this file for inspiration, but DO NOT EDIT IT directly."
fi
}