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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/isoband_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/isoband/isoband_{{ version }}.tar.gz
  sha256: 46f53fa066f0966f02cb2bf050190c0d5e950dab2cdf565feb63fc092c886ba5

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-rcpp
    - r-testthat
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-testthat

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

about:
  home: https://github.com/wilkelab/isoband
  license: MIT
  summary: A fast C++ implementation to generate contour lines (isolines) and contour polygons (isobands) from regularly spaced grids containing elevation data.
  license_family: MIT
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/MIT
    - LICENSE

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

# Package: isoband
# Title: Generate Isolines and Isobands from Regularly Spaced Elevation Grids
# Version: 0.2.0
# Authors@R: person(given = "Claus", family = "Wilke", role = c("aut", "cre"), email = "wilke@austin.utexas.edu")
# Description: A fast C++ implementation to generate contour lines (isolines) and contour polygons (isobands) from regularly spaced grids containing elevation data.
# URL: https://github.com/wilkelab/isoband
# BugReports: https://github.com/wilkelab/isoband/issues
# License: MIT + file LICENSE
# Encoding: UTF-8
# LazyData: true
# LinkingTo: Rcpp, testthat
# Imports: Rcpp, grid, utils
# RoxygenNote: 6.1.1
# Suggests: covr, ggplot2, knitr, lwgeom, magick, microbenchmark, rmarkdown, sf, testthat
# SystemRequirements: C++11
# VignetteBuilder: knitr
# NeedsCompilation: yes
# Packaged: 2019-04-06 20:02:38 UTC; wilke
# Author: Claus Wilke [aut, cre]
# Maintainer: Claus Wilke <wilke@austin.utexas.edu>
# Repository: CRAN
# Date/Publication: 2019-04-06 22:20:03 UTC
