{% set version = '1.6' %}

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

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

source:
  fn: BatchJobs_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/BatchJobs_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/BatchJobs/BatchJobs_{{ version }}.tar.gz
  sha256: 40ed6d2ed287424d2d177560719e0e74aded25a1cb08c1985f054649044869cd

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-bbmisc >=1.9
    - r-dbi
    - r-rsqlite >=1.0.0
    - r-brew
    - r-checkmate >=1.5.1
    - r-digest
    - r-fail >=1.2
    - r-sendmailr
    - r-stringr

  run:
    - r-base
    - r-bbmisc >=1.9
    - r-dbi
    - r-rsqlite >=1.0.0
    - r-brew
    - r-checkmate >=1.5.1
    - r-digest
    - r-fail >=1.2
    - r-sendmailr
    - r-stringr

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

about:
  home: https://github.com/tudo-r/BatchJobs
  license: BSD_2_clause
  summary: Provides Map, Reduce and Filter variants to generate jobs on batch computing systems
    like PBS/Torque, LSF, SLURM and Sun Grid Engine. Multicore and SSH systems are also
    supported. For further details see the project web page.
  license_family: BSD

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
