# $Id$ PortSystem 1.0 PortGroup python27 1.0 name py27-psyco version dev platforms darwin supported_archs i386 license MIT maintainers phw 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. homepage http://psyco.sourceforge.net/ master_sites sourceforge:project/psyco/psyco/${version}/ fetch.type svn svn.url http://codespeak.net/svn/psyco/branch/py27/ #distname psyco-${version}-src worksrcdir py27 #extract.post_args "| tar -xf - --exclude '.cvsignore'" pre-fetch { if {${os.arch} != "i386"} { return -code error "psyco only works on Intel machines" } } post-destroot { xinstall -m 644 -W ${worksrcpath} README.txt \ ${destroot}${prefix}/share/doc/${name} file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}/ } if {$build_arch == "x86_64"} { 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 ${python.prefix}/Resources/Python.app/Contents/MacOS/Python" }