--- /usr/portage/dev-python/empy/empy-3.3.ebuild 2007-06-25 10:06:03.000000000 +0200 +++ empy-3.3.ebuild 2008-07-21 22:48:35.000000000 +0200 @@ -24,8 +24,8 @@ distutils_src_install distutils_python_version dodir /usr/bin - fperms 755 /usr/lib/python${PYVER}/site-packages/em.py - dosym /usr/lib/python${PYVER}/site-packages/em.py /usr/bin/em.py + fperms 755 /usr/$(get_libdir)/python${PYVER}/site-packages/em.py + dosym /usr/$(get_libdir)/python${PYVER}/site-packages/em.py /usr/bin/em.py dodir /usr/share/doc/${PF}/examples insinto /usr/share/doc/${PF}/examples doins sample.em sample.bench @@ -34,3 +34,12 @@ dohtml doc/home/max/projects/empy/doc/em.html dohtml doc/index.html } + +pkg_postinst() { + python_version + python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/em.py +} + +pkg_postrm() { + python_mod_cleanup +}