{% set version = '0.6-28' %}

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

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

source:
  fn: latticeExtra_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/latticeExtra_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/latticeExtra/latticeExtra_{{ version }}.tar.gz
  sha256: 780695323dfadac108fb27000011c734e2927b1e0f069f247d65d27994c67ec2

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

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

requirements:
  build:
    - r-base
    - r-rcolorbrewer
    - r-lattice

  run:
    - r-base
    - r-rcolorbrewer
    - r-lattice

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

about:
  home: http://latticeextra.r-forge.r-project.org/
  license: GPL (>= 2)
  summary: Building on the infrastructure provided by the lattice package, this package provides
    several new high-level functions and methods, as well as additional utilities such
    as panel and axis annotation functions.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
