{% set version = '2.1' %}

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

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

source:
  fn: ascii_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/ascii_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/ascii/ascii_{{ version }}.tar.gz
  sha256: 17adf35c78effc46eac4a559b6917d46fdf1ceaf0bfec691955d2e32cf5daea5

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: http://eusebe.github.com/ascii/, http://github.com/eusebe/ascii/
  license: GPL (>= 2)
  summary: Coerce R object to asciidoc, txt2tags, restructuredText, org, textile or pandoc syntax.  Package
    comes with a set of drivers for Sweave.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

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