summaryrefslogtreecommitdiff
path: root/dev-python/empy/empy-3_link.diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dev-python/empy/empy-3_link.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-python/empy/empy-3_link.diff b/dev-python/empy/empy-3_link.diff
new file mode 100644
index 0000000..ec266d4
--- /dev/null
+++ b/dev-python/empy/empy-3_link.diff
@@ -0,0 +1,26 @@
+--- /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
++}