# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils toolchain-funcs DESCRIPTION="Xorg Driver for Multitouch Trackpads" HOMEPAGE="https://github.com/BlueDragonX/xf86-input-mtrack" SRC_URI="http://github.com/BlueDragonX/xf86-input-mtrack/tarball/v${PV/_/-} -> ${P}.tar.gz" IUSE="debug" S="${WORKDIR}/BlueDragonX-xf86-input-mtrack-21f273e" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND=">=x11-base/xorg-server-1.8.0 >=x11-libs/mtdev-1.0" DEPEND="${RDEPEND} x11-proto/inputproto" pkg_setup() { use debug && append-cflags "-DDEBUG_GESTURES" } src_prepare() { sed -i \ -e "/^OPTS =/s:-O3 ::" \ -e "s:usr/lib/:usr/$(get_libdir)/:g" \ -e "/gcc/s:-shared:-shared $\(LDFLAGS\):" \ -e "s:gcc:$(tc-getCC):" \ Makefile || die } src_install() { emake DESTDIR="${D}" install } pkg_postinst() { elog 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 }