PortSystem        1.0
PortGroup         python 1.0

name              py-pyrex
version           0.9.9
categories-append 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 515dee67d15d4393841e2d60e8341947 \
                  sha1 7ed91685dd0bb7f06474b7ad915a7cac4177fa67 \
                  rmd160 e703edf68bcb4afc31e70d5cebac2304a59460fb

python.versions   26 27

if {${name} ne ${subport}} {
    post-destroot {
      xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
        index.html primes.c ${destroot}${prefix}/share/doc/${subport}
      xinstall -m 644 -W ${worksrcpath} CHANGES.txt INSTALL.txt README.txt \
        ToDo.txt USAGE.txt ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type    none
} else {
    livecheck.type    regex
    livecheck.url     ${homepage}
    livecheck.regex   {Pyrex-(\d+(?:\.\d+)*).tar.gz}
}