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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/Kendall_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/Kendall/Kendall_{{ version }}.tar.gz
  sha256: 964f2e1d1fbbceca077c7d89e52609af2ec63b0c66d5287840b56d2bfac85e7c

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

requirements:
  build:
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-boot
  run:
    - r-base
    - r-boot

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

about:
  home: http://www.stats.uwo.ca/faculty/aim
  license: GPL-2.0-or-later
  summary: Computes the Kendall rank correlation and Mann-Kendall trend test. See documentation
    for use of block bootstrap when there is autocorrelation.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: Kendall
# Version: 2.2
# Date: 2011-05-16
# Title: Kendall rank correlation and Mann-Kendall trend test
# Author: A.I. McLeod
# Maintainer: A.I. McLeod <aimcleod@uwo.ca>
# Depends: R (>= 2.1.0)
# Description: Computes the Kendall rank correlation and Mann-Kendall trend test. See documentation for use of block bootstrap when there is autocorrelation.
# Imports: boot
# LazyLoad: yes
# LazyData: yes
# Classification/ACM: G.3, G.4, I.5.1
# Classification/MSC: 62M10, 91B84
# License: GPL (>= 2)
# URL: http://www.stats.uwo.ca/faculty/aim
# Repository: CRAN
# Date/Publication: 2011-05-18 04:53:55
# Packaged: 2011-05-17 19:08:07 UTC; aim
