{% set version = '0.5.2' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/fontawesome_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/fontawesome/fontawesome_{{ version }}.tar.gz
  sha256: da3de2a9717084d1400d48edd783f06c66b8c910ce9c8d753d1b7d99be1c5cc9

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, dplyr (>= 1.0.8), knitr (>= 1.31), testthat (>= 3.0.0), rsvg
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-htmltools >=0.5.1.1
    - r-rlang >=1.0.6

  run:
    - r-base
    - r-htmltools >=0.5.1.1
    - r-rlang >=1.0.6

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('fontawesome')"           # [not win]
    - "\"%R%\" -e \"library('fontawesome')\""  # [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/fontawesome, https://rstudio.github.io/fontawesome/
  license: MIT
  summary: Easily and flexibly insert 'Font Awesome' icons into 'R Markdown' documents and 'Shiny'
    apps. These icons can be inserted into HTML content through inline 'SVG' tags or
    'i' tags. There is also a utility function for exporting 'Font Awesome' icons as
    'PNG' images for those situations where raster graphics are needed.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

# The original CRAN metadata for this package was:

# Type: Package
# Package: fontawesome
# Version: 0.5.2
# Title: Easily Work with 'Font Awesome' Icons
# Description: Easily and flexibly insert 'Font Awesome' icons into 'R Markdown' documents and 'Shiny' apps. These icons can be inserted into HTML content through inline 'SVG' tags or 'i' tags. There is also a utility function for exporting 'Font Awesome' icons as 'PNG' images for those situations where raster graphics are needed.
# Authors@R: c( person("Richard", "Iannone", , "rich@posit.co", c("aut", "cre"), comment = c(ORCID = "0000-0003-3925-190X")), person("Christophe", "Dervieux", , "cderv@posit.co", role = "ctb", comment = c(ORCID = "0000-0003-4474-2498")), person("Winston", "Chang", , "winston@posit.co", role = "ctb"), person("Dave", "Gandy", role = c("ctb", "cph"), comment = "Font-Awesome font"), person("Posit Software, PBC", role = c("cph", "fnd")) )
# License: MIT + file LICENSE
# URL: https://github.com/rstudio/fontawesome, https://rstudio.github.io/fontawesome/
# BugReports: https://github.com/rstudio/fontawesome/issues
# Encoding: UTF-8
# ByteCompile: true
# RoxygenNote: 7.2.3
# Depends: R (>= 3.3.0)
# Imports: rlang (>= 1.0.6), htmltools (>= 0.5.1.1)
# Suggests: covr, dplyr (>= 1.0.8), knitr (>= 1.31), testthat (>= 3.0.0), rsvg
# Config/testthat/edition: 3
# NeedsCompilation: no
# Packaged: 2023-08-19 02:32:12 UTC; rich
# Author: Richard Iannone [aut, cre] (<https://orcid.org/0000-0003-3925-190X>), Christophe Dervieux [ctb] (<https://orcid.org/0000-0003-4474-2498>), Winston Chang [ctb], Dave Gandy [ctb, cph] (Font-Awesome font), Posit Software, PBC [cph, fnd]
# Maintainer: Richard Iannone <rich@posit.co>
# Repository: CRAN
# Date/Publication: 2023-08-19 04:52:40 UTC

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