diff -ur telepathy-inspector.orig/telepathy-inspector-0.5.3.ebuild telepathy-inspector/telepathy-inspector-0.5.3.ebuild --- telepathy-inspector.orig/telepathy-inspector-0.5.3.ebuild 2011-08-06 18:31:13.000000000 +0800 +++ telepathy-inspector/telepathy-inspector-0.5.3.ebuild 2011-11-13 20:17:36.864917024 +0800 @@ -2,9 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/telepathy-inspector/telepathy-inspector-0.5.3.ebuild,v 1.3 2011/08/06 10:11:56 zmedico Exp $ -EAPI=1 +EAPI="3" -inherit eutils flag-o-matic + +inherit python DESCRIPTION="The swiss-army knife of every Telepathy developer." HOMEPAGE="http://telepathy.freedesktop.org/wiki/TelepathyInspector" @@ -14,6 +16,8 @@ SLOT="0" KEYWORDS="~arm ~amd64 ~x86 ~x86-linux" IUSE="" +DOCS=( AUTHORS ChangeLog NEWS README ) RDEPEND="dev-libs/glib:2 x11-libs/gtk+:2 @@ -21,11 +24,15 @@ gnome-base/libglade dev-libs/dbus-glib" DEPEND="${RDEPEND} - dev-lang/python + =dev-lang/python-2* dev-libs/libxslt dev-util/pkgconfig" +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" + emake DESTDIR="${ED}" install || die "emake install failed" + dodoc ${DOCS[@]} || die "dodoc failed" }