# -*- 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-kivy
python.rootname     Kivy
version             1.10.1
revision            0

categories-append   devel
platforms           darwin
license             MIT

python.versions     311

maintainers         {stromnov @stromnov} openmaintainer

description         Library for development of multi-touch enabled applications

long_description    Kivy is a Python library for development of multi-touch \
                    enabled media rich applications. The aim is to allow for \
                    quick and easy interaction design and rapid prototyping, \
                    while making your code reusable and deployable.

homepage            https://kivy.org/

checksums           rmd160  1198e106fe0c56d2bb45eef50362ba2968753570 \
                    sha256  7ce9e88b75de47a3f1d52cbe6924c18cafc83fa102e54f6794d241746e93fdff \
                    size    24326312

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

    depends_lib-append  port:libsdl2 \
                        port:libsdl2_image \
                        port:libsdl2_mixer \
                        port:libsdl2_ttf \
                        port:py${python.version}-docutils \
                        port:py${python.version}-pygments

    depends_run-append  port:py${python.version}-Pillow \
                        port:py${python.version}-game

    patchfiles          patch-setup.py.diff
}
