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

name                py-cffi
version             1.14.5
revision            0
categories-append   devel
platforms           darwin
license             MIT

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         Foreign Function Interface for Python calling C code.

long_description    Foreign Function Interface for Python calling C code. \
                    The aim of this project is to provide a convenient and \
                    reliable way of calling C code from Python.

homepage            https://cffi.readthedocs.org/

checksums           rmd160  38225f668aa57d7ec7e3756843ba1dfdf27494d3 \
                    sha256  fd78e5fee591709f32ef6edb9a015b4aa1a5022598e36227500c8f4e02328d9c \
                    size    475055

if {${name} ne ${subport}} {
    patchfiles-append   patch-setup.py.diff

    # ticket 61804
    compiler.blacklist-append *gcc-3.* *gcc-4.*

    depends_build-append \
                        port:py${python.version}-setuptools
    depends_lib-append  port:libffi \
                        port:py${python.version}-pycparser

    livecheck.type      none
}
