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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/osmdata_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/osmdata/osmdata_{{ version }}.tar.gz
  sha256: 98f3d3bdd70a0f5fb4dc7adc239e431d28bb2098144bb93e67d879b35495557b

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]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-rcpp >=0.12.4
    - r-curl
    - r-httr2
    - r-lubridate
    - r-magrittr
    - r-reproj
    - r-rvest
    - r-sp
    - r-tibble
    - r-xml2
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=0.12.4
    - r-curl
    - r-httr2
    - r-lubridate
    - r-magrittr
    - r-reproj
    - r-rvest
    - r-sp
    - r-tibble
    - r-xml2

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

about:
  home: https://docs.ropensci.org/osmdata (website) https://github.com/ropensci/osmdata (devel)
  license: GPL-3.0-only
  summary: Download and import of 'OpenStreetMap' ('OSM') data as 'sf' or 'sp' objects.  'OSM' data are extracted from the 'Overpass' web server and processed with very fast 'C++' routines for return to 'R'.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

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

# Package: osmdata
# Title: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects
# Version: 0.1.9
# Authors@R: c( person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre")), person("Bob", "Rudis", role = "aut"), person("Robin", "Lovelace", role = "aut"), person("Maelle", "Salmon", role = "aut"), person("Andrew", "Smith", role = "ctb"), person("James", "Smith", role = "ctb"), person("Andrea", "Gilardi", role = "ctb"), person("Enrico", "Spinielli", role = "ctb"), person("Anthony", "North", role = "ctb"), person("Martin", "Machyna", role = "ctb"), person("Marcin", "Kalicinski", role = c("ctb", "cph"), comment = "Author of included RapidXML code"), person("Finkelstein", "Noam", role = c("ctb", "cph"), comment = "Author of included stub.R code"), person("Bartnik", "Lukasz", role = c("ctb", "cph"), comment = "Author of included stub.R code") )
# Maintainer: Mark Padgham <mark.padgham@email.com>
# Description: Download and import of 'OpenStreetMap' ('OSM') data as 'sf' or 'sp' objects.  'OSM' data are extracted from the 'Overpass' web server (<https://overpass-api.de/>) and processed with very fast 'C++' routines for return to 'R'.
# License: GPL-3
# URL: https://docs.ropensci.org/osmdata/ (website) https://github.com/ropensci/osmdata/ (devel)
# BugReports: https://github.com/ropensci/osmdata/issues
# Depends: R (>= 3.2.4)
# Imports: curl, httr, jsonlite, lubridate, magrittr, methods, Rcpp (>= 0.12.4), reproj, rvest, sp, tibble, utils, xml2
# Suggests: knitr, markdown, raster, rmarkdown, sf, testthat
# LinkingTo: Rcpp
# VignetteBuilder: knitr
# Encoding: UTF-8
# NeedsCompilation: yes
# RoxygenNote: 7.1.2
# SystemRequirements: C++11
# X-schema.org-applicationCategory: Data Access
# X-schema.org-isPartOf: https://ropensci.org
# X-schema.org-keywords: open0street0map, openstreetmap, overpass0API, OSM
# Packaged: 2022-01-26 12:01:05 UTC; smexus
# Author: Mark Padgham [aut, cre], Bob Rudis [aut], Robin Lovelace [aut], Maelle Salmon [aut], Andrew Smith [ctb], James Smith [ctb], Andrea Gilardi [ctb], Enrico Spinielli [ctb], Anthony North [ctb], Martin Machyna [ctb], Marcin Kalicinski [ctb, cph] (Author of included RapidXML code), Finkelstein Noam [ctb, cph] (Author of included stub.R code), Bartnik Lukasz [ctb, cph] (Author of included stub.R code)
# Repository: CRAN
# Date/Publication: 2022-01-26 14:32:43 UTC
