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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ecodist_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ecodist/ecodist_{{ version }}.tar.gz
  sha256: c292573cb80c8aeb3c4bf9a9951d786627c49436dc47e9f8e7c567fa4c156eb6

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - libopenblas
    - r-base
  run:
    - libopenblas
    - r-base
    - {{ native }}gcc-libs         # [win]

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

about:
  home: https://CRAN.R-project.org/package=ecodist
  license: GPL-2.0-or-later
  summary: Dissimilarity-based analysis functions including ordination and Mantel test functions, intended for use with spatial and community data.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

extra:
  recipe-maintainers:
    - conda-forge/r
    - jenzopr

# Package: ecodist
# Version: 2.0.1
# Date: 2017-07-12
# Title: Dissimilarity-Based Functions for Ecological Analysis
# Authors@R: c(person("Sarah", "Goslee", role = c("aut", "cre"), email = "Sarah.Goslee@ars.usda.gov"), person("Dean", "Urban", role = "aut"))
# Author: Sarah Goslee [aut, cre], Dean Urban [aut]
# Maintainer: Sarah Goslee <Sarah.Goslee@ars.usda.gov>
# Depends: R (>= 3.0.0)
# LazyData: true
# Imports: stats, graphics
# Suggests: knitr, testthat
# VignetteBuilder: knitr
# Description: Dissimilarity-based analysis functions including ordination and Mantel test functions, intended for use with spatial and community data.
# License: GPL (>= 2)
# NeedsCompilation: yes
# Packaged: 2017-07-12 20:54:53 UTC; sarahg
# Repository: CRAN
# Date/Publication: 2017-07-13 05:25:44 UTC
