# -*- 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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

name                py-cython
python.rootname     Cython
version             0.29.22
revision            0
categories-append   devel
platforms           darwin
license             Apache-2

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         A language for writing C extension modules for Python.

long_description    Cython is a language that makes writing C extensions for \
                    the Python language as easy as Python itself. Cython is  \
                    based on the well-known Pyrex, but supports more cutting \
                    edge functionality and optimizations

homepage            http://www.cython.org/

checksums           rmd160  75e4160da42d6e3d0008aa26d8d1009e823eb2c8 \
                    sha256  df6b83c7a6d1d967ea89a2903e4a931377634a297459652e4551734c48195406 \
                    size    2072112

if {${name} ne ${subport}} {
    depends_lib-append \
                        port:py${python.version}-setuptools

    if {${python.version} eq 27} {
        version             0.29.13
        revision            0
        checksums           rmd160  40caf2eb2ebcc6cec9ca782fb6dad70fda0f9dfa \
                            sha256  c29d069a4a30f472482343c866f7486731ad638ef9af92bfe5fca9c7323d638e \
                            size    2051189
    } elseif {${python.version} eq 35} {
        version             0.29.17
        revision            0
        checksums           rmd160  130804bc375318396f2bd47073bd1d514acbdcdb \
                            sha256  6361588cb1d82875bcfbad83d7dd66c442099759f895cf547995f00601f9caf2 \
                            size    2060265
    }

    depends_run         port:cython_select
    test.run            no

    select.group        cython
    select.file         ${filespath}/cython${python.version}

    notes "
To make the Python ${python.branch} version of Cython the one that is run\
when you execute the commands without a version suffix, e.g. 'cython', run:

port select --set ${select.group} [file tail ${select.file}]
"

    livecheck.type      none
}
