{% set version = '0.3.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/taxa_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/taxa/taxa_{{ version }}.tar.gz
  sha256: e718b187b7f2c8b46d9db0052e90562aab4c787c7270e9b1c67bfbbc227b6ea5

build:
  merge_build_host: True  # [win]

  number: 0
  skip: true  # [win32]

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

requirements:
  build:
    - {{posix}}zip               # [win]

  host:
    - r-base
    - r-r6
    - r-crayon
    - r-dplyr
    - r-jsonlite
    - r-knitr
    - r-lazyeval
    - r-magrittr
    - r-rlang
    - r-stringr
    - r-taxize
    - r-tibble
    - r-tidyr

  run:
    - r-base
    - r-r6
    - r-crayon
    - r-dplyr
    - r-jsonlite
    - r-knitr
    - r-lazyeval
    - r-magrittr
    - r-rlang
    - r-stringr
    - r-taxize
    - r-tibble
    - r-tidyr

test:
  commands:

    - $R -e "library('taxa')"           # [not win]
    - "\"%R%\" -e \"library('taxa')\""  # [win]

about:
  home: https://github.com/ropensci/taxa
  license: MIT
  summary: Provides taxonomic classes for groupings of taxonomic names without data, and those
    with data. Methods provided are "taxonomically aware", in that they know about ordering
    of ranks, and methods that filter based on taxonomy also filter associated data.
  license_family: MIT
extra:
  recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
