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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/phylolm_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/phylolm/phylolm_{{ version }}.tar.gz
  sha256: d6fa45f58689cce9fe91519ab55a61c1e549e5a7f18b6989bf86234d483cff12

build:
  merge_build_host: True  # [win]
  skip: true  # [r_base == "3.6"]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

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

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

about:
  home: https://github.com/lamho86/phylolm
  license: GPL-2.0-or-later
  summary: Provides functions for fitting phylogenetic linear models and phylogenetic generalized
    linear models. The computation uses an algorithm that is linear in the number of
    tips in the tree. The package also provides functions for simulating continuous
    or binary traits along the tree. Other tools include functions to test the adequacy
    of a population tree.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'
    - LICENSE

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

# Package: phylolm
# Version: 2.6.2
# Date: 2020-06-18
# Title: Phylogenetic Linear Regression
# Authors@R: c(person("Lam Si Tung", "Ho", role=c("aut", "cre"), email="lamho86@gmail.com"), person("Cecile", "Ane", role="aut"), person("Robert", "Lachlan", role="ctb"), person("Kelsey", "Tarpinian",role="ctb"), person("Rachel", "Feldman",role="ctb"), person("Qing", "Yu",role="ctb"), person("Wouter", "van der Bijl",role="ctb"), person("Joan", "Maspons",role="ctb"), person("Rutger", "Vos",role="ctb"))
# Depends: R (>= 4.0), ape
# Imports: future.apply
# Description: Provides functions for fitting phylogenetic linear models and phylogenetic generalized linear models. The computation uses an algorithm that is linear in the number of tips in the tree. The package also provides functions for simulating continuous or binary traits along the tree. Other tools include functions to test the adequacy of a population tree.
# License: GPL (>= 2) | file LICENSE
# URL: https://github.com/lamho86/phylolm
# BugReports: https://github.com/lamho86/phylolm/issues
# Encoding: UTF-8
# Packaged: 2020-06-22 02:21:07 UTC; lamho
# NeedsCompilation: yes
# Suggests: testthat
# Author: Lam Si Tung Ho [aut, cre], Cecile Ane [aut], Robert Lachlan [ctb], Kelsey Tarpinian [ctb], Rachel Feldman [ctb], Qing Yu [ctb], Wouter van der Bijl [ctb], Joan Maspons [ctb], Rutger Vos [ctb]
# Maintainer: Lam Si Tung Ho <lamho86@gmail.com>
# Repository: CRAN
# Date/Publication: 2020-06-22 05:10:08 UTC
