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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/shinycustomloader_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/shinycustomloader/shinycustomloader_{{ version }}.tar.gz
  sha256: cee1f758eb30bc4cb76c3ac463482b31e2167150312e689c7ce0199177389dce

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-glue
    - r-shiny
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-glue
    - r-shiny

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

about:
  home: https://github.com/emitanaka/shinycustomloader
  license: GPL-3.0-only
  summary: 'An extension to the shinycssloaders package and allows for custom css/html or gif/image file for the loading screen.'
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: shinycustomloader
# Type: Package
# Title: Custom Loader for Shiny Outputs
# Version: 0.9.0
# Date: 2018-03-27
# Authors@R: c(person("Emi", "Tanaka", email = "emi.tanaka@sydney.edu.au", role = c("aut", "cre")), person("Nii-chan", "", email = "", role = "ctb"))
# Maintainer: Emi Tanaka <emi.tanaka@sydney.edu.au>
# Description: An extension to the shinycssloaders package and allows for custom css/html or gif/image file for the loading screen.
# Imports: glue, shiny
# LinkingTo: expint
# Suggests: shinycssloaders
# License: GPL (= 3)
# URL: https://github.com/emitanaka/shinycustomloader/
# BugReports: https://github.com/emitanaka/shinycustomloader/issues
# Encoding: UTF-8
# LazyData: yes
# Classification/MSC-2010: 62P05, 91B30, 62G32
# NeedsCompilation: yes
# Packaged: 2018-03-27
# Repository: CRAN
# Date/Publication: 2018-03-27
