Modified: trunk/dports/python/py26-pyx/Portfile (75627 => 75628)
--- trunk/dports/python/py26-pyx/Portfile 2011-02-01 20:47:49 UTC (rev 75627)
+++ trunk/dports/python/py26-pyx/Portfile 2011-02-01 21:16:16 UTC (rev 75628)
@@ -24,14 +24,17 @@
depends_lib-append bin:tex:texlive
+patchfiles setup.py.diff
+post-patch {
+ reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/setup.py
+}
+
post-destroot {
xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES INSTALL LICENSE \
README ${destroot}${prefix}/share/doc/${name}
- file delete -force ${destroot}/etc
- # fix the paths that were calculated
- reinplace "s|${destroot}||g" ${destroot}${python.pkgd}/pyx/siteconfig.py
- reinplace "s|/etc|${prefix}/etc|g" ${destroot}${python.pkgd}/pyx/siteconfig.py
+ # only register sample config file to the port
+ move ${destroot}${prefix}/etc/pyxrc ${destroot}${prefix}/etc/pyxrc.sample
}
livecheck.type sourceforge