{% set version = '1.1' %}

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

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

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

  sha256: 23ab88f6f1e56ae85a45bf5107ad0c37202dde275d799ed9fe214a1ab2c754df

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=RobustRankAggreg
  license: GPL-2
  summary: Methods for aggregating ranked lists, especially lists of genes. It implements the
    Robust Rank Aggregation (Kolde et. al in preparation) and some other simple algorithms
    for the task. RRA method uses a probabilistic model for aggregation that is robust
    to noise and also facilitates the calculation of significance probabilities for
    all the elements in the final ranking.
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}\/lib\/R\/share\/licenses\/GPL-2'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-2'  # [win]
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
