# $Id: Portfile 66415 2010-04-12 09:11:20Z stromnov@macports.org $

PortSystem        1.0
PortGroup         python26 1.0

name              py26-pyrex
version           0.9.9
categories        python devel
maintainers       nomaintainer
platforms         darwin
if {[info exists supported_archs]} {
    supported_archs noarch
}
description       A language for writing Python extension modules.
long_description  Pyrex lets you write code that mixes Python and C \
    data types any way you want, and compiles it into a C extension \
    for Python.

homepage          http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
master_sites      ${homepage} \
                  ${homepage}oldtar/
distname          Pyrex-${version}

checksums         md5     515dee67d15d4393841e2d60e8341947 \
                  sha1    7ed91685dd0bb7f06474b7ad915a7cac4177fa67 \
                  rmd160  e703edf68bcb4afc31e70d5cebac2304a59460fb

post-destroot {
  xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
    index.html primes.c ${destroot}${prefix}/share/doc/${name}
  xinstall -m 644 -W ${worksrcpath} CHANGES.txt INSTALL.txt README.txt \
    ToDo.txt USAGE.txt ${destroot}${prefix}/share/doc/${name}
}

livecheck.type    regex
livecheck.url     ${homepage}
livecheck.regex   {Pyrex-(\d+(?:\.\d+)*).tar.gz}
