--- gnome-dvb-daemon-0.2.2.ebuild.orig 2011-09-02 17:49:45.966510002 +0100 +++ gnome-dvb-daemon-0.2.2.ebuild 2011-09-02 17:50:11.429973830 +0100 @@ -45,3 +45,26 @@ python_set_active_version 2 python_pkg_setup } + +src_prepare() { + # Disable byte-compilation of Python modules. + echo "#!/bin/sh" > py-compile + + gnome2_src_prepare +} + +pkg_postinst() { + python_mod_optimize gnomedvb + if use totem; then + python_mod_optimize "/usr/$(get_libdir)/totem/plugins" + fi + gnome2_pkg_postinst +} + +pkg_postrm() { + python_mod_cleanup gnomedvb + if use totem; then + python_mod_cleanup "/usr/$(get_libdir)/totem/plugins" + fi + gnome2_pkg_postrm +}