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

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

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

source:
  fn: grImport_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/grImport_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/grImport/grImport_{{ version }}.tar.gz
  sha256: 813bde85ee4db0edb63240c3f29de0d4e750240e79362c7364476201ca690eb5

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

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

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

  run:
    - r-base
    - r-xml

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

about:
  home: https://CRAN.R-project.org/package=grImport
  license: GPL (>= 2)
  summary: Functions for converting, importing, and drawing PostScript  pictures in R plots.
  license_family: GPL3

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