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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/bootstrap_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/bootstrap/bootstrap_{{ version }}.tar.gz
  sha256: 5252fdfeb944cf1fae35016d35f9333b1bd1fc8c6d4a14e33901160e21968694

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

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

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

about:
  home: https://gitlab.com/scottkosty/bootstrap
  license: BSD_3_clause
  summary: Software (bootstrap, cross-validation, jackknife) and data for the book "An Introduction
    to the Bootstrap" by B. Efron and R. Tibshirani, 1993, Chapman and Hall. This package
    is primarily provided for projects already based on it, and for support of the book.
    New projects should preferentially use the recommended package "boot".
  license_family: BSD

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

# Package: bootstrap
# Version: 2019.6
# Date: 2019-06-15
# Title: Functions for the Book "An Introduction to the Bootstrap"
# Author: S original, from StatLib, by Rob Tibshirani.  R port by Friedrich Leisch.
# Maintainer: Scott Kostyshak <scott.kostyshak@gmail.com>
# Depends: stats, R (>= 2.10.0)
# LazyData: TRUE
# Description: Software (bootstrap, cross-validation, jackknife) and data for the book "An Introduction to the Bootstrap" by B. Efron and R. Tibshirani, 1993, Chapman and Hall. This package is primarily provided for projects already based on it, and for support of the book. New projects should preferentially use the recommended package "boot".
# License: BSD_3_clause + file LICENSE
# URL: https://gitlab.com/scottkosty/bootstrap
# BugReports: https://gitlab.com/scottkosty/bootstrap/issues
# NeedsCompilation: yes
# Packaged: 2019-06-15 21:33:55 UTC; scott
# Repository: CRAN
# Date/Publication: 2019-06-17 09:40:08 UTC
