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

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

source:
  fn: iterators_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/iterators_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/iterators/iterators_{{ version }}.tar.gz
  sha256: a9e1b2302828d4527766ce12fa9ae06faf8d51e819a43f8efef632b6ddf471e8

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

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=iterators
  license: Apache 2.0
  summary: Support for iterators, which allow a programmer to traverse through all the elements
    of a vector, list, or other collection of data.
  license_family: APACHE

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