{% set version = '2.0.9' %}

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

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

source:
  fn: mvoutlier_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/mvoutlier_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/mvoutlier/mvoutlier_{{ version }}.tar.gz
  sha256: f1f94578228b7816f4855da10b66e773a79f212e29ba23a03009b3d80714a6b4

build:
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/
  skip: True  # [win32]

requirements:
  build:
    - r-base
    - r-robcompositions
    - r-robustbase
    - r-sgeostat
  run:
    - r-base
    - r-robcompositions
    - r-robustbase
    - r-sgeostat

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

about:
  home: http://cstat.tuwien.ac.at/filz
  license: GPL (>= 3)
  summary: Various Methods for Multivariate Outlier Detection.
  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:
    - cbrueffer
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
