{% set version = '0.8.20' %}

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

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

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

  sha256: fc8474b0f8b330d0a33c7bd07037a3aa4b2f5e50c88fa5a98686783113458c67

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

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

requirements:
  build:
    - r-base
    - r-mass
    - r-matrix
    - r-mvtnorm

  run:
    - r-base
    - r-mass
    - r-matrix
    - r-mvtnorm

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

about:
  home: https://CRAN.R-project.org/package=dmt
  license: BSD_2_clause
  summary: Probabilistic dependency modeling toolkit.
  license_family: BSD
extra:
   recipe-maintainers:
    - dpryan79
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - Johanneskoester
    - Bgruening
    - Daler
    - Jdblischak
