--- a/pymacs-0.25.ebuild 2013-02-17 14:54:49.000000000 +0100 +++ b/pymacs-0.25.ebuild 2013-02-21 15:03:34.528992153 +0100 @@ -22,9 +22,11 @@ SITEFILE="50${PN}-gentoo.el" -python_configure_all() { - # pre-process the files but don't run distutils - emake PYSETUP=: +src_prepare() { + preparation() { + emake PYSETUP=: PYTHON=${EPYTHON} + } + python_foreach_impl preparation } src_configure() {