# -*- 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 ropensci jqr 1.3.5
revision            0
categories-append   devel
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Client for jq, a JSON processor
long_description    {*}${description}
homepage            https://docs.ropensci.org/jqr
checksums           rmd160  3fd2e6f8e37df1dd5d411f0ff9846acd8266b054 \
                    sha256  226266f67f766fdcda03de52ff85d65ec825adc39992e21b9543ef07bdb09bdd \
                    size    34608

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

depends_lib-append  port:jq \
                    port:R-magrittr \
                    port:R-lazyeval

# configure script is broken: https://github.com/ropensci/jqr/issues/88
patchfiles          patch-fix-configure.diff

post-patch {
    reinplace "s,@PREFIX@,${prefix},g" ${worksrcpath}/configure
}

depends_test-append port:R-jsonlite \
                    port:R-testthat

test.run            yes
