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

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

source:
  fn: dendroextras_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/dendroextras_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/dendroextras/dendroextras_{{ version }}.tar.gz
  sha256: 1d8708286a3e8c6008eb464a5eb57fffd842662c3f1630d7e66c59fd56666741

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

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=dendroextras
  license: GPL (>= 2)
  summary: Provides extra functions to manipulate dendrograms that build on the base functions
    provided by the 'stats' package. The main functionality it is designed to add is
    the ability to colour all the edges in an object of class 'dendrogram' according
    to cluster membership i.e. each subtree is coloured, not just the terminal leaves.
    In addition it provides some utility functions to cut 'dendrogram' and 'hclust'
    objects and to  set/get labels.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

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