# -*- 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 DeclareDesign estimatr 1.0.4
revision            1
categories-append   math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Fast estimators for design-based inference
long_description    {*}${description}
homepage            https://declaredesign.org/r/estimatr
checksums           rmd160  3b16884397a2ddb7d7a9cd1df7d750acf97de057 \
                    sha256  6cdfd1d59f7ebe572d0c079d0dbb6e6650973027964ed1c0591411782efe2eed \
                    size    128061

depends_lib-append  port:R-Formula \
                    port:R-generics \
                    port:R-Rcpp \
                    port:R-RcppEigen \
                    port:R-rlang

compilers.setup     require_fortran

depends_test-append port:R-AER \
                    port:R-car \
                    port:R-clubSandwich \
                    port:R-emmeans \
                    port:R-estimability \
                    port:R-fabricatr \
                    port:R-margins \
                    port:R-modelsummary \
                    port:R-prediction \
                    port:R-randomizr \
                    port:R-RcppEigen \
                    port:R-sandwich \
                    port:R-stargazer \
                    port:R-testthat \
                    port:R-texreg

# On 32-bit platforms 4 tests fail:
# https://github.com/DeclareDesign/estimatr/issues/407
test.run            yes
