{% set version = '0.6.1' %}

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

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

source:
  fn: gProfileR_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/gProfileR_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/gProfileR/gProfileR_{{ version }}.tar.gz
  sha256: 17edad1d2f61f84b443b3b322972c5e4d94a12ad5c31cadad536290e5a093de2

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-rcurl
    - r-plyr

  run:
    - r-base
    - r-rcurl
    - r-plyr

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

about:
  home: https://CRAN.R-project.org/package=gProfileR
  license: GPL (>= 2)
  summary: Functional enrichment analysis, gene identifier conversion and mapping homologous
    genes across related organisms via the 'g:Profiler' toolkit (http://biit.cs.ut.ee/gprofiler/).
  license_family: GPL3

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