{% set version = '1.0.2' %}

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

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

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

  sha256: 8dac1fa07a4dc37891a606d33071dc0e24e4644876c120e75f4c9e90e73555bb

build:
  number: 0
  skip: true  # [win32]

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

requirements:
  build:
    - r-base
    - posix                # [win]
    - {{native}}toolchain  # [win]
    - gcc                  # [not win]

  run:
    - r-base
    - libgcc  # [not win]

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

about:
  home: https://CRAN.R-project.org/package=parmigene
  license: AGPL-3
  summary: The package provides a parallel estimation of the mutual information based on entropy
    estimates from k-nearest neighbors distances and algorithms for the reconstruction
    of gene regulatory networks.
  license_family: AGPL
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
