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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/pdc_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/pdc/pdc_{{ version }}.tar.gz
  sha256: 6cfb8a3f2aeb6f07b0498f66141089e1fbb54ebd5b3a0fd2a119031fd5b10314

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]
  host:
    - r-base
  run:
    - r-base
    - {{native}}gcc-libs         # [win]

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

about:
  home: https://CRAN.R-project.org/package=pdc
  license: GPL (>= 3)
  summary: Permutation Distribution Clustering is a clustering method for time series. Dissimilarity
    of time series is formalized as the divergence between their permutation distributions.
    The permutation distribution was proposed as measure of the complexity of a time
    series.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: pdc
# Type: Package
# Title: Permutation Distribution Clustering
# Version: 1.0.3
# Date: 2015-09-28
# Author: Andreas M. Brandmaier
# Maintainer: Andreas M. Brandmaier <brandmaier@mpib-berlin.mpg.de>
# Description: Permutation Distribution Clustering is a clustering method for time series. Dissimilarity of time series is formalized as the divergence between their permutation distributions. The permutation distribution was proposed as measure of the complexity of a time series.
# License: GPL (>= 3)
# Imports: stats, utils, grDevices, graphics
# Suggests: plotrix, lattice
# NeedsCompilation: yes
# Packaged: 2015-09-28 12:31:31 UTC; brandmaier
# Repository: CRAN
# Date/Publication: 2015-09-28 17:02:34
