{% set version = "0.4.0" %}
{% 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: 7d06ca15239142a49e88bb3be494515abdd8c75f00f3f1b0ee7bccb55019bc2b

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

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-digest
    - r-fs
    - r-htmltools
    - r-rappdirs
    - r-rlang
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-r6
    - r-digest
    - r-fs
    - r-htmltools
    - r-rappdirs
    - r-rlang
test:
  commands:
    - $R -e "library('sass')"           # [not win]
    - "\"%R%\" -e \"library('sass')\""  # [win]

about:
  home: 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
    - src/libsass/LICENSE

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

# Type: Package
# Package: sass
# Version: 0.1.2.1
# 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", c("aut", "cre")), 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(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://github.com/rstudio/sass
# BugReports: https://github.com/rstudio/sass/issues
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 6.1.1
# SystemRequirements: GNU make
# Imports: digest
# Suggests: testthat, knitr, rmarkdown
# VignetteBuilder: knitr
# NeedsCompilation: yes
# Packaged: 2019-08-08 15:52:57 UTC; jcheng
# Author: Joe Cheng [aut, cre], Timothy Mastny [aut], Richard Iannone [aut] (<https://orcid.org/0000-0003-3925-190X>), Barret Schloerke [aut] (<https://orcid.org/0000-0001-9986-114X>), 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: Joe Cheng <joe@rstudio.com>
# Repository: CRAN
# Date/Publication: 2019-08-08 22:40:02 UTC
