Please byte-compile you .py files.
Probably you should also install into sitedir instead of /usr/share
That's just what gnome2_src_install is doing. Please submit patches.
(In reply to comment #2) > That's just what gnome2_src_install is doing. Please submit patches. it is calling emake DESTDIR=$D install. So you should fix the buildsystem if it should go to site-dir. This would also reduce the number of rebuilds when changing python versions. At least you should call python_mod_optimize on that dir.
I will add the byte-compilation. What about changing the location? What is your opinion about this?
I like to apply following patch. This fixes * Correct usage of python.eclass * removed extra doins calls because the icons are installed directly and the pixmaps aren't present anymore * byte-compile python stuff (EAPI=4 is needed for this, as EAPI < 3 are deprecated for this.) Is this fine with you? cvs diff: Diffing . cvs diff: Diffing files Index: virt-manager-0.9.0-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-emulation/virt-manager/virt-manager-0.9.0-r1.ebuild,v retrieving revision 1.2 diff -u -B -b -u -p -r1.2 virt-manager-0.9.0-r1.ebuild --- virt-manager-0.9.0-r1.ebuild 12 Aug 2011 15:42:53 -0000 1.2 +++ virt-manager-0.9.0-r1.ebuild 17 Jan 2012 08:26:10 -0000 @@ -4,7 +4,7 @@ BACKPORTS=1 -EAPI=2 +EAPI=4 if [[ ${PV} = *9999* ]]; then EGIT_REPO_URI="http://git.fedorahosted.org/git/virt-manager.git" @@ -52,9 +52,13 @@ DEPEND="${RDEPEND} app-text/rarian dev-util/intltool" -# The TUI (terminal UI) requires newt_syrup which is not packaged on -# Gentoo. bug #356711 -G2CONF="--without-tui" +pkg_setup() { + # The TUI (terminal UI) requires newt_syrup which is not packaged on + # Gentoo. bug #356711 + G2CONF="--without-tui" + python_set_active_version 2 + python_pkg_setup +} src_prepare() { sed -e "s/python/python2/" -i src/virt-manager.in || \ @@ -80,22 +84,12 @@ src_prepare() { gnome2_src_prepare } -src_install() { - gnome2_src_install - - insinto /usr/share/virt-manager/pixmaps/ - doins "${S}"/pixmaps/*.png - doins "${S}"/pixmaps/*.svg - - insinto /usr/share/virt-manager/pixmaps/hicolor/16x16/actions/ - doins "${S}"/pixmaps/hicolor/16x16/actions/*.png - - insinto /usr/share/virt-manager/pixmaps/hicolor/22x22/actions/ - doins "${S}"/pixmaps/hicolor/22x22/actions/*.png - - insinto /usr/share/virt-manager/pixmaps/hicolor/24x24/actions/ - doins "${S}"/pixmaps/hicolor/24x24/actions/*.png +pkg_postinst() { + python_mod_optimize /usr/share/${PN} + gnome2_pkg_postinst +} - insinto /usr/share/virt-manager/pixmaps/hicolor/32x32/actions/ - doins "${S}"/pixmaps/hicolor/32x32/actions/*.png +pkg_postrm() { + python_mod_cleanup /usr/share/${PN} + gnome2_pkg_postrm }
+ 20 Jan 2012; Justin Lecher <jlec@gentoo.org> virt-manager-0.9.0-r3.ebuild, + virt-manager-9999.ebuild: + move to EAPI=4, byte compile python code, #398625 +