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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/kmlShape_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/kmlShape/kmlShape_{{ version }}.tar.gz
  sha256: 617542d4981bb3ae5b839358e446b00c0706185d4d4f8f0efe561284258c65dc

build:
  merge_build_host: True  # [win]
  skip: True  # [osx]
  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]
    - {{ cdt('mesa-libgl-devel') }}  # [linux]
    - {{ cdt('mesa-dri-drivers') }}  # [linux]
    - {{ cdt('libselinux') }}  # [linux]
    - {{ cdt('libxdamage') }}  # [linux]
    - {{ cdt('libxxf86vm') }}  # [linux]
    - xorg-libxfixes           # [linux]
  host:
    - r-base
    - r-class
    - r-kml
    - r-lattice
    - r-longitudinaldata
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-class
    - r-kml
    - r-lattice
    - r-longitudinaldata

test:
  requires:
    - xorg-libxfixes  # [linux]
  commands:
    - LD_LIBRARY_PATH=${BUILD_PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib64 $R -e "library('kmlShape')"           # [not win]
    - "\"%R%\" -e \"library('kmlShape')\""  # [win]

about:
  home: http:www.r-project.org
  license: GPL-2.0-only
  summary: K-means for longitudinal data using shape-respecting distance and shape-respecting
    means.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: kmlShape
# Type: Package
# Title: K-Means for Longitudinal Data using Shape-Respecting Distance
# Version: 0.9.5
# Date: 2016-03-08
# Authors@R: c(person("Christophe","Genolini",role=c("cre","aut"),email="christophe.genolini@u-paris10.fr"),person("Elie","Guichard",role=c("ctb")))
# Description: K-means for longitudinal data using shape-respecting distance and shape-respecting means.
# License: GPL (>= 2)
# LazyData: yes
# Depends: methods,class,longitudinalData,kml,lattice
# URL: http:www.r-project.org
# Collate: global.R plot.R clds.R reduceTraj.R distanceFrechet.R meanFrechet.R parKmlShape.R kmlShape.R
# Encoding: latin1
# KeepSource: TRUE
# NeedsCompilation: yes
# Packaged: 2016-03-04 21:25:18 UTC; Christophe
# Author: Christophe Genolini [cre, aut], Elie Guichard [ctb]
# Maintainer: Christophe Genolini <christophe.genolini@u-paris10.fr>
# Repository: CRAN
# Date/Publication: 2016-03-05 00:22:43
