{% set version = '0.4.6.1' %}

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

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

source:
  fn: rlist_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/rlist_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/rlist/rlist_{{ version }}.tar.gz
  sha256: bb0148b124997aa4e1c89c6c7cf45927afaf5b23caefcdc5116cfa7caef05c21

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

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

requirements:
  build:
    - r-base
    - r-xml
    - r-data.table
    - r-jsonlite
    - r-yaml

  run:
    - r-base
    - r-xml
    - r-data.table
    - r-jsonlite
    - r-yaml

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

about:
  home: https://renkun.me/rlist, https://github.com/renkun-ken/rlist, https://renkun.me/rlist-tutorial
  license: MIT
  summary: Provides a set of functions for data manipulation with list objects, including mapping,
    filtering, grouping, sorting, updating, searching, and other useful functions. Most
    functions are designed to be pipeline friendly so that data processing with lists
    can be chained.
  license_family: MIT

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
