{% set version = "1.3.2" %}

package:
  name: r-crayon
  version: {{ version }}

source:
  fn: crayon_{{ version }}.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/crayon_{{ version }}.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/crayon/crayon_{{ version }}.tar.gz
  sha256: 9a6b75d63c05fe64baf222f1921330ceb727924bcc5fc2753ff0528d42555e68

build:
  number: 0
  skip: True  # [win32]
  script: R CMD INSTALL --build .
  rpaths:
    - lib/R/lib/
    - lib/

requirements:  # [not win32]
  build:  # [not win32]
    - r-base  # [not win32]
  run:  # [not win32]
    - r-base  # [not win32]

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

about:
  home: https://github.com/gaborcsardi/crayon
  license: MIT
  license_file: LICENSE
  summary: "Colored terminal output on terminals that support 'ANSI' color and highlight codes.
    It also works in 'Emacs' 'ESS'. 'ANSI' color support is automatically detected.
    Colors and highlighting can be combined and nested. New styles can also be created
    easily. This package was inspired by the 'chalk' 'JavaScript' project."

extra:
  recipe-maintainers:
    - ocefpaf
