{% set version = '0.2.1' %}

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

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

source:
  fn: shinyAce_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/shinyAce_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/shinyAce/shinyAce_{{ version }}.tar.gz
  sha256: a9b6af7cbb11b7a18b8e169d9347f78b15dbf6492d3a3a13462700ae33529379

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

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

requirements:
  build:
    - r-base
    - r-shiny >=0.7.0

  run:
    - r-base
    - r-shiny >=0.7.0

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

about:
  home: https://CRAN.R-project.org/package=shinyAce
  license: MIT
  summary: Ace editor bindings to enable a rich text editing environment within Shiny.
  license_family: MIT

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