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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/wdm_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/wdm/wdm_{{ version }}.tar.gz
  sha256: 5f0184f6f0f9e9b8c47fb571e4d34dff309644a50afe5f18e42b9c37f52c593b

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-rcpp
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp

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

about:
  home: https://github.com/tnagler/wdm-r
  license: MIT
  summary: Provides efficient implementations of weighted dependence measures and related asymptotic
    tests for independence. Implemented measures are the Pearson correlation, Spearman's
    rho, Kendall's tau, Blomqvist's beta, and Hoeffding's D; see, e.g., Nelsen (2006)
    <doi:10.1007/0-387-28678-0> and Hollander et al. (2015, ISBN:9780470387375).
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

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

# Package: wdm
# Title: Weighted Dependence Measures
# Version: 0.2.3
# Authors@R: person("Thomas", "Nagler", email = "mail@tnagler.com", role = c("aut", "cre"))
# Description: Provides efficient implementations of weighted dependence measures and related asymptotic tests for independence. Implemented measures are the Pearson correlation, Spearman's rho, Kendall's tau, Blomqvist's beta, and Hoeffding's D; see, e.g., Nelsen (2006) <doi:10.1007/0-387-28678-0> and Hollander et al. (2015, ISBN:9780470387375).
# Depends: R (>= 3.2.0)
# License: MIT + file LICENSE
# Encoding: UTF-8
# LinkingTo: Rcpp
# Imports: Rcpp
# RoxygenNote: 7.1.2
# URL: https://github.com/tnagler/wdm-r
# BugReports: https://github.com/tnagler/wdm-r/issues
# Suggests: testthat, Hmisc, copula, covr
# NeedsCompilation: yes
# Packaged: 2022-03-17 00:23:20 UTC; n5
# Author: Thomas Nagler [aut, cre]
# Maintainer: Thomas Nagler <mail@tnagler.com>
# Repository: CRAN
# Date/Publication: 2022-03-17 00:40:02 UTC
