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

# GitHub version is old.
R.setup             cran JoshOBrien gdalUtilities 1.2.5
revision            1
categories-append   gis
maintainers         nomaintainer
license             GPL-2+
description         Wrappers for GDAL utilities executables
long_description    {*}${description}
checksums           rmd160  368ee149e8487807bbe27b3f9778b0fa7a3dfeb4 \
                    sha256  2a72e990080ad626205c78edc6614959b564413b7fc23132008b7259723571a7 \
                    size    1542252
supported_archs     noarch

depends_lib-append  port:R-sf

# Fix broken tests: https://github.com/JoshOBrien/gdalUtilities/issues/11
post-extract {
    copy ${filespath}/testthat.R ${worksrcpath}/tests/
}

depends_test-append port:R-RColorBrewer \
                    port:R-stars \
                    port:R-terra \
                    port:R-testthat

test.run            yes
