# -*- 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             cran cran tcltk2 1.2-11
revision            1
categories-append   graphics
maintainers         nomaintainer
license             LGPL-3
description         A series of additional Tcl commands and Tk widgets \
                    with style and various functions to supplement the tcltk package
long_description    {*}${description}
homepage            https://www.sciviews.org/SciViews-R
checksums           rmd160  d58176bf9d53b592702e901b7b05a0e3a8350cab \
                    sha256  ad183ae3b7190501504a0589e0b3be480f04267303e3384fef00987446a37dc5 \
                    size    833846
supported_archs     noarch
platforms           {darwin any}

pre-fetch {
    if {![catch {set result [active_variants R "tcltk"]}]} {
        if !{$result} {
            ui_msg "Error: to install ${name} package, R should be installed with +tcltk variant."
            return -code error "Required variant missing."
        }
    }
}

test.run            yes
