{% set version = '1.1.0' %}

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

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

source:
  fn: patPRO_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/patPRO_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/patPRO/patPRO_{{ version }}.tar.gz

  sha256: d63bfb2a673000b285d5e7106597c8fc148509461bf047f48ecf553ae933d8d0

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

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

requirements:
  build:
    - r-base
    - r-rcolorbrewer
    - r-ggplot2
    - r-gridextra
    - r-plyr
    - r-reshape2

  run:
    - r-base
    - r-rcolorbrewer
    - r-ggplot2
    - r-gridextra
    - r-plyr
    - r-reshape2

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

about:
  home: https://CRAN.R-project.org/package=patPRO
  license: GPL-3
  summary: Quickly and easily visualize longitudinal microbiome profiles using standard output
    from the QIIME microbiome analysis toolkit (see <http
  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:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - Johanneskoester
    - Bgruening
    - Daler
    - Jdblischak
