{% set version = '1.0.4' %}

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

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

source:
  fn: ccRemover_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/ccRemover_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/ccRemover/ccRemover_{{ version }}.tar.gz
  sha256: 26158d005a807567782e92c2104deeacec44e2410914d3f8c2e77928fa06edda

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=ccRemover
  license: GPL-3
  summary: Implements a method for identifying and removing the cell-cycle effect from scRNA-Seq
    data. The description of the  method is in Barron M. and Li J. (2016) <doi
  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:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
