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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/distrEx_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/distrEx/distrEx_{{ version }}.tar.gz
  sha256: eda1f11afa07fa7e88fded42702eb24db802fe48df4d168ce8c86fde5d3a0e56

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

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{native}}toolchain        # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-distr >=2.2
    - r-startupmsg
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-distr >=2.2
    - r-startupmsg

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

about:
  home: http://distr.r-forge.r-project.org/
  license: LGPL-3
  summary: Extends package 'distr' by functionals, distances, and conditional distributions.
  license_family: LGPL
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/LGPL-3'

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

# Package: distrEx
# Version: 2.7.0
# Date: 2018-07-08
# Title: Extensions of Package 'distr'
# Description: Extends package 'distr' by functionals, distances, and conditional distributions.
# Depends: R(>= 2.10.0), methods, distr(>= 2.2)
# Imports: startupmsg, utils, stats
# Suggests: tcltk
# Authors@R: c(person("Matthias", "Kohl", role=c("cre", "cph"), email="Matthias.Kohl@stamats.de"), person("Peter", "Ruckdeschel", role=c("aut", "cph")))
# ByteCompile: yes
# License: LGPL-3
# Encoding: latin1
# URL: http://distr.r-forge.r-project.org/
# LastChangedDate: {$LastChangedDate: 2018-07-08 16:31:26 +0200 (So, 08. Jul 2018) $}
# LastChangedRevision: {$LastChangedRevision: 1187 $}
# SVNRevision: 1186
# NeedsCompilation: yes
# Packaged: 2018-07-22 18:17:10 UTC; kohlm
# Author: Matthias Kohl [cre, cph], Peter Ruckdeschel [aut, cph]
# Maintainer: Matthias Kohl <Matthias.Kohl@stamats.de>
# Repository: CRAN
# Date/Publication: 2018-07-22 20:40:07 UTC
