{% set version = '3.0.1' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-gplots
  version: {{ version|replace("-", "_") }}

source:
  fn: gplots_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/gplots_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/gplots/gplots_{{ version }}.tar.gz
  sha256: 343df84327ac3d03494992e79ee3afc78ba3bdc08af9a305ee3fb0a38745cb0a

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-kernsmooth
    - r-catools
    - r-gdata
    - r-gtools

  run:
    - r-base
    - r-kernsmooth
    - r-catools
    - r-gdata
    - r-gtools

test:
  commands:
    - $R -e "library('gplots')"  # [not win]
    - "\"%R%\" -e \"library('gplots')\""  # [win]

about:
  home: https://CRAN.R-project.org/package=gplots
  license: GPL-2
  summary: Various R programming tools for plotting data.
  license_family: GPL2

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
