{% set version = '2.7.1' %}

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/PopGenome_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/PopGenome/PopGenome_{{ version }}.tar.gz
  sha256: a84903b151528fa026ccaba42ada22cd89babbc1824afd40269b7204e488a5fa

build:
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - make
  host:
    - r-base
    - r-ff
  run:
    - r-base
    - r-ff

test:
  commands:
    - $R -e "library('PopGenome')"

about:
  home: http://popgenome.weebly.com
  license: GPL-3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
  summary: Provides efficient tools for population genomics data analysis, able to process individual
    loci, large sets of loci, or whole genomes. PopGenome <DOI:10.1093/molbev/msu136>
    not only  implements a wide range of population genetics statistics, but also facilitates
    the easy  implementation of new algorithms by other researchers. PopGenome is optimized
    for speed via  the seamless integration of C code.
  license_family: GPL3

extra:
  identifiers:
    - doi:10.1093/molbev/msu136
