# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit eutils autotools DESCRIPTION="A Common Input Device Library For Wayland" HOMEPAGE="http://www.freedesktop.org/wiki/Software/libinput/" SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz" LICENSE="" KEYWORDS="~amd64" IUSE="" SLOT="0" DEPEND=">=dev-libs/libevdev-0.4 >=sys-libs/mtdev-1.1.0 virtual/libudev" RDEPEND="${DEPEND}" src_prepare() { eautoreconf || die epatch_user } src_configure() { if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then econf fi } src_compile() { local OPTS=() OPTS+=("CXXFLAGS=${CXXFLAGS}") OPTS+=("LDFLAGS=${LDFLAGS}") emake "${OPTS[@]}" || die "emake libinput failed"; }