# -*- 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 76457 2011-02-24 00:38:15Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-cython
version             0.14.1
categories          python devel
maintainers         nomaintainer
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}release/ \
                    http://pypi.python.org/packages/source/C/Cython/

distname            Cython-${version}
checksums           sha1    b3bdf0aa403f92cd025eadf9a5dfaa32c5097d12 \
                    rmd160  98706027d3ef7893697de99965abc7f93b76e041

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}
}

livecheck.type      regex
livecheck.url       [lindex $master_sites 0]
livecheck.regex     "Cython-(\[0-9.\]+)${extract.suffix}"
