{% set version = '0.2.8' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}
{% set cran_mirror = 'https://cran.r-project.org' %}

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

source:
  fn: infuser_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/infuser_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/infuser/infuser_{{ version }}.tar.gz
  sha256: f055f5855bf1b5cc1fc67e335b4c9546d8e97fb90fc743fcf6a3eb87e6d70f1f

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

requirements:
  build:
  host:
    - r-base
  run:
    - r-base

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

about:
  home: https://github.com/bart6114/infuser/
  license: MIT
  summary: This light-weight templating package provides flexible and  user-friendly value substitution
    in string templates or template files (e.g. SQL files) at runtime.
  license_family: MIT

extra:
  recipe-maintainers:
    - nick-youngblut
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
