{% set version = '0.9' %}

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

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

source:
  fn: shinyjs_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/shinyjs_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/shinyjs/shinyjs_{{ version }}.tar.gz
  sha256: 739a1af0d76ce4c594047ac3da43af85f9c8ed1d5e7be37bcf1a20ccae6c09c2

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

requirements:
  build:
    - r-base
    - r-digest >=0.6.8
    - r-htmltools >=0.2.6
    - r-jsonlite
    - r-miniui >=0.1.1
    - r-shiny >=0.11.1
  run:
    - r-base
    - r-digest >=0.6.8
    - r-htmltools >=0.2.6
    - r-jsonlite
    - r-miniui >=0.1.1
    - r-shiny >=0.11.1

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

about:
  home: http://deanattali.com/shinyjs
  license: MIT
  summary: |
    Perform common useful JavaScript operations in Shiny apps that will greatly improve
    your apps without having to know any JavaScript.
  license_family: MIT

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
