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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/clustermq_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/clustermq/clustermq_{{ version }}.tar.gz
  sha256: 8c5dc623de70fa20b561c53441d33480eb79939750df3b73469083832bf1b2dc

build:
  merge_build_host: true  # [win]
  number: 0
  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:
    - zeromq
    - r-base
    - r-r6
    - r-rcpp
    - r-narray
    - r-progress
    - r-purrr
  run:
    - zeromq
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-r6
    - r-rcpp
    - r-narray
    - r-progress
    - r-purrr

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

about:
  home: https://github.com/mschubert/clustermq
  license: Apache-2.0
  summary: Evaluate arbitrary function calls using workers on HPC schedulers in single line of code. All processing is done on the network without accessing the file system. Remote schedulers are supported via SSH.
  license_family: APACHE
  license_file:
    - LICENSE

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

# Package: clustermq
# Title: Evaluate Function Calls on HPC Schedulers (LSF, SGE, SLURM, PBS/Torque)
# Version: 0.8.8.1
# Authors@R: c( person('Michael', 'Schubert', email='mschu.dev@gmail.com', role = c('aut', 'cre', 'cph'), comment = c(ORCID='0000-0002-6862-5221') ), person('EMBL', role = c('cph', 'fnd')) )
# Maintainer: Michael Schubert <mschu.dev@gmail.com>
# Description: Evaluate arbitrary function calls using workers on HPC schedulers in single line of code. All processing is done on the network without accessing the file system. Remote schedulers are supported via SSH.
# URL: https://github.com/mschubert/clustermq
# BugReports: https://github.com/mschubert/clustermq/issues
# Depends: R (>= 3.0.2)
# Imports: narray, progress, purrr, R6, rzmq (>= 0.9.4), utils
# License: Apache License (== 2.0) | file LICENSE
# LazyData: true
# Encoding: UTF-8
# Suggests: devtools, dplyr, foreach, iterators, knitr, parallel, roxygen2 (>= 5.0.0), testthat, tools
# VignetteBuilder: knitr
# RoxygenNote: 6.1.1
# NeedsCompilation: no
# Packaged: 2019-12-18 08:29:04 UTC; mschu
# Author: Michael Schubert [aut, cre, cph] (<https://orcid.org/0000-0002-6862-5221>), EMBL [cph, fnd]
# Repository: CRAN
# Date/Publication: 2019-12-18 10:10:02 UTC
