{% set version = '2013.9.3' %}

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

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

source:
  fn: inlinedocs_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/inlinedocs_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/inlinedocs/inlinedocs_{{ version }}.tar.gz
  sha256: 599135152779b26864c258e8d10144462a885ddfb5bbf2c376940f71d236738f

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: http://inlinedocs.r-forge.r-project.org
  license: GPL-2 | GPL-3
  summary: Generates Rd files from R source code with comments. The main features of the default
    syntax are that (1) docs are defined in comments near the relevant code, (2) function
    argument names are not repeated in comments, and (3) examples are defined in R code,
    not comments. It is also easy to define a new syntax.
  license_family: GPL3

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