{% set version = '0.1.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/generics_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/generics/generics_{{ version }}.tar.gz
  sha256: 75046163bfa8b8a4f4214c1b689e796207f6447182f2e5062cf570302387d053

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, pkgload, testthat (>= 3.0.0), tibble, withr
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('generics')"           # [not win]
    - "\"%R%\" -e \"library('generics')\""  # [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://generics.r-lib.org, https://github.com/r-lib/generics
  license: MIT
  summary: In order to reduce potential package dependencies and conflicts, generics provides
    a number of commonly used S3 generics.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: generics
# Title: Common S3 Generics not Provided by Base R Methods Related to Model Fitting
# Version: 0.1.3
# Authors@R: c( person("Hadley", "Wickham", , "hadley@rstudio.com", role = c("aut", "cre")), person("Max", "Kuhn", , "max@rstudio.com", role = "aut"), person("Davis", "Vaughan", , "davis@rstudio.com", role = "aut"), person("RStudio", role = "cph") )
# Description: In order to reduce potential package dependencies and conflicts, generics provides a number of commonly used S3 generics.
# License: MIT + file LICENSE
# URL: https://generics.r-lib.org, https://github.com/r-lib/generics
# BugReports: https://github.com/r-lib/generics/issues
# Depends: R (>= 3.2)
# Imports: methods
# Suggests: covr, pkgload, testthat (>= 3.0.0), tibble, withr
# Config/Needs/website: tidyverse/tidytemplate
# Config/testthat/edition: 3
# Encoding: UTF-8
# RoxygenNote: 7.2.0
# NeedsCompilation: no
# Packaged: 2022-07-05 14:52:13 UTC; davis
# Author: Hadley Wickham [aut, cre], Max Kuhn [aut], Davis Vaughan [aut], RStudio [cph]
# Maintainer: Hadley Wickham <hadley@rstudio.com>
# Repository: CRAN
# Date/Publication: 2022-07-05 19:40:02 UTC

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