{% set version = '3.4.0' %}

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

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

source:
  fn: ggthemes_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/ggthemes_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/ggthemes/ggthemes_{{ version }}.tar.gz
  sha256: 1a1aeb7fe5a60fab0d0b82e959dd7c01d80b6f5984af77674264cc25cfa548ca

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

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

requirements:
  build:
    - r-base
    - r-assertthat
    - r-colorspace
    - r-ggplot2 >=2.2.0
    - r-scales

  run:
    - r-base
    - r-assertthat
    - r-colorspace
    - r-ggplot2 >=2.2.0
    - r-scales

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

about:
  home: http://github.com/jrnold/ggthemes
  license: GPL-2
  summary: Some extra themes, geoms, and scales for 'ggplot2'. Provides 'ggplot2' themes and
    scales that replicate the look of plots by Edward Tufte, Stephen Few, 'Fivethirtyeight',
    'The Economist', 'Stata', 'Excel', and 'The Wall Street Journal', among others.
    Provides 'geoms' for Tufte's box plot and range frame.
  license_family: GPL2

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