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

# version 0.27.2 requires pycparser < 2.18
# upstream claims pycparser 2.18+ is broken
# current MacPorts version is 2.19
# see https://github.com/libgit2/pygit2/commit/b1bbdcb98643baf5d4d7634d7afc18feda56de52
github.setup        libgit2 pygit2 0.27.1 v
name                py-pygit2

categories-append   devel
license             BSD
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

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  c4013f18684efd17f1d8a66cedd274ca2933642f \
                    sha256  adc734f9cbe078dd1b257787c7caf9ca2dcdae3a32b74db81d513fbce4d439c1 \
                    size    488879

python.versions     27 34 35 36 37

if {${name} ne ${subport}} {
    depends_lib-append  port:libgit2 \
                        port:py${python.version}-cffi \
                        port:py${python.version}-setuptools \
                        port:py${python.version}-six

    livecheck.type  none
}