{% set version = '1.5.0' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/stringr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/stringr/stringr_{{ version }}.tar.gz
  sha256: 52b159d7700a139111b4caf939e7c9c6ab3e01185181400d70a74c552826633a

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: covr, htmltools, htmlwidgets, knitr, rmarkdown, testthat (>= 3.0.0)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-cli
    - r-glue >=1.6.1
    - r-lifecycle >=1.0.3
    - r-magrittr
    - r-rlang >=1.0.0
    - r-stringi >=1.5.3
    - r-vctrs

  run:
    - r-base
    - r-cli
    - r-glue >=1.6.1
    - r-lifecycle >=1.0.3
    - r-magrittr
    - r-rlang >=1.0.0
    - r-stringi >=1.5.3
    - r-vctrs

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('stringr')"           # [not win]
    - "\"%R%\" -e \"library('stringr')\""  # [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://stringr.tidyverse.org, https://github.com/tidyverse/stringr
  license: MIT
  summary: A consistent, simple and easy to use set of wrappers around the fantastic 'stringi'
    package. All function and argument names (and positions) are consistent, all functions
    deal with "NA"'s and zero length vectors in the same way, and the output from one
    function is easy to feed into the input of another.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - ocefpaf
    - jdblischak
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: stringr
# Title: Simple, Consistent Wrappers for Common String Operations
# Version: 1.5.0
# Authors@R: c(person(given = "Hadley", family = "Wickham", role = c("aut", "cre", "cph"), email = "hadley@rstudio.com"), person(given = "RStudio", role = c("cph", "fnd")))
# Description: A consistent, simple and easy to use set of wrappers around the fantastic 'stringi' package. All function and argument names (and positions) are consistent, all functions deal with "NA"'s and zero length vectors in the same way, and the output from one function is easy to feed into the input of another.
# License: MIT + file LICENSE
# URL: https://stringr.tidyverse.org, https://github.com/tidyverse/stringr
# BugReports: https://github.com/tidyverse/stringr/issues
# Depends: R (>= 3.3)
# Imports: cli, glue (>= 1.6.1), lifecycle (>= 1.0.3), magrittr, rlang (>= 1.0.0), stringi (>= 1.5.3), vctrs
# Suggests: covr, htmltools, htmlwidgets, knitr, rmarkdown, testthat (>= 3.0.0)
# VignetteBuilder: knitr
# Config/Needs/website: tidyverse/tidytemplate
# Config/testthat/edition: 3
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.2.1
# NeedsCompilation: no
# Packaged: 2022-12-01 20:53:42 UTC; hadleywickham
# Author: Hadley Wickham [aut, cre, cph], RStudio [cph, fnd]
# Maintainer: Hadley Wickham <hadley@rstudio.com>
# Repository: CRAN
# Date/Publication: 2022-12-02 10:20:02 UTC

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