# -*- 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           openssl 1.0
PortGroup           R 1.0

R.setup             github ropensci git2r 0.36.2 v
revision            3
categories-append   devel
maintainers         nomaintainer
license             GPL-2
description         R bindings to the libgit2 library
long_description    {*}${description}
homepage            https://docs.ropensci.org/git2r
checksums           rmd160  d7ad125a8124a1755a832b39dc5736c5a1b8dd66 \
                    sha256  0fa7415f4ff0ca443629ca8a0d4a2cb719fdcae40f381198502d199eb8a300a8 \
                    size    239729
github.tarball_from archive

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  path:lib/pkgconfig/libgit2.pc:libgit2 \
                    port:zlib

depends_test-append port:R-getPass

# May have issues on older systems: https://github.com/ropensci/git2r/issues/447
test.run            yes
