{% set version = '2.16' %}

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

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

source:
  fn: rmeta_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/rmeta_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/rmeta/rmeta_{{ version }}.tar.gz
  sha256: 9efb9e4f1847b59d9cbc46c793c528cf1b79d961ab1e6636daad81390b0a76e8

build:
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/
  skip: True  # [win32]

requirements:
  build:
    - r-base
  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=rmeta
  license: GPL-2
  summary: Functions for simple fixed and random effects meta-analysis for two-sample comparisons
    and cumulative meta-analyses. Draws standard summary plots, funnel plots, and computes
    summaries and tests for association and heterogeneity
  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:
    - cbrueffer
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
