# -*- 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 80917 2011-07-21 00:43:07Z jmr@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-pyrex
version             0.9.9
categories          python devel
license             {Permissive Apache-2}
platforms           darwin
maintainers         lightnin openmaintainer
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}
