{% set version = '1.2.0' %}

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

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

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

  sha256: 9b47ebc3db5708c88dc014b4ffec6734053a9c255a9241fcede30fec3e63aaa3

build:
  merge_build_host: True  # [win]
  number: 1003
  skip: true  # [win32]

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

requirements:
  build:
    - posix                # [win]
    - {{ compiler('c') }}        # [unix]
    - {{ compiler('m2w64_c') }}  # [win]
    - {{ compiler('cxx') }}        # [unix]
    - {{ compiler('m2w64_cxx') }}  # [win]
  host:
    - r-base

  run:
    - r-base

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

about:
  home: http
  license: GPL (>= 3)
  summary: This package implements various measures of information theory based on several entropy
    estimators.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
extra:
   recipe-maintainers:
    - conda-forge/r
    - dpryan79
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - Johanneskoester
    - Bgruening
    - Daler
    - Jdblischak
