# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" inherit autotools autotools-utils DESCRIPTION="BAMF Application Matching Framework" SRC_URI="http://launchpad.net/${PN}/0.2/0.2.204/+download/${P}.tar.gz" HOMEPAGE="https://launchpad.net/bamf" KEYWORDS="~amd64 ~x86" SLOT="0" LICENSE="LGPL-3" IUSE="doc gtk3" DEPEND=" >=dev-libs/gobject-introspection-0.6.7 !gtk3? ( x11-libs/libwnck:1 x11-libs/gtk+:2 ) gtk3? ( x11-libs/libwnck:3 x11-libs/gtk+:3 ) >=dev-lang/vala-0.11.7" RDEPEND=" doc? ( dev-util/gtk-doc ) dev-libs/atk dev-libs/dbus-glib gnome-base/libgtop media-libs/fontconfig media-libs/freetype sys-apps/dbus x11-libs/gdk-pixbuf x11-libs/pango gnome-base/libgtop !gtk3? ( x11-libs/libwnck:1 x11-libs/gtk+:2 ) gtk3? ( x11-libs/libwnck:3 x11-libs/gtk+:3 )" src_prepare() { sed -i -e 's/vapigen/'$(ls -1 /usr/bin/vapigen-* | tail -n1 | cut -d'/' -f4)'/' configure.in || die "Sed failed" eautoreconf } src_configure() { local myeconfargs=( $(use_with !gtk3 gtk 2) $(use_enable doc gtk-doc) ) autotools-utils_src_configure } src_install() { autotools-utils_src_install }