# -*- 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 aplpack 1.3.5
revision            1
categories-append   graphics
maintainers         nomaintainer
license             {GPL-2 GPL-3}
description         Another plot package
long_description    {*}${description}
checksums           rmd160  8b924710c1a3f9d794f47d3dcec695ad38e594e8 \
                    sha256  4454bc05cf70d5f3690b211e46b89b90a817de768b986098a3500c84f8d2664f \
                    size    3437817
supported_archs     noarch

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-jpeg \
                    port:R-png \
                    port:R-tkrplot

test.run            yes
