{% set version = '0.5.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/bslib_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/bslib/bslib_{{ version }}.tar.gz
  sha256: b175612322e3ba929cf67a9261dd253346a981ce15bbb63d4a6874f54d5ef00e

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: bsicons, curl, fontawesome, ggplot2, knitr, magrittr, rappdirs, rmarkdown (>= 2.7), shiny (>= 1.6.0), testthat, thematic, withr
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-base64enc
    - r-cachem
    - r-htmltools >=0.5.4
    - r-jquerylib >=0.1.3
    - r-jsonlite
    - r-memoise >=2.0.1
    - r-mime
    - r-rlang
    - r-sass >=0.4.0

  run:
    - r-base
    - r-base64enc
    - r-cachem
    - r-htmltools >=0.5.4
    - r-jquerylib >=0.1.3
    - r-jsonlite
    - r-memoise >=2.0.1
    - r-mime
    - r-rlang
    - r-sass >=0.4.0

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('bslib')"           # [not win]
    - "\"%R%\" -e \"library('bslib')\""  # [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://rstudio.github.io/bslib/, https://github.com/rstudio/bslib
  license: MIT
  summary: Simplifies custom 'CSS' styling of both 'shiny' and 'rmarkdown' via 'Bootstrap' 'Sass'.
    Supports 'Bootstrap' 3, 4 and 5 as well as their various 'Bootswatch' themes. An
    interactive widget is also provided for previewing themes in real time.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

# The original CRAN metadata for this package was:

# Package: bslib
# Title: Custom 'Bootstrap' 'Sass' Themes for 'shiny' and 'rmarkdown'
# Version: 0.5.1
# Authors@R: c( person("Carson", "Sievert", role = c("aut", "cre"), email = "carson@posit.co", comment = c(ORCID = "0000-0002-4958-2844")), person("Joe", "Cheng", role = "aut", email = "joe@posit.co"), person("Garrick", "Aden-Buie", role = "aut", email = "garrick@posit.co", comment = c(ORCID = "0000-0002-7111-0077")), person("Posit Software, PBC", role = c("cph", "fnd")), person(family = "Bootstrap contributors", role = "ctb", comment = "Bootstrap library"), person(family = "Twitter, Inc", role = "cph", comment = "Bootstrap library"), person("Javi", "Aguilar", role = c("ctb", "cph"), comment = "Bootstrap colorpicker library"), person("Thomas", "Park", role = c("ctb", "cph"), comment = "Bootswatch library"), person(family = "PayPal", role = c("ctb", "cph"), comment = "Bootstrap accessibility plugin") )
# Description: Simplifies custom 'CSS' styling of both 'shiny' and 'rmarkdown' via 'Bootstrap' 'Sass'. Supports 'Bootstrap' 3, 4 and 5 as well as their various 'Bootswatch' themes. An interactive widget is also provided for previewing themes in real time.
# License: MIT + file LICENSE
# URL: https://rstudio.github.io/bslib/, https://github.com/rstudio/bslib
# BugReports: https://github.com/rstudio/bslib/issues
# Depends: R (>= 2.10)
# Imports: base64enc, cachem, grDevices, htmltools (>= 0.5.4), jquerylib (>= 0.1.3), jsonlite, memoise (>= 2.0.1), mime, rlang, sass (>= 0.4.0)
# Suggests: bsicons, curl, fontawesome, ggplot2, knitr, magrittr, rappdirs, rmarkdown (>= 2.7), shiny (>= 1.6.0), testthat, thematic, withr
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# Collate: 'accordion.R' 'breakpoints.R' 'bs-current-theme.R' 'bs-dependencies.R' 'bs-global.R' 'bs-remove.R' 'bs-theme-layers.R' 'bs-theme-preset-bootswatch.R' 'bs-theme-preset-builtin.R' 'bs-theme-preset.R' 'utils.R' 'bs-theme-preview.R' 'bs-theme-update.R' 'bs-theme.R' 'bslib-package.R' 'card.R' 'deprecated.R' 'files.R' 'fill.R' 'imports.R' 'input-switch.R' 'layout.R' 'nav-items.R' 'nav-update.R' 'navs-legacy.R' 'navs.R' 'onLoad.R' 'page.R' 'popover.R' 'precompiled.R' 'print.R' 'shiny-devmode.R' 'sidebar.R' 'staticimports.R' 'tooltip.R' 'utils-deps.R' 'utils-shiny.R' 'utils-tags.R' 'value-box.R' 'version-default.R' 'versions.R'
# Config/testthat/edition: 3
# Config/Needs/routine: chromote, desc, renv
# Config/Needs/website: brio, crosstalk, dplyr, DT, ggplot2, glue, htmlwidgets, leaflet, lorem, palmerpenguins, plotly, purrr, rprojroot, rstudio/htmltools, scales, stringr, tidyr, webshot2
# Config/Needs/deploy: BH, cpp11, dplyr, DT, ggplot2, ggridges, gt, hexbin, histoslider, lattice, leaflet, lubridate, modelr, nycflights13, plotly, reactable, reshape2, rprojroot, rsconnect, scales
# NeedsCompilation: no
# Packaged: 2023-08-11 15:31:21 UTC; cpsievert
# Author: Carson Sievert [aut, cre] (<https://orcid.org/0000-0002-4958-2844>), Joe Cheng [aut], Garrick Aden-Buie [aut] (<https://orcid.org/0000-0002-7111-0077>), Posit Software, PBC [cph, fnd], Bootstrap contributors [ctb] (Bootstrap library), Twitter, Inc [cph] (Bootstrap library), Javi Aguilar [ctb, cph] (Bootstrap colorpicker library), Thomas Park [ctb, cph] (Bootswatch library), PayPal [ctb, cph] (Bootstrap accessibility plugin)
# Maintainer: Carson Sievert <carson@posit.co>
# Repository: CRAN
# Date/Publication: 2023-08-11 16:53:52 UTC

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