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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/gridtext_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/gridtext/gridtext_{{ version }}.tar.gz
  sha256: 59cd6f3a655634a075a711ed3d169cc6de9d330e4c4be93c0bd9210416f761ba

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-rcurl
    - r-rcpp
    - r-jpeg
    - r-markdown
    - r-png
    - r-rlang
    - r-stringr
    - r-testthat
    - r-xml2
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-rcurl
    - r-rcpp
    - r-jpeg
    - r-markdown
    - r-png
    - r-rlang
    - r-stringr
    - r-testthat
    - r-xml2

test:
  commands:
    - $R -e "library('gridtext')"           # [not win]
    - "\"%R%\" -e \"library('gridtext')\""  # [win]

about:
  home: https://wilkelab.org/gridtext
  license: MIT
  summary: Provides support for rendering of formatted text using 'grid' graphics. Text can be
    formatted via a minimal subset of 'Markdown', 'HTML', and inline 'CSS' directives,
    and it can be rendered both with and without word wrap.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

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

# Package: gridtext
# Type: Package
# Title: Improved Text Rendering Support for 'Grid' Graphics
# Version: 0.1.0
# Authors@R: person( given = "Claus O.", family = "Wilke", role = c("aut", "cre"), email = "wilke@austin.utexas.edu", comment = c(ORCID = "0000-0002-7470-9261") )
# Description: Provides support for rendering of formatted text using 'grid' graphics. Text can be formatted via a minimal subset of 'Markdown', 'HTML', and inline 'CSS' directives, and it can be rendered both with and without word wrap.
# URL: https://wilkelab.org/gridtext
# BugReports: https://github.com/wilkelab/gridtext/issues
# License: MIT + file LICENSE
# Depends: R (>= 3.5)
# Imports: grid, grDevices, markdown, rlang, Rcpp, RCurl, png, jpeg, stringr, xml2
# Suggests: covr, knitr, rmarkdown, testthat, vdiffr
# LinkingTo: Rcpp, testthat
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.0.2
# SystemRequirements: C++11
# NeedsCompilation: yes
# Packaged: 2020-01-16 18:37:10 UTC; clauswilke
# Author: Claus O. Wilke [aut, cre] (<https://orcid.org/0000-0002-7470-9261>)
# Maintainer: Claus O. Wilke <wilke@austin.utexas.edu>
# Repository: CRAN
# Date/Publication: 2020-01-24 17:30:02 UTC
