{% set version = '0.3-2' %}

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

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

source:
  fn: whisker_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/whisker_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/whisker/whisker_{{ version }}.tar.gz


  sha256: 484836510fcf123a66ddd13cdc8f32eb98e814cad82ed30c0294f55742b08c7c

build:
  number: 0

  rpaths:
    - lib/R/lib/
    - lib/
  skip: True  # [win32]

requirements:
  build:
    - r-base

  run:
    - r-base

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



about:
  home: http://github.com/edwindj/whisker
  license: GPL-3
  summary: logicless templating, reuse templates in many programming languages including R
  license_family: GPL3



extra:
  recipe-maintainers:
    - croth1
