{% set version = '0.3' %}

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

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

source:
  fn: ggstance_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/ggstance_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/ggstance/ggstance_{{ version }}.tar.gz
  sha256: f1427f2dee092a2063ebb66850d4eae9b9f5c6994cea56c78aa8a3ac9525286b

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

requirements:
  build:
    - r-base
    - r-ggplot2 >=2.2
    - r-lazyeval
    - r-plyr
    - r-purrr >=0.2

  run:
    - r-base
    - r-ggplot2 >=2.2
    - r-lazyeval
    - r-plyr
    - r-purrr >=0.2

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

about:
  home: https://CRAN.R-project.org/package=ggstance
  license: GPL-3
  summary: "A 'ggplot2' extension that provides flipped components: horizontal versions
    of 'Stats' and 'Geoms', and vertical versions of 'Positions'."
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

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