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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/mapi_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/mapi/mapi_{{ version }}.tar.gz
  sha256: 7c69f9736bce73c8420fa4a23fe543159674b12ab66abcb48883acf9afda92fa

build:
  merge_build_host: True  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-rcpp >=0.10.0
    - r-data.table >=1.10
    - r-pbapply >=1.3
    - r-sf >=0.5
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=0.10.0
    - r-data.table >=1.10
    - r-pbapply >=1.3
    - r-sf >=0.5

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

about:
  home: https://www1.montpellier.inra.fr/CBGP/software/MAPI/
  license: GPL-3.0-or-later
  summary: Mapping Averaged Pairwise Information (MAPI) is an exploratory method providing graphical
    representations summarizing the spatial variation of pairwise metrics (eg. distance,
    similarity coefficient, ...) computed between georeferenced samples.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - conda-forge/r
    - spiry34

# Package: mapi
# Title: Mapping Averaged Pairwise Information
# Version: 1.0.5
# Authors@R: c( person("Sylvain", "Piry", , "sylvain.piry@inrae.fr", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7717-7555")), person("Thomas", "Campolunghi", role = "aut"), person("Florent", "Cestier", role = "aut"), person("Karine", "Berthier", , "karine.berthier@inrae.fr", role = "aut", comment = c(ORCID = "0000-0002-2260-7968")) )
# Description: Mapping Averaged Pairwise Information (MAPI) is an exploratory method providing graphical representations summarizing the spatial variation of pairwise metrics (eg. distance, similarity coefficient, ...) computed between georeferenced samples.
# License: GPL (>= 3)
# URL: https://www1.montpellier.inra.fr/CBGP/software/MAPI/
# Encoding: UTF-8
# Language: en-US
# RoxygenNote: 7.1.2
# Depends: R (>= 3.3)
# LinkingTo: Rcpp
# Imports: sf (>= 0.5), data.table (>= 1.10), Rcpp (>= 0.10.0), parallel (>= 3.3), pbapply (>= 1.3)
# Suggests: grDevices, ggplot2 (>= 2.3), latticeExtra, sp (>= 1.3), progress
# LazyData: true
# NeedsCompilation: yes
# Packaged: 2022-01-19 09:20:40 UTC; piry
# Author: Sylvain Piry [aut, cre] (<https://orcid.org/0000-0002-7717-7555>), Thomas Campolunghi [aut], Florent Cestier [aut], Karine Berthier [aut] (<https://orcid.org/0000-0002-2260-7968>)
# Maintainer: Sylvain Piry <sylvain.piry@inrae.fr>
# Repository: CRAN
# Date/Publication: 2022-01-19 11:32:42 UTC
