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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/wicket_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/wicket/wicket_{{ version }}.tar.gz
  sha256: ce76a4c8f79e7dfb9d8aadfa59b7f5cdb0de3dd9623b1426fd5caf6464fd3fd2

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-bh
    - r-bh 1.72  # [(r_base == "4.0") or win]
    - r-rcpp
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp

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

about:
  home: https://github.com/ropensci/wicket
  license: MIT
  summary: Utilities to generate bounding boxes from 'WKT' (Well-Known Text) objects and R data
    types, validate 'WKT' objects and convert object types from the 'sp' package into
    'WKT' representations.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

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

# Package: wicket
# Type: Package
# Title: Utilities to Handle WKT Spatial Data
# Version: 0.4.0
# Date: 2017-11-18
# Author: Oliver Keyes [aut, cre]
# Maintainer: Oliver Keyes <ironholds@gmail.com>
# Description: Utilities to generate bounding boxes from 'WKT' (Well-Known Text) objects and R data types, validate 'WKT' objects and convert object types from the 'sp' package into 'WKT' representations.
# License: MIT + file LICENSE
# LazyData: TRUE
# LinkingTo: Rcpp, BH
# Imports: Rcpp
# RoxygenNote: 6.0.1
# Suggests: testthat, knitr, rmarkdown
# VignetteBuilder: knitr
# URL: https://github.com/ropensci/wicket
# BugReports: https://github.com/ropensci/wicket/issues
# NeedsCompilation: yes
# Packaged: 2017-11-18 23:43:08 UTC; ironholds
# Repository: CRAN
# Date/Publication: 2017-11-19 17:20:10 UTC
