{% set version = '0.4.7' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/sass_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/sass/sass_{{ version }}.tar.gz
  sha256: 717a08b63615a4fd9e494f775c33f0f965db83677cf1cc37849afc3da1c5e9ee

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: testthat, knitr, rmarkdown, withr, shiny, curl
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-r6
    - r-fs >=1.2.4
    - r-htmltools >=0.5.1
    - r-rappdirs
    - r-rlang >=0.4.10

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-r6
    - r-fs >=1.2.4
    - r-htmltools >=0.5.1
    - r-rappdirs
    - r-rlang >=0.4.10

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('sass')"           # [not win]
    - "\"%R%\" -e \"library('sass')\""  # [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/sass/, https://github.com/rstudio/sass
  license: MIT
  summary: An 'SCSS' compiler, powered by the 'LibSass' library. With this, R developers can
    use variables, inheritance, and functions to generate dynamic style sheets. The
    package uses the 'Sass CSS' extension language, which is stable, powerful, and CSS
    compatible.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Type: Package
# Package: sass
# Version: 0.4.7
# Title: Syntactically Awesome Style Sheets ('Sass')
# Description: An 'SCSS' compiler, powered by the 'LibSass' library. With this, R developers can use variables, inheritance, and functions to generate dynamic style sheets. The package uses the 'Sass CSS' extension language, which is stable, powerful, and CSS compatible.
# Authors@R: c( person("Joe", "Cheng", , "joe@rstudio.com", "aut"), person("Timothy", "Mastny", , "tim.mastny@gmail.com", "aut"), person("Richard", "Iannone", , "rich@rstudio.com", "aut", comment = c(ORCID = "0000-0003-3925-190X")), person("Barret", "Schloerke", , "barret@rstudio.com", "aut", comment = c(ORCID = "0000-0001-9986-114X")), person("Carson", "Sievert", , "carson@rstudio.com", c("aut", "cre"), comment = c(ORCID = "0000-0002-4958-2844")), person("Christophe", "Dervieux", , "cderv@rstudio.com", c("ctb"), comment = c(ORCID = "0000-0003-4474-2498")), person(family = "RStudio", role = c("cph", "fnd")), person(family = "Sass Open Source Foundation", role = c("ctb", "cph"), comment = "LibSass library"), person("Greter", "Marcel", role = c("ctb", "cph"), comment = "LibSass library"), person("Mifsud", "Michael", role = c("ctb", "cph"), comment = "LibSass library"), person("Hampton", "Catlin", role = c("ctb", "cph"), comment = "LibSass library"), person("Natalie", "Weizenbaum", role = c("ctb", "cph"), comment = "LibSass library"), person("Chris", "Eppstein", role = c("ctb", "cph"), comment = "LibSass library"), person("Adams", "Joseph", role = c("ctb", "cph"), comment = "json.cpp"), person("Trifunovic", "Nemanja", role = c("ctb", "cph"), comment = "utf8.h") )
# License: MIT + file LICENSE
# URL: https://rstudio.github.io/sass/, https://github.com/rstudio/sass
# BugReports: https://github.com/rstudio/sass/issues
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# SystemRequirements: GNU make
# Imports: fs (>= 1.2.4), rlang (>= 0.4.10), htmltools (>= 0.5.1), R6, rappdirs
# Suggests: testthat, knitr, rmarkdown, withr, shiny, curl
# VignetteBuilder: knitr
# Config/testthat/edition: 3
# NeedsCompilation: yes
# Packaged: 2023-07-14 14:57:43 UTC; cpsievert
# Author: Joe Cheng [aut], Timothy Mastny [aut], Richard Iannone [aut] (<https://orcid.org/0000-0003-3925-190X>), Barret Schloerke [aut] (<https://orcid.org/0000-0001-9986-114X>), Carson Sievert [aut, cre] (<https://orcid.org/0000-0002-4958-2844>), Christophe Dervieux [ctb] (<https://orcid.org/0000-0003-4474-2498>), RStudio [cph, fnd], Sass Open Source Foundation [ctb, cph] (LibSass library), Greter Marcel [ctb, cph] (LibSass library), Mifsud Michael [ctb, cph] (LibSass library), Hampton Catlin [ctb, cph] (LibSass library), Natalie Weizenbaum [ctb, cph] (LibSass library), Chris Eppstein [ctb, cph] (LibSass library), Adams Joseph [ctb, cph] (json.cpp), Trifunovic Nemanja [ctb, cph] (utf8.h)
# Maintainer: Carson Sievert <carson@rstudio.com>
# Repository: CRAN
# Date/Publication: 2023-07-15 06:20:02 UTC

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