{% set version = "1.6.0" %}
{% set name = "S4Arrays" %}
{% set bioc = "3.20" %}

about:
  description: 'The S4Arrays package defines the Array virtual class to be extended by other S4 classes that wish to implement a container with an array-like semantic. It also provides: (1) low-level functionality meant to help the developer of such container to implement basic operations like display, subsetting, or coercion of their array-like objects to an ordinary matrix or array, and (2) a framework that facilitates block processing of array-like objects (typically on-disk objects).'
  home: https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html
  license: Artistic-2.0
  summary: Foundation of array-like containers in Bioconductor

build:
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/
  run_exports: '{{ pin_subpackage("bioconductor-s4arrays", max_pin="x.x") }}'

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
package:
  name: bioconductor-{{ name|lower }}
  version: '{{ version }}'

# Suggests: BiocParallel, SparseArray (>= 0.0.4), DelayedArray, testthat, knitr, rmarkdown, BiocStyle
requirements:
  build:
    - {{ compiler('c') }}
    - make
  host:
    - bioconductor-biocgenerics >=0.52.0,<0.53.0
    - bioconductor-iranges >=2.40.0,<2.41.0
    - bioconductor-s4vectors >=0.44.0,<0.45.0
    - r-abind
    - r-base
    - r-crayon
    - r-matrix
    - libblas
    - liblapack
  run:
    - bioconductor-biocgenerics >=0.52.0,<0.53.0
    - bioconductor-iranges >=2.40.0,<2.41.0
    - bioconductor-s4vectors >=0.44.0,<0.45.0
    - r-abind
    - r-base
    - r-crayon
    - r-matrix

source:
  md5: 0bdfca3df96ee46fa23a4913cbeccf9b
  url:
    - https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/{{ name }}_{{ version }}.tar.gz
    - https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/Archive/{{ name }}/{{ name }}_{{ version }}.tar.gz
    - https://bioarchive.galaxyproject.org/{{ name }}_{{ version }}.tar.gz
    - https://depot.galaxyproject.org/software/bioconductor-{{ name|lower }}/bioconductor-{{ name|lower }}_{{ version }}_src_all.tar.gz

test:
  commands:
    - $R -e "library('{{ name }}')"

