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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/CoxBoost_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/CoxBoost/CoxBoost_{{ version }}.tar.gz
  sha256: 0f6a5f77629b50a0937688184feaa6ae98bd22e6453762971a8fe48f9855b3af

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
    - r-matrix
    - r-prodlim
    - r-survival
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-matrix
    - r-prodlim
    - r-survival

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

about:
  home: https://CRAN.R-project.org/package=CoxBoost
  license: GPL (>= 2)
  summary: This package provides routines for fitting Cox models by likelihood based boosting
    for a single endpoint or in presence of competing risks
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: CoxBoost
# Version: 1.4
# Title: Cox models by likelihood based boosting for a single survival endpoint or competing risks
# Author: Harald Binder <binderh@uni-mainz.de>
# Maintainer: Harald Binder <binderh@uni-mainz.de>
# Depends: R (>= 2.14.0), survival, Matrix, prodlim
# Suggests: parallel, snowfall
# Description: This package provides routines for fitting Cox models by likelihood based boosting for a single endpoint or in presence of competing risks
# License: GPL (>= 2)
# Packaged: 2013-05-09 21:07:32 UTC; harald
# NeedsCompilation: yes
# Repository: CRAN
# Date/Publication: 2013-05-10 10:18:16
