# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=7 VALA_MIN_API_VERSION=0.20 VALA_USE_DEPEND=vapigen inherit vala autotools flag-o-matic DESCRIPTION="BAMF Application Matching Framework" HOMEPAGE="https://launchpad.net/bamf" SRC_URI="http://launchpad.net/${PN}/0.5/${PV}/+download/${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86 ~x86-interix ~amd64-linux ~arm-linux ~x86-linux" IUSE="+introspection doc static-libs" RDEPEND=" dev-libs/dbus-glib dev-util/gdbus-codegen dev-libs/glib:2 gnome-base/libgtop:2 x11-libs/gtk+:3 x11-libs/libX11 >=x11-libs/libwnck-3.4.7:3" DEPEND="${RDEPEND} $(vala_depend) x11-libs/startup-notification doc? ( dev-util/gtk-doc ) introspection? ( dev-libs/gobject-introspection ) virtual/pkgconfig" AUTOTOOLS_AUTORECONF=yes DOCS=(AUTHORS COPYING COPYING.LGPL ChangeLog NEWS README TODO) src_prepare() { # sed -i 's/-Werror//' configure # sed -i 's/tests//' Makefile.am eapply "${FILESDIR}/0.5.4-add-compile-warning-flags.patch" eapply "${FILESDIR}/0.5.4-no-python.patch" eapply_user eautoreconf vala_src_prepare } src_configure() { append-flags "-Wno-deprecated-declarations" local econfargs=( --disable-gtktest $(use_enable doc gtk-doc) $(use_enable introspection) VALA_API_GEN="${VAPIGEN}" ) econf "${econfargs[@]}" "$@" }