{% set version = '0.3.3' %}

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

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

source:
  fn: lemon_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/lemon_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/lemon/lemon_{{ version }}.tar.gz
  sha256: 2bb6bd4c94964fe3f59e096aeadbd1f1c87e8acf02306cd5cb432593e9f5ac4b

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

requirements:
  build:
    - r-base
    - r-ggplot2 >=2.2.0
    - r-gridextra
    - r-gtable
    - r-knitr >=1.12
    - r-lattice

  run:
    - r-base
    - r-ggplot2 >=2.2.0
    - r-gridextra
    - r-gtable
    - r-knitr >=1.12
    - r-lattice

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

about:
  home: https://github.com/stefanedwards/lemon
  license: GPL-3
  summary: Functions for working with legends and axis lines of 'ggplot2', facets that repeat
    axis lines on all panels, and some 'knitr' extensions.
  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
