{% set version = '3.0-1' %}

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

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

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

  sha256: 3ec01182895e8ec9b13bcdfed6a812800ad02d732634e4213802ff1b33b21d31

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

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

requirements:
  build:
    - r-base
    - r-mass
    - r-car
    - r-gtools
    - r-multcomp
    - r-plotrix
    - r-scales

  run:
    - r-base
    - r-mass
    - r-car
    - r-gtools
    - r-multcomp
    - r-plotrix
    - r-scales

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

about:
  home: https://cran.r-project.org/web/packages/drc/index.html
  license: GPL-2
  summary: |
    Analysis of dose-response data is made available through a suite of flexible and versatile
    model fitting and after-fitting functions.
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}\/lib\/R\/share\/licenses\/GPL-2'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-2'  # [win]
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - Johanneskoester
    - Bgruening
    - Daler
    - Jdblischak
