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

R.setup             github ninohardt echoice2 0.2.4 v
revision            1
categories-append   economics math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Choice models based on economic theory
long_description    {*}${description}
homepage            http://ninohardt.de/echoice2
checksums           rmd160  caba3af8ab967ae871fd191f9a27d6ec9fd2fdb4 \
                    sha256  9a1b7d3f4fb51a16c36182e720854398bfd33f81e5242726ffb0b742a4f862c9 \
                    size    2525919

depends_lib-append  port:R-dplyr \
                    port:R-forcats \
                    port:R-ggplot2 \
                    port:R-magrittr \
                    port:R-purrr \
                    port:R-Rcpp \
                    port:R-RcppArmadillo \
                    port:R-rlang \
                    port:R-stringr \
                    port:R-tibble \
                    port:R-tidyr \
                    port:R-tidyselect \

compilers.setup     require_fortran

post-extract {
    foreach f {echoice2.dll echoice2.o RcppExports.o} {
        if {[file exists ${worksrcpath}/src/${f}]} {
            delete ${worksrcpath}/src/${f}
        }
    }
}

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

test.run            yes
