{% set version = '1.6-0' %}

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

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

source:
  fn: gridSVG_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/gridSVG_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/gridSVG/gridSVG_{{ version }}.tar.gz
  sha256: 122c8882e5f89a7aed6a141a68fd9291ec83ffd321385a3aeb4e536620b8dd1a

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-xml
    - r-jsonlite

  run:
    - r-base
    - r-xml
    - r-jsonlite

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

about:
  home: https://CRAN.R-project.org/package=gridSVG
  license: GPL
  summary: Functions to export graphics drawn with package grid to SVG format.  Additional functions
    provide access to SVG features that are not available in standard R graphics, such
    as hyperlinks,  animation, filters, masks, clipping paths, and gradient and pattern
    fills.
  license_family: GPL

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