# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 DESCRIPTION="A replacement for devilspie (a window matching utility), using LUA for scripting" HOMEPAGE="http://devilspie2.gusnan.se" SRC_URI="http://devilspie2.gusnan.se/download/${PN}_${PV}-src.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="virtual/pkgconfig" # TODO: Add USE-flag for toggling compilation against gtk2 RDEPEND="${DEPEND} >=dev-libs/glib-2.32.4 >=dev-lang/lua-5.1.5 >=x11-libs/libwnck-3.4.4:3 >=x11-libs/gtk+-3.4.4:3 " src_prepare() { sed -i -e 's/lua5.1/lua/' Makefile || die "Failed to patch Makefile" } src_compile() { emake PREFIX="/usr" || die } src_install() { emake PREFIX="/usr" DESTDIR="${D}" install || die dodoc AUTHORS ChangeLog COPYING README README.translators TODO VERSION doman devilspie2.1 }