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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/EMCluster_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/EMCluster/EMCluster_{{ version }}.tar.gz
  sha256: 0e52c28f66ff21bce1ea264c33ff968f6cc4cdec93fdeffc2c6dbd7b97591f34

build:
  merge_build_host: true  # [win]
  number: 0
  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-mass
    - r-matrix
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-mass
    - r-matrix

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

about:
  home: https://github.com/snoweye/EMCluster
  license: MPL-2.0-only
  summary: EM algorithms and several efficient initialization methods for model-based clustering of finite mixture Gaussian distribution with unstructured dispersion in both of unsupervised and semi-supervised learning.
  license_family: OTHER
  license_file:
    - {{ environ["RECIPE_DIR"] }}/LICENSE

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

# Package: EMCluster
# Version: 0.2-12
# Date: 2019-03-07
# Title: EM Algorithm for Model-Based Clustering of Finite Mixture Gaussian Distribution
# Authors@R: c(person("Wei-Chen", "Chen", role = c("aut", "cre"), email = "wccsnow@gmail.com"), person("Ranjan", "Maitra", role = "aut"), person("Volodymyr", "Melnykov", role = "ctb"), person("Dan", "Nettleton", role = "ctb"), person("David", "Faden", role = "ctb"), person("Rouben", "Rostamian", role = "ctb"), person("R Core team", role = "ctb", comment = "some functions are modified from the R source code"))
# Depends: R (>= 3.0.1), MASS, Matrix
# Enhances: PPtree, RColorBrewer
# LazyLoad: yes
# LazyData: yes
# Description: EM algorithms and several efficient initialization methods for model-based clustering of finite mixture Gaussian distribution with unstructured dispersion in both of unsupervised and semi-supervised learning.
# License: Mozilla Public License 2.0
# BugReports: https://github.com/snoweye/EMCluster/issues
# URL: https://github.com/snoweye/EMCluster
# NeedsCompilation: yes
# Maintainer: Wei-Chen Chen <wccsnow@gmail.com>
# Packaged: 2019-03-21 04:22:10 UTC; snoweye
# Author: Wei-Chen Chen [aut, cre], Ranjan Maitra [aut], Volodymyr Melnykov [ctb], Dan Nettleton [ctb], David Faden [ctb], Rouben Rostamian [ctb], R Core team [ctb] (some functions are modified from the R source code)
# Repository: CRAN
# Date/Publication: 2019-03-22 09:53:48 UTC
