Revision: 75628 http://trac.macports.org/changeset/75628 Author: jmr@macports.org Date: 2011-02-01 13:16:16 -0800 (Tue, 01 Feb 2011) Log Message: ----------- py26-pyx: fix paths before siteconfig.py is compiled (#22505) Modified Paths: -------------- trunk/dports/python/py26-pyx/Portfile Modified: trunk/dports/python/py26-pyx/Portfile =================================================================== --- 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