# -*- 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.20.1 v
github.tarball_from archive
name                py-pygit2
revision            0

categories-append   devel
license             {GPL-2 Permissive}
homepage            https://www.pygit2.org/
maintainers         {devans @dbevans} {mascguy @mascguy} 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  cd14c17d20cf4e0bfdac8e219d254ff6d5fad758 \
                    sha256  b52fb94c73664f383e6205955c80e228edee098ba37b9b94e46facc6333f102f \
                    size    919056

python.versions     311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    path:lib/pkgconfig/libgit2.pc:libgit2 \
                    port:py${python.version}-cffi

    # https://trac.macports.org/ticket/66256
    compiler.blacklist-append *gcc-4.*
}
