{% set version = '1.2' %}

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

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

source:
  fn: GiANT_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/GiANT_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/GiANT/GiANT_{{ version }}.tar.gz
  sha256: fc941a6b2cd20c6ea714cd76442ba656880c8c90bda66d9c8df4df77b7e83241

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=GiANT
  license: Artistic-2.0
  summary: Toolbox for various enrichment analysis methods and quantification of uncertainty
    of gene sets.
  license_family: OTHER

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
