# $Id: Portfile 66137 2010-04-06 05:59:57Z jmr@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name                    py-psyco
version                 1.5.2
revision                2
categories              python
platforms               darwin
if {[info exists supported_archs]} {
    supported_archs i386
}
maintainers             erickt
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:psyco
distname                psyco-${version}-src
checksums               md5 bceb17423d06b573dc7b875d34e79417 \
                        sha1 acdd491372cff5076b02763e856ecdd99e28f705 \
                        rmd160 c554dcd16fe9eecf7c619da490ae74a98a4202ee
worksrcdir              psyco-${version}

extract.post_args       "| tar -xf - --exclude '.cvsignore'"

pre-fetch {
	if {${configure.build_arch} != "i386"} {
		return -code error "psyco only works on Intel IA-32 machines"
	}
}

post-destroot {
        xinstall -m 644 -W ${worksrcpath} README.txt \
                 ${destroot}${prefix}/share/doc/${name}
        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}/
}
