# -*- 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 85370 2011-10-13 04:09:41Z jmr@macports.org $

PortSystem          1.0
PortGroup           python31 1.0

name                py31-cython
version             0.15
categories          python devel
license             Apache-2
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           md5  794b93c4c1c4cc031f90302cacd834ca \
                    sha1  b91780124a4061a9b77561b9467eaaea9933a799 \
                    rmd160  15d8833b035fd423cb39117911e9c54e494ab778

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