Index: gramps-3.0.0.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-misc/gramps/gramps-3.0.0.ebuild,v retrieving revision 1.1 diff -u -r1.1 gramps-3.0.0.ebuild --- gramps-3.0.0.ebuild 30 Mar 2008 15:58:04 -0000 1.1 +++ gramps-3.0.0.ebuild 14 May 2008 16:08:20 -0000 @@ -5,7 +5,7 @@ WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" -inherit autotools eutils gnome2 +inherit autotools eutils gnome2 python DESCRIPTION="Genealogical Research and Analysis Management Programming System" HOMEPAGE="http://www.gramps-project.org/" @@ -40,3 +40,21 @@ G2CONF="${G2CONF} --disable-mime-install" } + +src_unpack() { + gnome2_src_unpack + + mv "${S}"/py-compile "${S}"/py-compile.orig + ln -s $(type -P true) "${S}"/py-compile +} + +pkg_postinst() { + gnome2_pkg_postinst + python_mod_optimize /usr/share/${PN} +} + +pkg_postrm() { + gnome2_pkg_postrm + python_mod_cleanup /usr/share/${PN} +} +