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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/libcoin_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/libcoin/libcoin_{{ version }}.tar.gz
  sha256: 0a744164e00557d2f3e888d14cfd6108d17c14e983db620f74c7a5475be8a9b2

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

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

about:
  home: https://CRAN.R-project.org/package=libcoin
  license: GPL-2
  summary: Basic infrastructure for linear test statistics and permutation inference in the framework
    of Strasser and Weber (1999) <http://epub.wu.ac.at/102/>. This package must not
    be used by end-users. CRAN package 'coin' implements all user interfaces and is
    ready to be used by anyone.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: libcoin
# Title: Linear Test Statistics for Permutation Inference
# Date: 2019-08-22
# Version: 1.0-5
# Authors@R: person("Torsten", "Hothorn", role = c("aut", "cre"), email = "Torsten.Hothorn@R-project.org")
# Description: Basic infrastructure for linear test statistics and permutation inference in the framework of Strasser and Weber (1999) <http://epub.wu.ac.at/102/>. This package must not be used by end-users. CRAN package 'coin' implements all user interfaces and is ready to be used by anyone.
# Depends: R (>= 3.4.0)
# Suggests: coin
# Imports: stats, mvtnorm
# LinkingTo: mvtnorm
# NeedsCompilation: yes
# License: GPL-2
# Packaged: 2019-08-27 08:15:00 UTC; hothorn
# Author: Torsten Hothorn [aut, cre]
# Maintainer: Torsten Hothorn <Torsten.Hothorn@R-project.org>
# Repository: CRAN
# Date/Publication: 2019-08-27 08:50:02 UTC
