# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        randy3k radian 0.6.13 v
revision            0
categories          math python R
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         A XXI century R console
long_description    radian is an alternative console for the R program with multiline editing and rich syntax highlight. \
                    One would consider radian as a ipython clone for R, though its design is more aligned to Julia.

checksums           rmd160  cbadba12b7c3ce9b96e8c1a90f72e3a6f1af4032 \
                    sha256  869173a954e085e2a829e31fe30f23d41910df33c7e49ae548c27d1f1c572ae3 \
                    size    75247
github.tarball_from archive
supported_archs     noarch
platforms           {darwin any}

python.default_version 311

depends_build-append \
                    port:py${python.version}-pytest-runner \
                    port:py${python.version}-setuptools
depends_lib-append  port:py${python.version}-prompt_toolkit \
                    port:py${python.version}-pygments \
                    port:py${python.version}-rchitect
depends_run-append  port:R

# FIXME: on 10.5.8 and 10.6 ppc it fails to run:
# https://trac.macports.org/ticket/67046
# https://github.com/randy3k/radian/issues/403

depends_test-append port:py${python.version}-pexpect \
                    port:py${python.version}-ptyprocess \
                    port:py${python.version}-pyte

test.run            yes
