{% set version = '0.5.6.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/htmltools_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/htmltools/htmltools_{{ version }}.tar.gz
  sha256: 09b84ef819d03ba818c7d54a99b5b8b029e91370fd72b3410b5048f0f644a04e

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: markdown, testthat, withr, Cairo, ragg, shiny
requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-base64enc
    - r-digest
    - r-ellipsis
    - r-fastmap >=1.1.0
    - r-rlang >=0.4.12

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-base64enc
    - r-digest
    - r-ellipsis
    - r-fastmap >=1.1.0
    - r-rlang >=0.4.12

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('htmltools')"           # [not win]
    - "\"%R%\" -e \"library('htmltools')\""  # [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://github.com/rstudio/htmltools, https://rstudio.github.io/htmltools/
  license: GPL-2
  summary: Tools for HTML generation and output.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - conda-forge/r

# The original CRAN metadata for this package was:

# Package: htmltools
# Type: Package
# Title: Tools for HTML
# Version: 0.5.6.1
# Authors@R: c( person("Joe", "Cheng", role = "aut", email = "joe@posit.co"), person("Carson", "Sievert", role = c("aut", "cre"), email = "carson@posit.co", comment = c(ORCID = "0000-0002-4958-2844")), person("Barret", "Schloerke", role = "aut", email = "barret@posit.co", comment = c(ORCID = "0000-0001-9986-114X")), person("Winston", "Chang", role = "aut", email = "winston@posit.co", comment = c(ORCID = "0000-0002-1576-2126")), person("Yihui", "Xie", role = "aut", email = "yihui@posit.co"), person("Jeff", "Allen", role = "aut"), person("Posit Software, PBC", role = c("cph", "fnd")) )
# Description: Tools for HTML generation and output.
# Depends: R (>= 2.14.1)
# Imports: utils, digest, grDevices, base64enc, rlang (>= 0.4.12), fastmap (>= 1.1.0), ellipsis
# Suggests: markdown, testthat, withr, Cairo, ragg, shiny
# Enhances: knitr
# License: GPL (>= 2)
# URL: https://github.com/rstudio/htmltools, https://rstudio.github.io/htmltools/
# BugReports: https://github.com/rstudio/htmltools/issues
# RoxygenNote: 7.2.3
# Encoding: UTF-8
# Collate: 'colors.R' 'fill.R' 'html_dependency.R' 'html_escape.R' 'html_print.R' 'htmltools-package.R' 'images.R' 'known_tags.R' 'selector.R' 'staticimports.R' 'tag_query.R' 'utils.R' 'tags.R' 'template.R'
# Config/Needs/check: knitr
# Config/Needs/website: rstudio/quillt, bench
# NeedsCompilation: yes
# Packaged: 2023-10-06 15:29:21 UTC; cpsievert
# Author: Joe Cheng [aut], Carson Sievert [aut, cre] (<https://orcid.org/0000-0002-4958-2844>), Barret Schloerke [aut] (<https://orcid.org/0000-0001-9986-114X>), Winston Chang [aut] (<https://orcid.org/0000-0002-1576-2126>), Yihui Xie [aut], Jeff Allen [aut], Posit Software, PBC [cph, fnd]
# Maintainer: Carson Sievert <carson@posit.co>
# Repository: CRAN
# Date/Publication: 2023-10-06 20:40:06 UTC

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