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

package:
  name: r-curl
  # Note that conda versions cannot contain -, so any -'s in the version have
  # been replaced with _'s.
  version: "2.3"

source:
  fn: curl_2.3.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/curl_2.3.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/curl/curl_2.3.tar.gz


  # You can add a hash for the file here, like md5 or sha1
  # md5: 49448ba4863157652311cc5ea4fea3ea
  # sha1: 3bcfbee008276084cbb37a2b453963c61176a322
  # patches:
   # List any patch files here
   # - fix.patch

build:
  # If this is a new build for the same version, increment the build
  # number. If you do not include this key, it defaults to 0.
  # number: 1

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: testthat (>= 1.0.0), knitr, jsonlite, rmarkdown, magrittr
requirements:
  build:
    - r-base
    - {{native}}curl
    - posix               # [win]
    - {{native}}toolchain # [win]
    - gcc                 # [not win]

  run:
    - r-base
    - {{native}}curl

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('curl')" # [not win]
    - "\"%R%\" -e \"library('curl')\"" # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/jeroenooms/curl#readme
  license: MIT + file LICENSE
  summary: The curl() and curl_download() functions provide highly configurable drop-in replacements
    for base url() and download.file() with better performance, support for encryption
    (https, ftps), gzip compression, authentication, and other 'libcurl' goodies. The
    core of the package implements a framework for performing fully customized requests
    where data can be processed either in memory, on disk, or streaming via the callback
    or connection interfaces. Some knowledge of 'libcurl' is recommended; for a more-user-friendly
    web client see the 'httr' package which builds on this package with http specific
    tools and logic.
  license_family: MIT

# The original CRAN metadata for this package was:

# Package: curl
# Type: Package
# Title: A Modern and Flexible Web Client for R
# Version: 2.3
# Authors@R: c( person("Jeroen", "Ooms", , "jeroen.ooms@stat.ucla.edu", role = c("cre", "aut")), person("Hadley", "Wickham", , "hadley@rstudio.com", role = "ctb"), person("RStudio", role = "cph") )
# Description: The curl() and curl_download() functions provide highly configurable drop-in replacements for base url() and download.file() with better performance, support for encryption (https, ftps), gzip compression, authentication, and other 'libcurl' goodies. The core of the package implements a framework for performing fully customized requests where data can be processed either in memory, on disk, or streaming via the callback or connection interfaces. Some knowledge of 'libcurl' is recommended; for a more-user-friendly web client see the 'httr' package which builds on this package with http specific tools and logic.
# License: MIT + file LICENSE
# SystemRequirements: libcurl: libcurl-devel (rpm) or libcurl4-openssl-dev (deb).
# URL: https://github.com/jeroenooms/curl#readme
# BugReports: https://github.com/jeroenooms/curl/issues
# Suggests: testthat (>= 1.0.0), knitr, jsonlite, rmarkdown, magrittr
# VignetteBuilder: knitr
# Depends: R (>= 3.0.0)
# LazyData: true
# RoxygenNote: 5.0.1.9000
# NeedsCompilation: yes
# Packaged: 2016-11-23 16:25:15 UTC; jeroen
# Author: Jeroen Ooms [cre, aut], Hadley Wickham [ctb], RStudio [cph]
# Maintainer: Jeroen Ooms <jeroen.ooms@stat.ucla.edu>
# Repository: CRAN
# Date/Publication: 2016-11-24 12:15:31

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
