[88881] trunk/dports/python/py-pyx/Portfile

phw at macports.org phw at macports.org
Sat Jan 14 05:01:49 PST 2012


Revision: 88881
          http://trac.macports.org/changeset/88881
Author:   phw at macports.org
Date:     2012-01-14 05:01:44 -0800 (Sat, 14 Jan 2012)
Log Message:
-----------
Fixed port py-pyx for several bugs; Should now be port for python 24-27 and work; Thanks to Ryan

Modified Paths:
--------------
    trunk/dports/python/py-pyx/Portfile

Modified: trunk/dports/python/py-pyx/Portfile
===================================================================
--- trunk/dports/python/py-pyx/Portfile	2012-01-14 09:20:05 UTC (rev 88880)
+++ trunk/dports/python/py-pyx/Portfile	2012-01-14 13:01:44 UTC (rev 88881)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem 1.0
@@ -5,10 +6,10 @@
 
 name			py-pyx
 version			0.11.1
-python.versions         24 25 26 27
-python.default_version  27
-revision		0
+revision        3
 categories		python
+python.versions 24 25 26 27
+
 platforms		darwin
 maintainers		phw openmaintainer
 supported_archs noarch
@@ -21,28 +22,21 @@
 			    publication-ready quality are built out of these \
 			    primitives.
 
-homepage	http://pyx.sourceforge.net
+homepage	    http://pyx.sourceforge.net
 master_sites    sourceforge:pyx
-distname	PyX-${version}
+distname	    PyX-${version}
 checksums       sha1    c1849e140d326d528fa5f21068693889392f4ecb
 
-depends_lib-append	bin:tex:texlive
 
-if {${subport} == ${name}} {
-    set name py${python.default_version}-pyx
-}
+if {${name} != ${subport}} {
 
-post-destroot {
-    xinstall -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 -W ${worksrcpath} INSTALL CHANGES README AUTHORS LICENSE \
-        ${destroot}${prefix}/share/doc/py${python.version}-pyx
+    depends_lib-append	bin:tex:texlive
 
-    file delete -force ${destroot}/etc
-    
-    # siteconfig.py is missing from newer versions 
-    #
-    # 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
-}
+    post-destroot {
+        xinstall -d ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} INSTALL CHANGES README AUTHORS LICENSE \
+            ${destroot}${prefix}/share/doc/${subport}
+        file delete -force ${destroot}/etc
+    }
 
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120114/ad81c711/attachment.html>


More information about the macports-changes mailing list