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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/MatrixCorrelation_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/MatrixCorrelation/MatrixCorrelation_{{ version }}.tar.gz
  sha256: 8d40d02e4a31d5a1c7af9f9397c959a8652a4891fa76281c157a6b86aaab57a4

build:
  merge_build_host: true  # [win]
  number: 1
  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:
    - libblas
    - r-base
    - r-rspectra
    - r-rcpp
    - r-rcpparmadillo
    - r-plotrix
    - r-pracma
    - r-progress
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rspectra
    - r-rcpp
    - r-rcpparmadillo
    - r-plotrix
    - r-pracma
    - r-progress

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

about:
  home: https://CRAN.R-project.org/package=MatrixCorrelation
  license: GPL-2.0-only
  summary: Computation and visualization of matrix correlation coefficients. The main method is the Similarity of Matrices Index, while various related measures like r1, r2, r3, r4, Yanai's GCD, RV, RV2 and adjusted RV are included for comparison.
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Encoding: latin1
# Package: MatrixCorrelation
# Type: Package
# Title: Matrix Correlation Coefficients
# Version: 0.9.2
# Date: 2017-09-24
# Authors@R: c(person("Kristian Hovde", "Liland", role = c("aut","cre"), email="kristian.liland@nmbu.no"), person("Tormod", "Ns", role=c("ctb")), person("Ulf Geir", "Indahl", role="ctb"))
# Author: Kristian Hovde Liland [aut, cre], Tormod Ns [ctb], Ulf Geir Indahl [ctb]
# Maintainer: Kristian Hovde Liland <kristian.liland@nmbu.no>
# Description: Computation and visualization of matrix correlation coefficients. The main method is the Similarity of Matrices Index, while various related measures like r1, r2, r3, r4, Yanai's GCD, RV, RV2 and adjusted RV are included for comparison.
# Depends: R (>= 3.0.1)
# Imports: Rcpp, plotrix, pracma, progress, RSpectra
# License: GPL-2
# LazyData: TRUE
# RoxygenNote: 6.0.1
# LinkingTo: progress, Rcpp, RcppArmadillo
# NeedsCompilation: yes
# Packaged: 2017-09-24 17:59:38 UTC; kristian.liland
# Repository: CRAN
# Date/Publication: 2017-09-24 21:13:52 UTC
