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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/Rmixmod_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/Rmixmod/Rmixmod_{{ version }}.tar.gz
  sha256: 1bbc2dfcf770809ba10c8c489b4b5db320ccbd44936a21e0d092bd788854d0cd

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 }}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
    - r-rcpp >=0.11.0
    - r-rcppeigen
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=0.11.0
    - r-rcppeigen

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

about:
  home: http://www.mixmod.org
  license: GPL-3
  summary: Interface of 'MIXMOD' software for supervised, unsupervised and semi-supervised classification
    with mixture modelling.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: Rmixmod
# Version: 2.1.2.2
# Title: Classification with Mixture Modelling
# Description: Interface of 'MIXMOD' software for supervised, unsupervised and semi-supervised classification with mixture modelling.
# Authors@R: c( person("Florent", "Langrognet", role="aut", email="florent.langrognet@univ-fcomte.fr"), person("Remi", "Lebret", role="aut", email="remi@lebret.ch"), person("Christian", "Poli", role="aut", email="christian.poli@inria.fr"), person("Serge", "Iovleff", role="aut", email="serge.iovleff@univ-lille1.fr"), person("Benjamin", "Auder", role=c("aut","cre"), email="benjamin.auder@u-psud.fr"), person("Parmeet", "Bhatia", role="ctb", email="parmeet.bhatia@inria.fr"), person("Anwuli", "Echenim", role="ctb", email="anwuli.echenim@inria.fr"), person("Serge", "Iovleff", role="aut", email="serge.iovleff@univ-lille1.fr"), person("Christophe", "Biernacki", role="ctb", email="christophe.biernacki@math.univ-lille1.fr"), person("Gilles", "Celeux", role="ctb", email="gilles.celeux@math.u-psud.fr"), person("G<c3><a9>rard", "Govaert", role="ctb", email="gerard.govaert@utc.fr"))
# SystemRequirements: GNU make
# NeedsCompilation: yes
# Copyright: Authors, and Mixmod use Eigen3 C++ library
# Contact: contact@mixmod.org
# License: GPL-3
# URL: http://www.mixmod.org
# BugReports: http://www.mixmod.org/article.php3?id_article=23
# LinkingTo: Rcpp, RcppEigen
# Type: Package
# LazyLoad: yes
# Imports: methods
# Depends: R(>= 2.12.0), Rcpp(>= 0.11.0)
# Collate: 'A_NAMESPACE.R' 'global.R' 'Model.R' 'MultinomialModel.R' 'GaussianModel.R' 'CompositeModel.R' 'Parameter.R' 'MultinomialParameter.R' 'GaussianParameter.R' 'CompositeParameter.R' 'MixmodResults.R' 'Mixmod.R' 'Strategy.R' 'MixmodCluster.R' 'MixmodDAResults.R' 'MixmodLearn.R' 'MixmodPredict.R' 'MixmodXml.R' 'Rmixmod.R' 'zzz.R'
# RoxygenNote: 5.0.1
# Packaged: 2019-03-11 07:19:59 UTC; hornik
# Author: Florent Langrognet [aut], Remi Lebret [aut], Christian Poli [aut], Serge Iovleff [aut], Benjamin Auder [aut, cre], Parmeet Bhatia [ctb], Anwuli Echenim [ctb], Serge Iovleff [aut], Christophe Biernacki [ctb], Gilles Celeux [ctb], G<c3><a9>rard Govaert [ctb]
# Maintainer: ORPHANED
# Repository: CRAN
# Date/Publication: 2019-03-11 07:30:40 UTC
# X-CRAN-Original-Maintainer: Benjamin Auder <benjamin.auder@u-psud.fr>
# X-CRAN-Comment: Orphaned and corrected on 2019-03-02 as check issues were not corrected despite reminder.
