# $Id: Portfile 80917 2011-07-21 00:43:07Z jmr@macports.org $

PortSystem        1.0
PortGroup         python24 1.0

name              py-pyrex
version           0.9.8.5
categories        python devel
license           {Permissive Apache-2}
maintainers       nomaintainer
platforms         darwin
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 3b3d8397c2c9a58fc59a90e2b49c651a \
                  sha1 8ee6fa87bae48a74f58e8328316aff4863ef7c05 \
                  rmd160 ff79e39956afecf354bbe71d9f1e15cf9abf153d

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}
