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

package:
  name: r-shiny.semantic
  version: {{ version|replace("-", "_") }}

source:
  fn: shiny.semantic_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/shiny.semantic_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/shiny.semantic/shiny.semantic_{{ version }}.tar.gz
  sha256: 972ba1ccf743a1134d5a9f4fd23da6da23529b38d6d7311c13eeb84ab1100e54

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

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-htmltools >=0.2.6
    - r-htmlwidgets >=0.8
    - r-jsonlite
    - r-magrittr
    - r-purrr >=0.2.2
    - r-shiny >=0.12.1
  run:
    - r-base
    - r-htmltools >=0.2.6
    - r-htmlwidgets >=0.8
    - r-jsonlite
    - r-magrittr
    - r-purrr >=0.2.2
    - r-shiny >=0.12.1

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

about:
  home: https://CRAN.R-project.org/package=shiny.semantic
  license: MIT
  summary: Creating a great user interface for your Shiny apps can be a hassle, especially if
    you want to work purely in R and don't want to use, for instance HTML templates.
    This package adds support for a powerful UI library Semantic UI - <http://semantic-ui.com/>.
    It also supports universal UI input  binding that works with various DOM elements.
  license_family: MIT

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