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

github.setup        libgit2 pygit2 1.2.1 v
name                py-pygit2
revision            0

categories-append   devel
license             {GPL-2 Permissive}
platforms           darwin
homepage            https://www.pygit2.org/
maintainers         {devans @dbevans} openmaintainer

description         Python bindings for libgit2
long_description    Pygit2 is a set of Python bindings to the libgit2 shared \
                    library, libgit2 implements the core of Git.

checksums           rmd160  a19977b0a5caff654b8e7109211d8dad9ca11bd2 \
                    sha256  9cf6bf39dbecc691d1d5d855d0e5d2d1dacb125ae8155feac1987e944e072199 \
                    size    3016546

python.versions     36 37 38 39

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

    depends_lib-append \
                    port:libgit2 \
                    port:py${python.version}-cached-property \
                    port:py${python.version}-cffi

    livecheck.type  none
}
