{% set version = '1.0.1' %}

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

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

source:
  fn: knitrBootstrap_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/knitrBootstrap_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/knitrBootstrap/knitrBootstrap_{{ version }}.tar.gz
  sha256: d764b3c7c8650c966bb328eb04545488f1ace9ac4ef7de784ee9627bde212121

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

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

requirements:
  build:
    - r-base
    - r-knitr >=1.5.25
    - r-markdown
    - r-rmarkdown

  run:
    - r-base
    - r-knitr >=1.5.25
    - r-markdown
    - r-rmarkdown

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

about:
  home: https://github.com/jimhester/knitrBootstrap#readme
  license: MIT
  summary: A framework to create Bootstrap <http://getbootstrap.com/> HTML reports from 'knitr'
    'rmarkdown'.
  license_family: MIT

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