# -*- 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.19.3 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  3351d63e9d2d590cd8068b59c7205d73121bc359 \
                    sha256  35afd3662b0a8b6446b23209cee79979215f604ff1d918dbf74c6f4beb6b78c6 \
                    size    840302

python.versions     310 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.*
}
