{% set version = '0.8' %}

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

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

source:
  fn: metap_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/metap_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/metap/metap_{{ version }}.tar.gz
  sha256: 9096cff45fd36fd5de37c7f9b512e2f7faa19fb790478f34f08d2b1ae74fde1a

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-lattice

  run:
    - r-base
    - r-lattice

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

about:
  home: http://www.dewey.myzen.co.uk/meta/meta.html
  license: GPL-2
  summary: The canonical way to perform meta-analysis involves using effect sizes. When they
    are not available this package provides a number of methods for meta-analysis of
    significance values including the methods of Edgington, Fisher, Stouffer, Tippett,
    and Wilkinson; a number of data-sets to replicate published results; and a routine
    for graphical display.
  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:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
