Source

belak.gentoo / x11-misc / easystroke / easystroke-0.5.5.1.ebuild

Full commit
Kaleb Elwert c061cd4 
cynapsia dd8fc30 
































# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"

inherit eutils

DESCRIPTION="Easystroke is a gesture-recognition application for X11."
HOMEPAGE="http://easystroke.wiki.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="ISC"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

RDEPEND="dev-cpp/gtkmm:2.4
	x11-libs/libXrandr
	x11-apps/xinput
	x11-libs/libXtst
	dev-libs/boost
	dev-libs/dbus-glib"
DEPEND="${RDEPEND}
	dev-util/intltool"

src_compile() {
	sed -i "s/^LDFLAGS/#LDFLAGS/" Makefile || die "sed Makefile failed!"
	sed -i "s!^Icon=easystroke!Icon=/usr/share/icons/hicolor/scalable/apps/easystroke.svg!" easystroke.desktop.in || die "sed easystroke.desktop.in failed!"
	emake DESTDIR="${D}" PREFIX="/usr/" || die "emake failed!"
}

src_install() {
	emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed!"
}