{% set version = '2.0.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/memoise_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/memoise/memoise_{{ version }}.tar.gz
  sha256: f85034ee98c8ca07fb3cd826142c1cd1e1e5747075a94c75a45783bbc4fe2deb

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: digest, aws.s3, covr, googleAuthR, googleCloudStorageR, httr, testthat
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-cachem
    - r-rlang >=0.4.10

  run:
    - r-base
    - r-cachem
    - r-rlang >=0.4.10

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('memoise')"           # [not win]
    - "\"%R%\" -e \"library('memoise')\""  # [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://memoise.r-lib.org, https://github.com/r-lib/memoise
  license: MIT
  summary: Cache the results of a function so that when you call it again with the same arguments
    it returns the previously computed value.
  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: memoise
# Title: 'Memoisation' of Functions
# Version: 2.0.1
# Authors@R: c(person(given = "Hadley", family = "Wickham", role = "aut", email = "hadley@rstudio.com"), person(given = "Jim", family = "Hester", role = "aut"), person(given = "Winston", family = "Chang", role = c("aut", "cre"), email = "winston@rstudio.com"), person(given = "Kirill", family = "Muller", role = "aut", email = "krlmlr+r@mailbox.org"), person(given = "Daniel", family = "Cook", role = "aut", email = "danielecook@gmail.com"), person(given = "Mark", family = "Edmondson", role = "ctb", email = "r@sunholo.com"))
# Description: Cache the results of a function so that when you call it again with the same arguments it returns the previously computed value.
# License: MIT + file LICENSE
# URL: https://memoise.r-lib.org, https://github.com/r-lib/memoise
# BugReports: https://github.com/r-lib/memoise/issues
# Imports: rlang (>= 0.4.10), cachem
# Suggests: digest, aws.s3, covr, googleAuthR, googleCloudStorageR, httr, testthat
# Encoding: UTF-8
# RoxygenNote: 7.1.2
# NeedsCompilation: no
# Packaged: 2021-11-24 21:24:50 UTC; jhester
# Author: Hadley Wickham [aut], Jim Hester [aut], Winston Chang [aut, cre], Kirill Muller [aut], Daniel Cook [aut], Mark Edmondson [ctb]
# Maintainer: Winston Chang <winston@rstudio.com>
# Repository: CRAN
# Date/Publication: 2021-11-26 16:11:10 UTC

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