{% set version = '1.0' %}

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

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

source:
  fn: rapport_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/rapport_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/rapport/rapport_{{ version }}.tar.gz
  sha256: 5042c0af899825c00c01756d89a701192666bbdab99253e710bcfb9215573fc4

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

requirements:
  build:
    - r-base
    - r-pander
    - r-rapportools
    - r-stringr
    - r-yaml
    - pandoc

  run:
    - r-base
    - r-pander
    - r-rapportools
    - r-stringr
    - r-yaml
    - pandoc

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

about:
  home: http://rapport-package.info/
  license: AGPL-3
  summary: Facilitating the creation of reproducible statistical report templates. Once created,
    rapport templates can be exported to various external formats (HTML, LaTeX, PDF,
    ODT etc.) with pandoc as the converter backend.
  license_family: AGPL

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