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

# Revert to GitHub once updated there.
R.setup             cran r-lib gert 2.3.0
revision            1
categories-append   devel www
maintainers         nomaintainer
license             MIT
description         Simple Git client for R
long_description    {*}${description}
homepage            https://docs.ropensci.org/gert
checksums           rmd160  a3adf9db01913f1e9555b3a3c0c60f63e1b5341e \
                    sha256  4fc4fd6de98218429f6186923b64e77ddbe4a74a40d0abafe8fbf7aa2d398799 \
                    size    129952

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

depends_lib-append  path:lib/pkgconfig/libgit2.pc:libgit2 \
                    port:R-askpass \
                    port:R-credentials \
                    port:R-openssl \
                    port:R-rstudioapi \
                    port:R-sys \
                    port:R-zip

depends_test-append port:R-knitr \
                    port:R-rmarkdown \
                    port:R-spelling \
                    port:R-testthat

# Not sure if due to 10.6, PowerPC arch, newer libgit2 version,
# or something else, but examples fail for me with:
# Error in libgit2::git_clone : packfile trailer mismatch
# Calls: git_clone -> raise_libgit2_error
# Tests at the same time pass fine.
test.run            yes
