{% set version = '1.1.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/rlang_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rlang/rlang_{{ version }}.tar.gz
  sha256: 5e5ec9a7796977216c39d94b1e342e08f0681746657067ba30de11b8fa8ada99

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: cli (>= 3.1.0), covr, crayon, fs, glue, knitr, magrittr, methods, pillar, rmarkdown, stats, testthat (>= 3.0.0), tibble, usethis, vctrs (>= 0.2.3), 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('rlang')"           # [not win]
    - "\"%R%\" -e \"library('rlang')\""  # [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://rlang.r-lib.org, https://github.com/r-lib/rlang
  license: MIT
  summary: A toolbox for working with base types, core R features like the condition system,
    and core 'Tidyverse' features like tidy evaluation.
  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: rlang
# Version: 1.1.1
# Title: Functions for Base Types and Core R and 'Tidyverse' Features
# Description: A toolbox for working with base types, core R features like the condition system, and core 'Tidyverse' features like tidy evaluation.
# Authors@R: c( person("Lionel", "Henry", ,"lionel@posit.co", c("aut", "cre")), person("Hadley", "Wickham", ,"hadley@posit.co", "aut"), person(given = "mikefc", email = "mikefc@coolbutuseless.com", role = "cph", comment = "Hash implementation based on Mike's xxhashlite"), person(given = "Yann", family = "Collet", role = "cph", comment = "Author of the embedded xxHash library"), person(given = "Posit, PBC", role = c("cph", "fnd")) )
# License: MIT + file LICENSE
# ByteCompile: true
# Biarch: true
# Depends: R (>= 3.5.0)
# Imports: utils
# Suggests: cli (>= 3.1.0), covr, crayon, fs, glue, knitr, magrittr, methods, pillar, rmarkdown, stats, testthat (>= 3.0.0), tibble, usethis, vctrs (>= 0.2.3), withr
# Enhances: winch
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# URL: https://rlang.r-lib.org, https://github.com/r-lib/rlang
# BugReports: https://github.com/r-lib/rlang/issues
# Config/testthat/edition: 3
# Config/Needs/website: dplyr, tidyverse/tidytemplate
# NeedsCompilation: yes
# Packaged: 2023-04-28 10:48:43 UTC; lionel
# Author: Lionel Henry [aut, cre], Hadley Wickham [aut], mikefc [cph] (Hash implementation based on Mike's xxhashlite), Yann Collet [cph] (Author of the embedded xxHash library), Posit, PBC [cph, fnd]
# Maintainer: Lionel Henry <lionel@posit.co>
# Repository: CRAN
# Date/Publication: 2023-04-28 22:30:03 UTC

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