{% set version = '1.4.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/readxl_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/readxl/readxl_{{ version }}.tar.gz
  sha256: 7efebbcdefeb8523633db62b3eeb6ea2e4e81e3d010d8b2adb134011c09a5948

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: covr, knitr, rmarkdown, testthat (>= 3.1.6), 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
    - r-cellranger
    - r-cpp11 >=0.4.0
    - r-progress
    - r-tibble >=2.0.1

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-cellranger
    - r-cpp11 >=0.4.0
    - r-progress
    - r-tibble >=2.0.1

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('readxl')"           # [not win]
    - "\"%R%\" -e \"library('readxl')\""  # [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://readxl.tidyverse.org, https://github.com/tidyverse/readxl
  license: MIT
  summary: Import excel files into R. Supports '.xls' via the embedded 'libxls' C library <https://github.com/libxls/libxls>
    and '.xlsx' via the embedded 'RapidXML' C++ library <https://rapidxml.sourceforge.net/>.
    Works on Windows, Mac and Linux without external dependencies.
  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: readxl
# Title: Read Excel Files
# Version: 1.4.3
# Authors@R: c( person("Hadley", "Wickham", , "hadley@posit.co", role = "aut", comment = c(ORCID = "0000-0003-4757-117X")), person("Jennifer", "Bryan", , "jenny@posit.co", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6983-2759")), person("Posit, PBC", role = c("cph", "fnd"), comment = "Copyright holder of all R code and all C/C++ code without explicit copyright attribution"), person("Marcin", "Kalicinski", role = c("ctb", "cph"), comment = "Author of included RapidXML code"), person("Komarov Valery", role = c("ctb", "cph"), comment = "Author of included libxls code"), person("Christophe Leitienne", role = c("ctb", "cph"), comment = "Author of included libxls code"), person("Bob Colbert", role = c("ctb", "cph"), comment = "Author of included libxls code"), person("David Hoerl", role = c("ctb", "cph"), comment = "Author of included libxls code"), person("Evan Miller", role = c("ctb", "cph"), comment = "Author of included libxls code") )
# Description: Import excel files into R. Supports '.xls' via the embedded 'libxls' C library <https://github.com/libxls/libxls> and '.xlsx' via the embedded 'RapidXML' C++ library <https://rapidxml.sourceforge.net/>. Works on Windows, Mac and Linux without external dependencies.
# License: MIT + file LICENSE
# URL: https://readxl.tidyverse.org, https://github.com/tidyverse/readxl
# BugReports: https://github.com/tidyverse/readxl/issues
# Depends: R (>= 3.6)
# Imports: cellranger, tibble (>= 2.0.1), utils
# Suggests: covr, knitr, rmarkdown, testthat (>= 3.1.6), withr
# LinkingTo: cpp11 (>= 0.4.0), progress
# VignetteBuilder: knitr
# Config/Needs/website: tidyverse/tidytemplate, tidyverse
# Config/testthat/edition: 3
# Encoding: UTF-8
# Note: libxls v1.6.2 (patched) 45abe77
# RoxygenNote: 7.2.3
# NeedsCompilation: yes
# Packaged: 2023-07-05 19:59:43 UTC; jenny
# Author: Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), Jennifer Bryan [aut, cre] (<https://orcid.org/0000-0002-6983-2759>), Posit, PBC [cph, fnd] (Copyright holder of all R code and all C/C++ code without explicit copyright attribution), Marcin Kalicinski [ctb, cph] (Author of included RapidXML code), Komarov Valery [ctb, cph] (Author of included libxls code), Christophe Leitienne [ctb, cph] (Author of included libxls code), Bob Colbert [ctb, cph] (Author of included libxls code), David Hoerl [ctb, cph] (Author of included libxls code), Evan Miller [ctb, cph] (Author of included libxls code)
# Maintainer: Jennifer Bryan <jenny@posit.co>
# Repository: CRAN
# Date/Publication: 2023-07-06 22:00:09 UTC

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