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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/TreeTools_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/TreeTools/TreeTools_{{ version }}.tar.gz
  sha256: 24960f2045ff30fe824158b035524b7a20f19c742d509d70b6c07e35b6165faf

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-r.cache
    - r-rcpp
    - r-rdpack >=0.7
    - r-ape >=5.6
    - r-bit64
    - r-colorspace
    - r-fastmatch >=1.1.3
    - r-lifecycle
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-r.cache
    - r-rcpp
    - r-rdpack >=0.7
    - r-ape >=5.6
    - r-bit64
    - r-colorspace
    - r-fastmatch >=1.1.3
    - r-lifecycle

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

about:
  home: https://ms609.github.io/TreeTools/, https://github.com/ms609/TreeTools/
  license: GPL-3.0-or-later
  summary: 'Efficient implementations of functions for the creation, modification and analysis of phylogenetic trees. Applications include: generation of trees with specified shapes; rooting of trees and extraction of subtrees; calculation and depiction of node support; calculation of ancestor-descendant relationships; import
    and export of trees from Newick, Nexus (Maddison et al. 1997) <doi:10.1093/sysbio/46.4.590>, and TNT <http://www.lillo.org.ar/phylogeny/tnt/> formats; and analysis of splits and cladistic information.'
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

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

# Package: TreeTools
# Title: Create, Modify and Analyse Phylogenetic Trees
# Version: 1.2.0
# Authors@R: c(person("Martin R.", 'Smith', email="martin.smith@durham.ac.uk", role=c("aut", "cre", "cph"), comment=c(ORCID = "0000-0001-5660-1727")), person(given = "Emmanuel", family="Paradis", role = c("cph"), comment = c(ORCID = "0000-0003-3092-2199")), person(given = "Klaus", family="Schliep", role = c("cph"), comment = c(ORCID = "0000-0003-2941-0161")) )
# License: GPL (>= 3)
# Copyright: Incorporates C/C++ code from: ape by Emmanuel Paradis; phangorn by Klaus Scheip <doi:10.1093/bioinformatics/btq706>
# Description: Efficient implementations of functions for the creation, modification and analysis of phylogenetic trees. Applications include: generation of trees with specified shapes; rooting of trees and extraction of subtrees; calculation and depiction of node support; calculation of ancestor-descendant relationships; import and export of trees from Newick, Nexus (Maddison et al. 1997) <doi:10.1093/sysbio/46.4.590>, and TNT <http://www.lillo.org.ar/phylogeny/tnt/> formats; and analysis of splits and cladistic information.
# URL: https://ms609.github.io/TreeTools/, https://github.com/ms609/TreeTools/
# BugReports: https://github.com/ms609/TreeTools/issues/
# SystemRequirements: C++11
# Depends: R (>= 3.4.0), ape (>= 5.0)
# Imports: bit64, colorspace, phangorn (>= 2.2.1), R.cache
# Suggests: knitr, Rcpp, Rdpack, rmarkdown, shiny, testthat
# RdMacros: Rdpack
# LazyData: true
# ByteCompile: true
# Encoding: UTF-8
# Language: en-GB
# LinkingTo: Rcpp
# VignetteBuilder: knitr
# RoxygenNote: 7.1.1
# NeedsCompilation: yes
# Packaged: 2020-08-03 10:15:20 UTC; ms609
# Author: Martin R. Smith [aut, cre, cph] (<https://orcid.org/0000-0001-5660-1727>), Emmanuel Paradis [cph] (<https://orcid.org/0000-0003-3092-2199>), Klaus Schliep [cph] (<https://orcid.org/0000-0003-2941-0161>)
# Maintainer: Martin R. Smith <martin.smith@durham.ac.uk>
# Repository: CRAN
# Date/Publication: 2020-08-03 15:30:22 UTC
