{% set version = '0.64.0' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/PSCBS_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/PSCBS/PSCBS_{{ version }}.tar.gz
  sha256: 2196913c8dcd791c79926873de6e705d5ef4560d5fa05b4d0b91cf77e6072709

build:
  number: 2
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:

  host:
    - r-base
    - bioconductor-dnacopy
    - r-r.cache >=0.12.0
    - r-r.methodss3 >=1.7.1
    - r-r.oo >=1.21.0
    - r-r.utils >=2.5.0
    - bioconductor-aroma.light
    - r-future >=1.5.0
    - r-listenv >=0.6.0
    - r-matrixstats >=0.52.2
  run:
    - r-base
    - bioconductor-dnacopy
    - r-r.cache >=0.12.0
    - r-r.methodss3 >=1.7.1
    - r-r.oo >=1.21.0
    - r-r.utils >=2.5.0
    - bioconductor-aroma.light
    - r-future >=1.5.0
    - r-listenv >=0.6.0
    - r-matrixstats >=0.52.2

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

about:
  home: https://github.com/HenrikBengtsson/PSCBS
  license: GPL (>= 2)
  summary: Segmentation of allele-specific DNA copy number data and detection of regions with
    abnormal copy number within each parental chromosome.  Both tumor-normal paired
    and tumor-only analyses are supported.
  license_family: GPL3
