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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/tree_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/tree/tree_{{ version }}.tar.gz
  sha256: bd14d04d42fd5b3b2592498da5751219992f524b116037a9395cf90d03b54d60

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

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('fortran') }}        # [not win]
    - {{native}}toolchain        # [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('tree')"           # [not win]
    - "\"%R%\" -e \"library('tree')\""  # [win]

about:
  home: https://CRAN.R-project.org/package=tree
  license: GPL-2 | GPL-3
  summary: Classification and regression trees.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - dbast

# Package: tree
# Title: Classification and Regression Trees
# Version: 1.0-39
# Date: 2018-03-17
# Depends: R (>= 2.15.0), grDevices, graphics, stats
# Suggests: MASS
# Authors@R: person("Brian", "Ripley", role = c("aut", "cre"), email = "ripley@stats.ox.ac.uk")
# Description: Classification and regression trees.
# License: GPL-2 | GPL-3
# NeedsCompilation: yes
# Packaged: 2018-03-17 06:57:28 UTC; ripley
# Author: Brian Ripley [aut, cre]
# Maintainer: Brian Ripley <ripley@stats.ox.ac.uk>
# Repository: CRAN
# Date/Publication: 2018-03-17 17:33:11 UTC
