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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/clusterCrit_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/clusterCrit/clusterCrit_{{ version }}.tar.gz
  sha256: f375d68b94e5b473c94a439abb15559003b331b84fd93efc1475ae36e30aff82

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

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

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

about:
  home: http:www.r-project.org
  license: GPL (>= 2)
  summary: Compute clustering validation indices.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: clusterCrit
# Type: Package
# Title: Clustering Indices
# Version: 1.2.8
# Date: 2018-07-26
# Author: Bernard Desgraupes (University of Paris Ouest - Lab Modal'X)
# Maintainer: Bernard Desgraupes <bernard.desgraupes@u-paris10.fr>
# Description: Compute clustering validation indices.
# License: GPL (>= 2)
# URL: http:www.r-project.org
# Collate: main.R zzz.R
# Encoding: latin1
# Suggests: RUnit, rbenchmark
# NeedsCompilation: yes
# Packaged: 2018-07-26 14:53:05 UTC; bernardo
# Repository: CRAN
# Date/Publication: 2018-07-26 15:20:03 UTC
