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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/clv_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/clv/clv_{{ version }}.tar.gz
  sha256: 0399fbb7040c577b82bcb0583f6950d43a15619803f407aedb274603fbb0521c

build:
  merge_build_host: true  # [win]
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/

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

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

about:
  home: https://CRAN.R-project.org/package=clv
  license: GPL (>= 2)
  summary: Package contains most of the popular internal and external cluster validation methods ready to use for the most of the outputs produced by functions coming
    from package "cluster". Package contains also functions and examples of usage for cluster stability approach that might be applied to algorithms implemented in
    "cluster" package as well as user defined clustering algorithms.
  license_family: GPL3
  license_file: {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: clv
# Title: Cluster Validation Techniques
# Version: 0.3-2.1
# Author: Lukasz Nieweglowski <wookashn@gmail.com>
# Maintainer: Lukasz Nieweglowski <wookashn@gmail.com>
# Description: Package contains most of the popular internal and external cluster validation methods ready to use for the most of the outputs produced by functions coming from package "cluster". Package contains also functions and examples of usage for cluster stability approach that might be applied to algorithms implemented in "cluster" package as well as user defined clustering algorithms.
# Depends: cluster, class
# License: GPL (>= 2)
# Packaged: 2013-11-11 12:42:55 UTC; ripley
# Repository: CRAN
# Date/Publication: 2013-11-11 13:44:41
# NeedsCompilation: yes
