{% set version = '1.5.2' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/crayon_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/crayon/crayon_{{ version }}.tar.gz
  sha256: 70a9a505b5b3c0ee6682ad8b965e28b7e24d9f942160d0a2bad18eec22b45a7a

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: mockery, rstudioapi, testthat, withr
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('crayon')"           # [not win]
    - "\"%R%\" -e \"library('crayon')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/r-lib/crayon#readme
  license: MIT
  summary: The crayon package is now superseded. Please use the 'cli' package for new projects.
    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.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - ocefpaf
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: crayon
# Title: Colored Terminal Output
# Version: 1.5.2
# Authors@R: c( person("Gabor", "Csardi", , "csardi.gabor@gmail.com", role = c("aut", "cre")), person( "Brodie", "Gaslam", email="brodie.gaslam@yahoo.com", role=c("ctb")) )
# Description: The crayon package is now superseded. Please use the 'cli' package for new projects. 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.
# License: MIT + file LICENSE
# URL: https://github.com/r-lib/crayon#readme
# BugReports: https://github.com/r-lib/crayon/issues
# Collate: 'aaa-rstudio-detect.R' 'aaaa-rematch2.R' 'aab-num-ansi-colors.R' 'aac-num-ansi-colors.R' 'ansi-256.r' 'ansi-palette.R' 'combine.r' 'string.r' 'utils.r' 'crayon-package.r' 'disposable.r' 'enc-utils.R' 'has_ansi.r' 'has_color.r' 'link.R' 'styles.r' 'machinery.r' 'parts.r' 'print.r' 'style-var.r' 'show.r' 'string_operations.r'
# Imports: grDevices, methods, utils
# Suggests: mockery, rstudioapi, testthat, withr
# RoxygenNote: 7.1.2
# Encoding: UTF-8
# NeedsCompilation: no
# Packaged: 2022-09-29 06:24:10 UTC; gaborcsardi
# Author: Gabor Csardi [aut, cre], Brodie Gaslam [ctb]
# Maintainer: Gabor Csardi <csardi.gabor@gmail.com>
# Repository: CRAN
# Date/Publication: 2022-09-29 16:20:24 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
