{% set version = '1.0.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/lifecycle_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/lifecycle/lifecycle_{{ version }}.tar.gz
  sha256: 6459fdc3211585c0cdf120427579c12149b02161efe273a64b825c05e9aa69c2

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, crayon, knitr, lintr, rmarkdown, testthat (>= 3.0.1), tibble, tidyverse, tools, vctrs, withr
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-cli >=3.4.0
    - r-glue
    - r-rlang >=1.0.6

  run:
    - r-base
    - r-cli >=3.4.0
    - r-glue
    - r-rlang >=1.0.6

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('lifecycle')"           # [not win]
    - "\"%R%\" -e \"library('lifecycle')\""  # [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://lifecycle.r-lib.org/, https://github.com/r-lib/lifecycle
  license: MIT
  summary: Manage the life cycle of your exported functions with shared conventions, documentation
    badges, and user-friendly deprecation warnings.
  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: lifecycle
# Title: Manage the Life Cycle of your Package Functions
# Version: 1.0.3
# Authors@R: c( person("Lionel", "Henry", , "lionel@rstudio.com", role = c("aut", "cre")), person("Hadley", "Wickham", , "hadley@rstudio.com", role = "aut", comment = c(ORCID = "0000-0003-4757-117X")), person("RStudio", role = c("cph", "fnd")) )
# Description: Manage the life cycle of your exported functions with shared conventions, documentation badges, and user-friendly deprecation warnings.
# License: MIT + file LICENSE
# URL: https://lifecycle.r-lib.org/, https://github.com/r-lib/lifecycle
# BugReports: https://github.com/r-lib/lifecycle/issues
# Depends: R (>= 3.4)
# Imports: cli (>= 3.4.0), glue, rlang (>= 1.0.6)
# Suggests: covr, crayon, knitr, lintr, rmarkdown, testthat (>= 3.0.1), tibble, tidyverse, tools, vctrs, withr
# VignetteBuilder: knitr
# Config/testthat/edition: 3
# Config/Needs/website: tidyverse/tidytemplate
# Encoding: UTF-8
# RoxygenNote: 7.2.1
# NeedsCompilation: no
# Packaged: 2022-10-07 08:50:55 UTC; lionel
# Author: Lionel Henry [aut, cre], Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), RStudio [cph, fnd]
# Maintainer: Lionel Henry <lionel@rstudio.com>
# Repository: CRAN
# Date/Publication: 2022-10-07 09:50:02 UTC

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