--- libgsf-1.14.3.ebuild 2007-03-21 06:01:25.000000000 +0100 +++ libgsf-1.14.3.ebuild 2007-05-07 22:37:13.000000000 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgsf/libgsf-1.14.3.ebuild,v 1.1 2007/03/21 05:01:25 leio Exp $ -inherit eutils gnome2 +inherit eutils gnome2 python multilib DESCRIPTION="The GNOME Structured File Library" HOMEPAGE="http://www.gnome.org/" @@ -38,6 +38,8 @@ $(use_with gnome) \ $(use_with python)" +DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO" + pkg_preinst() { preserve_old_lib /usr/$(get_libdir)/libgsf-1.so.1 preserve_old_lib /usr/$(get_libdir)/libgsf-gnome-1.so.1 @@ -47,6 +49,7 @@ pkg_postinst() { gnome2_pkg_postinst + use python && python_mod_optimize ${ROOT}usr/$(get_libdir)/python*/site-packages/gsf preserve_old_lib_notify /usr/$(get_libdir)/libgsf-1.so.1 preserve_old_lib_notify /usr/$(get_libdir)/libgsf-gnome-1.so.1 @@ -54,4 +57,7 @@ preserve_old_lib_notify /usr/$(get_libdir)/libgsf-gnome-1.so.113 } -DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO" +pkg_postrm() { + gnome2_pkg_postrm + use python && python_mod_cleanup +}