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

PortSystem        1.0
PortGroup         python25 1.0

name              py25-pyrex
version           0.9.8.6
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 7445280f3f1060ae86c93a0e03eff0ab \
                  sha1 8411d712d2e9157e795593ed5c4cc76b0ede1776 \
                  rmd160 f10b719c1570ef95fdf7158413bdcc7d6f4b1348

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}
