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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/phyclust_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/phyclust/phyclust_{{ version }}.tar.gz
  sha256: f7645bfaecfe7a19d213a7d5c42c750f0ccbdd85549dae6e8ba9d2ba4bc2c93b

build:
  merge_build_host: True  # [win]
  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]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-ape
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-ape

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

about:
  home: https://snoweye.github.io/phyclust/
  license: GPL-2.0-or-later
  summary: Phylogenetic clustering (phyloclustering) is an evolutionary Continuous Time Markov
    Chain model-based approach to identify population structure from molecular data
    without assuming linkage equilibrium. The package phyclust (Chen 2011) provides
    a convenient implementation of phyloclustering for DNA and SNP data, capable of
    clustering individuals into subpopulations and identifying molecular sequences representative
    of those subpopulations. It is designed in C for performance, interfaced with R
    for visualization, and incorporates other popular open source programs including
    ms (Hudson 2002) <doi:10.1093/bioinformatics/18.2.337>, seq-gen (Rambaut and Grassly
    1997) <doi:10.1093/bioinformatics/13.3.235>, Hap-Clustering (Tzeng 2005) <doi:10.1002/gepi.20063>
    and PAML baseml (Yang 1997, 2007) <doi:10.1093/bioinformatics/13.5.555>, <doi:10.1093/molbev/msm088>,
    for simulating data, additional analyses, and searching the best tree. See the phyclust
    website for more information, documentations and examples.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: phyclust
# Version: 0.1-30
# Date: 2021-02-09
# Title: Phylogenetic Clustering (Phyloclustering)
# Authors@R: c(person("Wei-Chen", "Chen", role = c("aut", "cre"), email = "wccsnow@gmail.com"), person("Karin", "Dorman", role = "aut"), person("Yan-Han", "Chen", role = "ctb"))
# Depends: R (>= 3.0.0), ape
# LazyLoad: yes
# LazyData: yes
# Copyright: See phyclust/inst/Documents/ for files in src/msdir/, src/seq-gen/, src/paml_baseml, and R/ttzeng-*.r.
# Description: Phylogenetic clustering (phyloclustering) is an evolutionary Continuous Time Markov Chain model-based approach to identify population structure from molecular data without assuming linkage equilibrium. The package phyclust (Chen 2011) provides a convenient implementation of phyloclustering for DNA and SNP data, capable of clustering individuals into subpopulations and identifying molecular sequences representative of those subpopulations. It is designed in C for performance, interfaced with R for visualization, and incorporates other popular open source programs including ms (Hudson 2002) <doi:10.1093/bioinformatics/18.2.337>, seq-gen (Rambaut and Grassly 1997) <doi:10.1093/bioinformatics/13.3.235>, Hap-Clustering (Tzeng 2005) <doi:10.1002/gepi.20063> and PAML baseml (Yang 1997, 2007) <doi:10.1093/bioinformatics/13.5.555>, <doi:10.1093/molbev/msm088>, for simulating data, additional analyses, and searching the best tree. See the phyclust website for more information, documentations and examples.
# BugReports: https://github.com/snoweye/phyclust/issues
# License: GPL (>= 2)
# URL: https://snoweye.github.io/phyclust/
# NeedsCompilation: yes
# Maintainer: Wei-Chen Chen <wccsnow@gmail.com>
# Packaged: 2021-02-10 02:04:50 UTC; snoweye
# Author: Wei-Chen Chen [aut, cre], Karin Dorman [aut], Yan-Han Chen [ctb]
# Repository: CRAN
# Date/Publication: 2021-02-10 14:00:03 UTC
