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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/clusteval_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/clusteval/clusteval_{{ version }}.tar.gz
  sha256: 329f0f1fd5b9fcd1fa253d0c8d1373d7b0eed919eacc51bfd30d7947685ba0d1

build:
  merge_build_host: true  # [win]
  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]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-rcpp >=0.9.13
    - r-mvtnorm
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=0.9.13
    - r-mvtnorm

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

about:
  home: https://CRAN.R-project.org/package=clusteval
  license: MIT
  summary: An R package that provides a suite of tools to evaluate clustering algorithms, clusterings, and individual clusters.
  license_family: MIT

  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/MIT
extra:
  recipe-maintainers:
    - conda-forge/r
    - khughitt

# Package: clusteval
# Title: Evaluation of Clustering Algorithms
# Version: 0.1
# Date: 2012-08-30
# Author: John A. Ramey
# Maintainer: John A. Ramey <johnramey@gmail.com>
# Description: An R package that provides a suite of tools to evaluate clustering algorithms, clusterings, and individual clusters.
# Depends: R (>= 2.15)
# Imports: parallel, mvtnorm, Rcpp (>= 0.9.13)
# LinkingTo: Rcpp
# License: MIT
# Collate: 'similarity.r' 'sim_normal.r' 'sim_unif.r' 'sim_student.r' 'clustomit.r' 'sim_data.r' 'helper-boot.r' 'clusteval.r' 'random_clustering.r' 'comembership.r'
# Packaged: 2012-08-30 20:40:40 UTC; johnramey
# Repository: CRAN
# Date/Publication: 2012-08-31 17:17:52
# NeedsCompilation: yes
