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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/scattermore_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/scattermore/scattermore_{{ version }}.tar.gz
  sha256: f36280197b8476314d6ce81a51c4ae737180b180204043d2937bc25bf3a5dfa2

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-ggplot2
    - r-scales
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-ggplot2
    - r-scales

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

about:
  home: https://github.com/exaexa/scattermore
  license: GPL-3.0-or-later
  summary: C-based conversion of large scatterplot data to rasters. Speeds up plotting of data
    with millions of points.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

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

# Package: scattermore
# Title: Scatterplots with More Points
# Version: 0.7
# Authors@R: person(given = "Mirek", family = "Kratochvil", role = c("aut", "cre"), email = "exa.exa@gmail.com", comment = c(ORCID = "0000-0001-7356-4075"))
# Description: C-based conversion of large scatterplot data to rasters. Speeds up plotting of data with millions of points.
# URL: https://github.com/exaexa/scattermore
# Imports: ggplot2, scales, grid, grDevices, graphics
# License: GPL (>= 3)
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.1.1
# NeedsCompilation: yes
# Packaged: 2020-11-24 15:54:51 UTC; exa
# Author: Mirek Kratochvil [aut, cre] (<https://orcid.org/0000-0001-7356-4075>)
# Maintainer: Mirek Kratochvil <exa.exa@gmail.com>
# Repository: CRAN
# Date/Publication: 2020-11-24 16:30:02 UTC
