{% set version = "1.3.4" %}

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: fc6e9bf990e9532c4fcf1a3d2ce22d8cf12d25a95e4779adfa17713ed836fa68

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

requirements:
  build:
    - r-base
  run:
    - r-base

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
