[101491] trunk/dports/python

jmr at macports.org jmr at macports.org
Fri Jan 11 13:30:09 PST 2013


Revision: 101491
          https://trac.macports.org/changeset/101491
Author:   jmr at macports.org
Date:     2013-01-11 13:30:09 -0800 (Fri, 11 Jan 2013)
Log Message:
-----------
py*-psyco: unify

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

Removed Paths:
-------------
    trunk/dports/python/py25-psyco/
    trunk/dports/python/py26-psyco/

Modified: trunk/dports/python/py-psyco/Portfile
===================================================================
--- trunk/dports/python/py-psyco/Portfile	2013-01-11 21:29:35 UTC (rev 101490)
+++ trunk/dports/python/py-psyco/Portfile	2013-01-11 21:30:09 UTC (rev 101491)
@@ -1,14 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name                    py-psyco
 version                 1.6
-categories              python
 platforms               darwin
 supported_archs         i386
-maintainers             erickt
+license                 MIT
+maintainers             erickt jmr openmaintainer
 description             a python specializing compiler
 long_description        Psyco is a Python extension module which can \
                         massively speed up the execution of any Python code.
@@ -21,16 +21,32 @@
                         rmd160 472669a7a3714aae63710fd9bc5322b4b5214944
 worksrcdir              psyco-${version}
 
-extract.post_args       "| tar -xf - --exclude '.cvsignore'"
+python.versions         24 25 26
 
-pre-fetch {
-	if {${configure.build_arch} != "i386"} {
-		return -code error "psyco only works on Intel IA-32 machines"
-	}
-}
+if {$subport != $name} {
+    extract.post_args       "| tar -xf - --exclude '.cvsignore'"
 
-post-destroot {
-        xinstall -m 644 -W ${worksrcpath} README.txt \
-                 ${destroot}${prefix}/share/doc/${name}
-        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}/
+    pre-fetch {
+        if {${os.arch} != "i386"} {
+            return -code error "psyco only works on Intel machines"
+        }
+    }
+    
+    if {$build_arch == "x86_64"} {
+        if {${python.version} >= 25} {
+            set interp_path ${python.prefix}/Resources/Python.app/Contents/MacOS/Python
+        } else {
+            set interp_path ${python.bin}
+        }
+        notes "Since MacPorts is configured to build for the x86_64 architecture where
+possible and psyco can only be built for i386, you will probably need
+to run python like this to use psyco:
+arch -i386 $interp_path"
+    }
+
+    post-destroot {
+            xinstall -m 644 -W ${worksrcpath} README.txt \
+                     ${destroot}${prefix}/share/doc/${subport}
+            file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}/
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130111/3d5a870b/attachment-0001.html>


More information about the macports-changes mailing list