{% set version = '0.6.4' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/vctrs_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/vctrs/vctrs_{{ version }}.tar.gz
  sha256: 8a80192356e724d21bd89a0ce3e5835856fd5bb1651e7fc205c6fee58fd001c8

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: bit64, covr, crayon, dplyr (>= 0.8.5), generics, knitr, pillar (>= 1.4.4), pkgdown (>= 2.0.1), rmarkdown, testthat (>= 3.0.0), tibble (>= 3.1.3), waldo (>= 0.2.0), withr, xml2, zeallot
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-cli >=3.4.0
    - r-glue
    - r-lifecycle >=1.0.3
    - r-rlang >=1.1.0

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-cli >=3.4.0
    - r-glue
    - r-lifecycle >=1.0.3
    - r-rlang >=1.1.0

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('vctrs')"           # [not win]
    - "\"%R%\" -e \"library('vctrs')\""  # [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://vctrs.r-lib.org/, https://github.com/r-lib/vctrs
  license: MIT
  summary: Defines new notions of prototype and size that are used to provide tools for consistent
    and well-founded type-coercion and size-recycling, and are in turn connected to
    ideas of type- and size-stability useful for analysing function interfaces.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: vctrs
# Title: Vector Helpers
# Version: 0.6.4
# Authors@R: c( person("Hadley", "Wickham", , "hadley@posit.co", role = "aut"), person("Lionel", "Henry", , "lionel@posit.co", role = "aut"), person("Davis", "Vaughan", , "davis@posit.co", role = c("aut", "cre")), person("data.table team", role = "cph", comment = "Radix sort based on data.table's forder() and their contribution to R's order()"), person("Posit Software, PBC", role = c("cph", "fnd")) )
# Description: Defines new notions of prototype and size that are used to provide tools for consistent and well-founded type-coercion and size-recycling, and are in turn connected to ideas of type- and size-stability useful for analysing function interfaces.
# License: MIT + file LICENSE
# URL: https://vctrs.r-lib.org/, https://github.com/r-lib/vctrs
# BugReports: https://github.com/r-lib/vctrs/issues
# Depends: R (>= 3.5.0)
# Imports: cli (>= 3.4.0), glue, lifecycle (>= 1.0.3), rlang (>= 1.1.0)
# Suggests: bit64, covr, crayon, dplyr (>= 0.8.5), generics, knitr, pillar (>= 1.4.4), pkgdown (>= 2.0.1), rmarkdown, testthat (>= 3.0.0), tibble (>= 3.1.3), waldo (>= 0.2.0), withr, xml2, zeallot
# VignetteBuilder: knitr
# Config/Needs/website: tidyverse/tidytemplate
# Config/testthat/edition: 3
# Encoding: UTF-8
# Language: en-GB
# RoxygenNote: 7.2.3
# NeedsCompilation: yes
# Packaged: 2023-10-12 15:19:07 UTC; davis
# Author: Hadley Wickham [aut], Lionel Henry [aut], Davis Vaughan [aut, cre], data.table team [cph] (Radix sort based on data.table's forder() and their contribution to R's order()), Posit Software, PBC [cph, fnd]
# Maintainer: Davis Vaughan <davis@posit.co>
# Repository: CRAN
# Date/Publication: 2023-10-12 22:20:02 UTC

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