# -*- 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: Portfile 57805 2009-09-16 23:14:55Z toby@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-cython
version             0.11.2
categories          python devel
maintainers         openmaintainer akitada
platforms           darwin
description         A language for writing C extension modules for Python.
long_description    Cython is a language that makes writing C extensions for\
                    the Python language as easy as Python itself. Cython is\
                    based on the well-known Pyrex, but supports more cutting\
                    edge functionality and optimizations

homepage            http://www.cython.org/
master_sites        ${homepage}

distname            Cython-${version}
checksums           md5     31a79d5c7365e1d18ff7be48d6c1026b \
                    sha1    67ae3bdfdb6f2e5ee5f54e21a295d880d3c3bb9e \
                    rmd160  6e4a69ff1de4e901ad416398a5453a09b229ae8d

post-destroot {
    xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
        extension_types.html index.html overview.html primes.c sharing.html \
        special_methods.html ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt\
        ToDo.txt USAGE.txt ${destroot}${prefix}/share/doc/${name}
    move ${destroot}${prefix}/bin/cython \
        ${destroot}${prefix}/bin/cython-${python.branch}
}
