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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/amap_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/amap/amap_{{ version }}.tar.gz
  sha256: 7afbbdd681a201121374821b733c9000ca1046a2353ee386507604c2c759ec7e

build:
  merge_build_host: True  # [win]
  skip: True  # [r_base == "3.5.1"]
  number: 2
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]

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

about:
  home: https://CRAN.R-project.org/package=amap
  license: GPL-3
  summary: Tools for Clustering and Principal Component Analysis (With robust methods, and parallelized
    functions).
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: amap
# Version: 0.8-18
# Date: 2019-12-12
# Title: Another Multidimensional Analysis Package
# Author: Antoine Lucas
# Maintainer: Antoine Lucas <antoinelucas@gmail.com>
# Depends: R (>= 3.6.0)
# Suggests: Biobase
# Description: Tools for Clustering and Principal Component Analysis (With robust methods, and parallelized functions).
# License: GPL
# Packaged: 2019-12-12 18:27:09 UTC; antoine
# Repository: CRAN
# Date/Publication: 2019-12-12 19:00:02 UTC
# NeedsCompilation: yes
