{% set version = '0.9.0' %}

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

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

source:
  fn: R.huge_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/R.huge_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/R.huge/R.huge_{{ version }}.tar.gz
  sha256: f12d113a965603cfdbbb46e1a57331d267916235555b22f2bbc06caa302ae58e

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-r.methodss3 >=1.7.0
    - r-r.oo >=1.18.0
    - r-r.utils >=1.34.0

  run:
    - r-base
    - r-r.methodss3 >=1.7.0
    - r-r.oo >=1.18.0
    - r-r.utils >=1.34.0

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

about:
  home: https://github.com/HenrikBengtsson/R.huge
  license: LGPL (>= 2.1)
  summary: 'DEPRECATED. Do not start building new projects based on this package. Cross-platform
    alternatives are the following packages: bigmemory (CRAN), ff (CRAN), BufferedMatrix
    (Bioconductor).  The main usage of it was inside the aroma.affymetrix package. (The
    package currently provides a class representing a matrix where the actual data is
    stored in a binary format on the local file system.  This way the size limit of
    the data is set by the file system and not the memory.)'

  license_family: LGPL

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
