[75628] trunk/dports/python/py26-pyx/Portfile

jmr at macports.org jmr at macports.org
Tue Feb 1 13:16:16 PST 2011


Revision: 75628
          http://trac.macports.org/changeset/75628
Author:   jmr at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110201/a7eef9bc/attachment.html>


More information about the macports-changes mailing list