# -*- 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 64758 2010-03-15 14:54:02Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-cython
version             0.12.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           md5     cf9f98e982258f8516620277975016f3 \
                    sha1    a56859f0b17e9db15da6f292f6a79ac47195e5f7 \
                    rmd160  d1690e1f308bda8dd332cbded831bae59ba03207

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