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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/isa2_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/isa2/isa2_{{ version }}.tar.gz
  sha256: 9b9d41747b14b0e5ddd7b7abb143ab7fc9e818df24995ea680197e6d4002759f

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

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

about:
  home: https://github.com/gaborcsardi/ISA
  license: CC-BY-NC-SA-4.0
  summary: The ISA is a biclustering algorithm that finds modules  in an input matrix. A module or bicluster is a block of the reordered input matrix.
  license_family: CC

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

# Package: isa2
# Version: 0.3.5
# Title: The Iterative Signature Algorithm
# Author: Gabor Csardi <csardi.gabor@gmail.com>
# Maintainer: Gabor Csardi <csardi.gabor@gmail.com>
# Description: The ISA is a biclustering algorithm that finds modules  in an input matrix. A module or bicluster is a block of the reordered input matrix.
# Imports: grDevices, lattice, stats, utils
# Depends: methods
# Suggests: igraph (>= 0.5.5), biclust
# License: CC BY-NC-SA 4.0
# Packaged: 2017-03-01 14:57:17 UTC; gaborcsardi
# URL: https://github.com/gaborcsardi/ISA
# BugReports: https://github.com/gaborcsardi/ISA/issues
# NeedsCompilation: yes
# Repository: CRAN
# Date/Publication: 2017-03-02 08:09:30
