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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/processx_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/processx/processx_{{ version }}.tar.gz
  sha256: 14a7305c4ec5a78a7a656d79e9ff0fc1d134671c924ae5941e6cab634ef472ea

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

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{native}}toolchain        # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-r6
    - r-ps
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-r6
    - r-ps

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

about:
  home: https://github.com/r-lib/processx#readme
  license: MIT
  summary: Tools to run system processes in the background. It can check if a background process
    is running; wait on a background process to finish; get the exit status of finished
    processes; kill background processes. It can read the standard output and error
    of the processes, using non-blocking connections. 'processx' can poll a process
    for standard output or error, with a timeout. It can also poll several processes
    at once.
  license_family: MIT

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

# Package: processx
# Title: Execute and Control System Processes
# Version: 3.2.1
# Authors@R: c( person("Gabor", "Csardi", role = c("aut", "cre", "cph"), email = "csardi.gabor@gmail.com", comment = c(ORCID = "0000-0001-7098-9676")), person("Winston", "Chang", role = "aut"), person("RStudio", role = c("cph", "fnd")), person("Mango Solutions", role  = c("cph", "fnd")))
# Description: Tools to run system processes in the background. It can check if a background process is running; wait on a background process to finish; get the exit status of finished processes; kill background processes. It can read the standard output and error of the processes, using non-blocking connections. 'processx' can poll a process for standard output or error, with a timeout. It can also poll several processes at once.
# License: MIT + file LICENSE
# LazyData: true
# URL: https://github.com/r-lib/processx#readme
# BugReports: https://github.com/r-lib/processx/issues
# RoxygenNote: 6.1.1
# Imports: ps, R6, utils
# Suggests: callr, covr, crayon, debugme, parallel, testthat, withr
# Encoding: UTF-8
# NeedsCompilation: yes
# Packaged: 2018-12-04 23:16:03 UTC; gaborcsardi
# Author: Gabor Csardi [aut, cre, cph] (<https://orcid.org/0000-0001-7098-9676>), Winston Chang [aut], RStudio [cph, fnd], Mango Solutions [cph, fnd]
# Maintainer: Gabor Csardi <csardi.gabor@gmail.com>
# Repository: CRAN
# Date/Publication: 2018-12-05 07:40:06 UTC
