{% set version = "0.4.5" %}

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

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

source:
  fn: circlize_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/circlize_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/circlize/circlize_{{ version }}.tar.gz
  sha256: 092a445b090286ef9802775e649496d0505c7c5d34e39ad395a0bdc3bf4c1662

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

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

requirements:
  build:
    - r-base
    - r-globaloptions >=0.0.12
    - r-colorspace
    - r-shape

  run:
    - r-base
    - r-globaloptions >=0.0.12
    - r-colorspace
    - r-shape

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

about:
  home: https://github.com/jokergoo/circlize, http://jokergoo.github.io/circlize_book/book/
  license: GPL (>= 2)
  summary: Circular layout is an efficient way for the visualization of huge  amounts of information.
    Here this package provides an implementation  of circular layout generation in R
    as well as an enhancement of available  software. The flexibility of the package
    is based on the usage of low-level  graphics functions such that self-defined high-level
    graphics can be easily  implemented by users for specific purposes. Together with
    the seamless  connection between the powerful computational and visual environment
    in R,  it gives users more convenience and freedom to design figures for  better
    understanding complex patterns behind multiple dimensional data.
  license_family: GPL3

extra:
  recipe-maintainers:
    - dpryan79
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
