# -*- 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             gitlab luke-tierney misc3d 0.9-1 R-
revision            1
categories-append   graphics
maintainers         nomaintainer
license             {GPL-2 GPL-3}
description         Collection of miscellaneous 3D plots, including isosurfaces
long_description    {*}${description}
checksums           rmd160  a20a9df75b2e1bc1c0579ebf94a53ca19b3576f3 \
                    sha256  2b1010230621997b2b6bf2db6230ddefb52c93a2fd6312518edfa91fc1578ce3 \
                    size    62297
supported_archs     noarch
platforms           {darwin any}

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

depends_test-append port:R-rgl \
                    port:R-tkrplot

test.run            yes
