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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/RcppZiggurat_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/RcppZiggurat/RcppZiggurat_{{ version }}.tar.gz
  sha256: db6d5fd3a77ac9473bf21f84b65da3c6e485f9ed33f5313bbf0ec852b71db97e

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

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

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

about:
  home: https://CRAN.R-project.org/package=RcppZiggurat
  license: GPL-2.0-only
  summary: The Ziggurat generator for normally distributed random numbers, originally proposed
    by Marsaglia and Tsang (2000,  <doi:10.18637/jss.v005.i08>) has been improved upon
    a few times starting with Leong et al (2005, <doi:10.18637/jss.v012.i07>). This
    package provides an aggregation in order to compare different implementations in
    order to provide an 'faster but good enough' alternative for use with R and C++
    code.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: RcppZiggurat
# Type: Package
# Title: 'Rcpp' Integration of Different "Ziggurat" Normal RNG Implementations
# Version: 0.1.5
# Date: 2018-06-10
# Author: Dirk Eddelbuettel <edd@debian.org>
# Maintainer: Dirk Eddelbuettel <edd@debian.org>
# Description: The Ziggurat generator for normally distributed random numbers, originally proposed by Marsaglia and Tsang (2000,  <doi:10.18637/jss.v005.i08>) has been improved upon a few times starting with Leong et al (2005, <doi:10.18637/jss.v012.i07>). This package provides an aggregation in order to compare different implementations in order to provide an 'faster but good enough' alternative for use with R and C++ code.
# License: GPL (>= 2)
# Depends: R (>= 3.0.0)
# Imports: Rcpp, parallel, graphics, stats, utils
# Suggests: rbenchmark, microbenchmark, lattice, knitr, rmarkdown, pinp
# VignetteBuilder: knitr
# LinkingTo: Rcpp, RcppGSL
# NeedsCompilation: yes
# Packaged: 2018-06-10 15:52:52.426352 UTC; edd
# Repository: CRAN
# Date/Publication: 2018-06-10 16:57:56 UTC
