--- pygobject-3.4.2-r1.ebuild.orig +++ pygobject-3.4.2-r1.ebuild @@ -57,6 +57,8 @@ # Do not build tests if unneeded, bug #226345 epatch "${FILESDIR}/${PN}-3.4.1.1-make_check.patch" + + echo "#!/bin/sh" > py-compile || die eautoreconf gnome2_src_prepare @@ -88,6 +90,7 @@ src_install() { python_foreach_impl run_in_build_dir gnome2_src_install + python_foreach_impl python_optimize if use examples; then insinto /usr/share/doc/${PF}