# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils git DESCRIPTION="Xorg Driver for Multitouch Trackpads" HOMEPAGE="https://github.com/BlueDragonX/xf86-input-mtrack" SRC_URI="" EGIT_REPO_URI="git://github.com/BlueDragonX/xf86-input-mtrack.git" EGIT_COMMIT="v${PV}" IUSE="debug" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" RDEPEND=" >=x11-base/xorg-server-1.8.0 >=sys-libs/mtdev-1.0" DEPEND="${RDEPEND} x11-proto/inputproto" src_compile() { CFLAGS="" if use debug; then CFLAGS="${CFLAGS} -DDEBUG_GESTURES" fi emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" } pkg_postinst() { echo elog "To enable multitouch support add the following lines" elog "to your xorg.conf:" elog "" elog "Section \"InputClass\"" elog " MatchIsTouchpad \"true\"" elog " Identifier \"Touchpads\"" elog " Driver \"mtrack\"" elog "EndSection" elog "" }