{% set version = '2.0-0' %}

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

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

source:
  fn: pvclust_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/pvclust_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/pvclust/pvclust_{{ version }}.tar.gz
  sha256: 1a4615214992307fd7c786cf4607a3ae2af5c0d4067f5053e1c195798a70d741

build:
  number: 1
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: http://www.sigmath.es.osaka-u.ac.jp/shimo-lab/prog/pvclust/
  license: GPL (>= 2)
  summary: An implementation of multiscale bootstrap resampling for assessing the uncertainty
    in hierarchical cluster analysis. It provides AU (approximately unbiased) p-value
    as well as BP (bootstrap probability) value for each cluster in a dendrogram.
  license_family: GPL
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'   # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'   # [win]

extra:
  recipe-maintainers:
    - dpryan79
    - sebastian-luna-valero
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
