diff -ur ghh.orig/ghh-9999.ebuild ghh/ghh-9999.ebuild --- ghh.orig/ghh-9999.ebuild 2011-09-21 07:01:12.000000000 +0800 +++ ghh/ghh-9999.ebuild 2011-11-14 07:54:53.144928479 +0800 @@ -3,7 +3,8 @@ # $Header: /var/cvsroot/gentoo-x86/dev-util/ghh/ghh-9999.ebuild,v 1.6 2011/09/20 22:37:13 mgorny Exp $ EAPI=3 -inherit autotools git-2 +PYTHON_DEPEND="2:2.6" +inherit autotools git-2 python DESCRIPTION="a tool to track the history and make backups of your home directory" HOMEPAGE="http://jean-francois.richard.name/ghh/" @@ -15,6 +16,7 @@ SLOT="0" KEYWORDS="" IUSE="" +DOCS=( AUTHORS ChangeLog MAINTAINERS NEWS README TODO ) # probably needs more/less crap listed here ... RDEPEND="x11-libs/gtk+:2 @@ -22,16 +24,22 @@ gnome-base/libgnome app-text/gnome-doc-utils >=app-text/asciidoc-8 - dev-vcs/git - dev-lang/python" + dev-python/pygtk:2 + dev-vcs/git" DEPEND="${RDEPEND} dev-util/pkgconfig" +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + src_prepare() { NOCONFIGURE=yes git_src_prepare } src_install() { - emake install DESTDIR="${D}" || die - dodoc AUTHORS ChangeLog MAINTAINERS NEWS README TODO + emake install DESTDIR="${D}" || die + dodoc ${DOCS[@]} + python_convert_shebangs -r 2 "${ED}" }