{% set version = '1.2.0' %}

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

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

source:
  fn: RCircos_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/RCircos_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/RCircos/RCircos_{{ version }}.tar.gz

  sha256: 7fd06e2efc33b5c30fc4ba3945b04021f255ba4ffcc394348df7488b9394444a

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://cran.r-project.org/package=RCircos
  license: GPL (>= 2)
  summary: A simple and flexible way to generate Circos 2D track plot images for genomic data
    visualization is implemented in this package.
  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:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
