{% set version = '0.4.5' %}

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

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

source:
  fn: vipor_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/vipor_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/vipor/vipor_{{ version }}.tar.gz
  sha256: 7d19251ac37639d6a0fed2d30f1af4e578785677df5e53dcdb2a22771a604f84

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=vipor
  license: GPL (>= 2)
  summary: Generate a violin point plot, a combination of a violin/histogram plot and a scatter
    plot by offsetting points within a category based on their density using quasirandom
    noise.
  license_family: GPL3

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