{% set version = '0.1-10' %}

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

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

source:
  fn: NLP_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/NLP_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/NLP/NLP_{{ version }}.tar.gz
  sha256: c3a8e5dc473f2a8bb8fa2358d919e43fc026d2e4ebf54cf9bda0fe262ab409cb

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=NLP
  license: GPL-3
  summary: Basic classes and methods for Natural Language Processing.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
