{% set version = '2.1.4' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/readr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/readr/readr_{{ version }}.tar.gz
  sha256: 98144fa48c4fa61ef8c73ede8f87a2d2c5c44e9502b7875b266eb79984fbeb0d

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: covr, curl, datasets, knitr, rmarkdown, spelling, stringi, testthat (>= 3.1.2), tzdb (>= 0.1.1), waldo, withr, xml2
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
    - r-r6
    - r-cli >=3.2.0
    - r-clipr
    - r-cpp11
    - r-crayon
    - r-hms >=0.4.1
    - r-lifecycle >=0.2.0
    - r-rlang
    - r-tibble
    - r-tzdb >=0.1.1
    - r-vroom >=1.6.0

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-r6
    - r-cli >=3.2.0
    - r-clipr
    - r-cpp11
    - r-crayon
    - r-hms >=0.4.1
    - r-lifecycle >=0.2.0
    - r-rlang
    - r-tibble
    - r-tzdb >=0.1.1
    - r-vroom >=1.6.0

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('readr')"           # [not win]
    - "\"%R%\" -e \"library('readr')\""  # [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://readr.tidyverse.org, https://github.com/tidyverse/readr
  license: MIT
  summary: The goal of 'readr' is to provide a fast and friendly way to read rectangular data
    (like 'csv', 'tsv', and 'fwf').  It is designed to flexibly parse many types of
    data found in the wild, while still cleanly failing when data unexpectedly changes.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: readr
# Title: Read Rectangular Text Data
# Version: 2.1.4
# Authors@R: c( person("Hadley", "Wickham", , "hadley@posit.co", role = "aut"), person("Jim", "Hester", role = "aut"), person("Romain", "Francois", role = "ctb"), person("Jennifer", "Bryan", , "jenny@posit.co", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6983-2759")), person("Shelby", "Bearrows", role = "ctb"), person("Posit, PBC", role = c("cph", "fnd")), person("https://github.com/mandreyel/", role = "cph", comment = "mio library"), person("Jukka", "Jylanki", role = c("ctb", "cph"), comment = "grisu3 implementation"), person("Mikkel", "Jrgensen", role = c("ctb", "cph"), comment = "grisu3 implementation") )
# Description: The goal of 'readr' is to provide a fast and friendly way to read rectangular data (like 'csv', 'tsv', and 'fwf').  It is designed to flexibly parse many types of data found in the wild, while still cleanly failing when data unexpectedly changes.
# License: MIT + file LICENSE
# URL: https://readr.tidyverse.org, https://github.com/tidyverse/readr
# BugReports: https://github.com/tidyverse/readr/issues
# Depends: R (>= 3.5)
# Imports: cli (>= 3.2.0), clipr, crayon, hms (>= 0.4.1), lifecycle (>= 0.2.0), methods, R6, rlang, tibble, utils, vroom (>= 1.6.0)
# Suggests: covr, curl, datasets, knitr, rmarkdown, spelling, stringi, testthat (>= 3.1.2), tzdb (>= 0.1.1), waldo, withr, xml2
# LinkingTo: cpp11, tzdb (>= 0.1.1)
# VignetteBuilder: knitr
# Config/Needs/website: tidyverse, tidyverse/tidytemplate
# Config/testthat/edition: 3
# Config/testthat/parallel: false
# Encoding: UTF-8
# Language: en-US
# RoxygenNote: 7.2.3
# NeedsCompilation: yes
# Packaged: 2023-02-10 00:05:55 UTC; jenny
# Author: Hadley Wickham [aut], Jim Hester [aut], Romain Francois [ctb], Jennifer Bryan [aut, cre] (<https://orcid.org/0000-0002-6983-2759>), Shelby Bearrows [ctb], Posit, PBC [cph, fnd], https://github.com/mandreyel/ [cph] (mio library), Jukka Jylanki [ctb, cph] (grisu3 implementation), Mikkel Jrgensen [ctb, cph] (grisu3 implementation)
# Maintainer: Jennifer Bryan <jenny@posit.co>
# Repository: CRAN
# Date/Publication: 2023-02-10 09:20:02 UTC

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