--- gnome-menus-2.30.0.ebuild.old 2010-06-03 15:29:12.000000000 +0000 +++ gnome-menus-2.30.0.ebuild 2010-06-03 22:06:33.000000000 +0000 @@ -3,6 +3,9 @@ # $Header: $ EAPI="2" + +PYTHON_DEPEND="python? 2:2.4" + inherit eutils gnome2 python DESCRIPTION="The GNOME menu system, implementing the F.D.O cross-desktop spec" @@ -13,14 +16,12 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="debug python" -RDEPEND=">=dev-libs/glib-2.18.0 - python? ( - >=virtual/python-2.4 - dev-python/pygtk )" +RDEPEND="dev-libs/glib:2 + python? ( dev-python/pygtk )" DEPEND="${RDEPEND} - sys-devel/gettext - >=dev-util/pkgconfig-0.9 - >=dev-util/intltool-0.40" + dev-util/intltool + dev-util/pkgconfig + sys-devel/gettext" DOCS="AUTHORS ChangeLog HACKING NEWS README" @@ -35,6 +36,8 @@ $(use_enable python) \ --disable-static \ --disable-introspection" + + use python && python_set_active_version 2 } src_unpack() { @@ -69,8 +72,6 @@ pkg_postinst() { gnome2_pkg_postinst if use python; then - python_version - python_need_rebuild python_mod_optimize $(python_get_sitedir)/GMenuSimpleEditor fi