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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/wordcloud_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/wordcloud/wordcloud_{{ version }}.tar.gz
  sha256: 53716954430acd4f164bfd8eacd7068a908ee3358293ded6cd992d53b7f72649

build:
  merge_build_host: True  # [win]
  number: 1
  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-rcolorbrewer
    - r-rcpp >=0.9.4
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-rcolorbrewer
    - r-rcpp >=0.9.4

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

about:
  home: http://blog.fellstat.com/?cat=11 http://www.fellstat.com
  license: LGPL-2.1
  summary: Functionality to create pretty word clouds, visualize differences and similarity between
    documents, and avoid over-plotting in scatter plots with text.
  license_family: LGPL
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/LGPL-2.1'

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

# Package: wordcloud
# Type: Package
# Title: Word Clouds
# Version: 2.6
# Author: Ian Fellows
# Maintainer: Ian Fellows <ian@fellstat.com>
# Description: Functionality to create pretty word clouds, visualize differences and similarity between documents, and avoid over-plotting in scatter plots with text.
# License: LGPL-2.1
# LazyLoad: yes
# Depends: methods, RColorBrewer
# Imports: Rcpp (>= 0.9.4)
# Suggests: tm (>= 0.6), slam
# URL: http://blog.fellstat.com/?cat=11 http://www.fellstat.com
# LinkingTo: Rcpp
# NeedsCompilation: yes
# Packaged: 2018-08-24 18:57:30 UTC; ianfellows
# Repository: CRAN
# Date/Publication: 2018-08-24 19:20:03 UTC
