{% set version = '3.6.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/cli_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/cli/cli_{{ version }}.tar.gz
  sha256: be3006cec7e67f9ae25e21b4658c4bec680038c2ef7467df5f14da3311a05e36

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

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

# Suggests: callr, covr, crayon, digest, glue (>= 1.6.0), grDevices, htmltools, htmlwidgets, knitr, methods, mockery, processx, ps (>= 1.3.4.9000), rlang (>= 1.0.2.9003), rmarkdown, rprojroot, rstudioapi, testthat, tibble, whoami, withr
requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base
    - {{native}}gcc-libs         # [win]

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('cli')"           # [not win]
    - "\"%R%\" -e \"library('cli')\""  # [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://cli.r-lib.org, https://github.com/r-lib/cli#readme
  license: MIT
  summary: 'A suite of tools to build attractive command line interfaces (''CLIs''), from semantic
    elements: headings, lists, alerts, paragraphs, etc. Supports custom themes via a
    ''CSS''-like language. It also contains a number of lower level ''CLI'' elements:
    rules, boxes, trees, and ''Unicode'' symbols with ''ASCII'' alternatives. It support
    ANSI colors and text styles as well.'
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: cli
# Title: Helpers for Developing Command Line Interfaces
# Version: 3.6.1
# Authors@R: c( person("Gabor", "Csardi", , "csardi.gabor@gmail.com", role = c("aut", "cre")), person("Hadley", "Wickham", role = "ctb"), person("Kirill", "Muller", role = "ctb"), person("RStudio", role = c("cph", "fnd")) )
# Description: A suite of tools to build attractive command line interfaces ('CLIs'), from semantic elements: headings, lists, alerts, paragraphs, etc. Supports custom themes via a 'CSS'-like language. It also contains a number of lower level 'CLI' elements: rules, boxes, trees, and 'Unicode' symbols with 'ASCII' alternatives. It support ANSI colors and text styles as well.
# License: MIT + file LICENSE
# URL: https://cli.r-lib.org, https://github.com/r-lib/cli#readme
# BugReports: https://github.com/r-lib/cli/issues
# Depends: R (>= 3.4)
# Imports: utils
# Suggests: callr, covr, crayon, digest, glue (>= 1.6.0), grDevices, htmltools, htmlwidgets, knitr, methods, mockery, processx, ps (>= 1.3.4.9000), rlang (>= 1.0.2.9003), rmarkdown, rprojroot, rstudioapi, testthat, tibble, whoami, withr
# Config/Needs/website: r-lib/asciicast, bench, brio, cpp11, decor, desc, fansi, prettyunits, sessioninfo, tidyverse/tidytemplate, usethis, vctrs
# Config/testthat/edition: 3
# Encoding: UTF-8
# RoxygenNote: 7.2.1.9000
# NeedsCompilation: yes
# Packaged: 2023-03-22 13:59:32 UTC; gaborcsardi
# Author: Gabor Csardi [aut, cre], Hadley Wickham [ctb], Kirill Muller [ctb], RStudio [cph, fnd]
# Maintainer: Gabor Csardi <csardi.gabor@gmail.com>
# Repository: CRAN
# Date/Publication: 2023-03-23 12:52:05 UTC

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