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

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

source:
  fn: ggparallel_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/ggparallel_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ggparallel/ggparallel_{{ version }}.tar.gz
  sha256: 8e0b1d78d3f3a65d15455c426394a94af7dcf6b8de0758f5566be2258173aa7f

build:
  merge_build_host: True  # [win]
  number: 1
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-ggplot2 >=2.2.0
    - r-plyr >=1.8.4
    - r-reshape2 >=1.4.2
  run:
    - r-base
    - r-ggplot2 >=2.2.0
    - r-plyr >=1.8.4
    - r-reshape2 >=1.4.2

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

about:
  home: http://github.com/heike/ggparallel
  license: MIT
  summary: Create hammock plots, parallel sets, and common angle plots with 'ggplot2'.
  license_family: MIT

extra:
  recipe-maintainers:
    - djcomlab
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - dbast
