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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/BWStest_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/BWStest/BWStest_{{ version }}.tar.gz
  sha256: faff1dd698f1673a6befacb94d14281077d4c19be035a0a3bf85d77c1dfd5509

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

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('cxx') }}      # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('m2w64_cxx') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-rcpp >=0.12.3
    - r-memoise
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=0.12.3
    - r-memoise

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

about:
  home: https://github.com/shabbychef/BWStest
  license: LGPL-3.0-only
  summary: Performs the 'Baumgartner-Weiss-Schindler' two-sample test of equal probability distributions,
    <doi:10.2307/2533862>. Also performs similar rank-based tests for equal probability
    distributions due to Neuhauser <doi:10.1080/10485250108832874> and Murakami <doi:10.1080/00949655.2010.551516>.
  license_family: LGPL
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/LGPL-3

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

# Package: BWStest
# Type: Package
# Maintainer: Steven E. Pav <shabbychef@gmail.com>
# Authors@R: c(person(c("Steven", "E."), "Pav",  role=c("aut","cre"), email="shabbychef@gmail.com", comment = c(ORCID = "0000-0002-4197-6195")))
# Version: 0.2.2
# Date: 2018-10-17
# License: LGPL-3
# Title: Baumgartner Weiss Schindler Test of Equal Distributions
# BugReports: https://github.com/shabbychef/BWStest/issues
# Description: Performs the 'Baumgartner-Weiss-Schindler' two-sample test of equal probability distributions, <doi:10.2307/2533862>. Also performs similar rank-based tests for equal probability distributions due to Neuhauser <doi:10.1080/10485250108832874> and Murakami <doi:10.1080/00949655.2010.551516>.
# Imports: memoise, Rcpp (>= 0.12.3)
# LinkingTo: Rcpp
# Suggests: testthat
# RoxygenNote: 6.0.1
# URL: https://github.com/shabbychef/BWStest
# Collate: 'bws_test.r' 'BWStest.r' 'RcppExports.R' 'zzz_murakami_dist.r'
# NeedsCompilation: yes
# Packaged: 2018-10-18 03:57:03 UTC; spav
# Author: Steven E. Pav [aut, cre] (<https://orcid.org/0000-0002-4197-6195>)
# Repository: CRAN
# Date/Publication: 2018-10-18 11:40:11 UTC
