--- pysdm-0.4.1.ebuild 2008-04-09 18:41:38.000000000 +0300 +++ pysdm-0.4.1-r1.ebuild 2008-04-09 21:09:31.000000000 +0300 @@ -2,9 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 #$Headers:$ +inherit eutils python DESCRIPTION="A PyGTK program for editing fstab" HOMEPAGE="http://pysdm.sourceforge.net" -SRC_URI="mirror://sourceforge.net/pysdm/${P}.tar.gz" +SRC_URI="mirror://sourceforge/pysdm/${P}.tar.gz" LICENCE="GPL-2" SLOT="0" IUSE="doc" @@ -40,3 +41,15 @@ ewarn "Ebuild bug report should be reported at hwoarang_gr@users.sourceforge.net" ewarn } + +pkg_postinst() { + python_version + python_mod_optimize /usr/share/pysdm/fsdata/ +} + + +pkg_postrm() { + python_version + python_mod_cleanup /usr/share/pysdm/fsdata/ + python_mod_cleanup +}