{% set version = '2.3' %}

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

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

source:
  fn: colorRamps_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/colorRamps_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/colorRamps/colorRamps_{{ version }}.tar.gz
  sha256: 3f10eab0602a42a2e5a79c7c04638be06cbf1e6f23979a1bd95d853e10940b6a

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=colorRamps
  license: GPL
  summary: Builds gradient color maps
  license_family: GPL

extra:
  recipe-maintainers:
    - dpryan79
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
