{% set version = '0.4.1' %}

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

source:
  fn: ggridges_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/ggridges_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/ggridges/ggridges_{{ version }}.tar.gz
  sha256: 03d2013df6adf07c9741d4476df96865b878a88359763ac36b98aa86591cca4d

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-ggplot2 >=2.2.0
    - r-plyr >=1.8.0
    - r-scales >=0.4.1

  run:
    - r-base
    - r-ggplot2 >=2.2.0
    - r-plyr >=1.8.0
    - r-scales >=0.4.1

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

about:
  home: https://github.com/clauswilke/ggridges
  license: GPL-2
  summary: Ridgeline plots provide a convenient way of visualizing changes in distributions over
    time or space. This package enables the creation of such plots in 'ggplot2'.
  license_family: GPL2

extra:
  recipe-maintainers:
    - bgruening
    - daler
    - johanneskoester
    - rvalieris
