{% set version = '2.1.0' %}

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

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

source:
  fn: iCluster_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/iCluster_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/iCluster/iCluster_{{ version }}.tar.gz

  sha256: d97cdcba3b53cf10160c333976d2244c2ad5abb8154e194b1568b48376374326

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-catools
    - r-gdata
    - r-gplots
    - r-gtools
    - r-lattice

  run:
    - r-base
    - r-catools
    - r-gdata
    - r-gplots
    - r-gtools
    - r-lattice

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

about:
  home: https://CRAN.R-project.org/package=iCluster
  license: GPL (>= 2)
  summary: Integrative clustering of multiple genomic data types using a joint latent variable
    model.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}\/lib\/R\/share\/licenses\/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
