{% set version = '1.7.5' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ps_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ps/ps_{{ version }}.tar.gz
  sha256: 1abc3ae3c55797b994973f7e43bf5c7bbb4da649a0dcfad36675e196dba4cb4e

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: callr, covr, curl, pillar, pingr, processx (>= 3.1.0), R6, rlang, testthat (>= 3.0.0), webfakes
requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}sed               # [win]
    - {{ posix }}grep              # [win]
    - {{ posix }}autoconf
    - {{ posix }}automake          # [not win]
    - {{ posix }}automake-wrapper  # [win]
    - {{ posix }}pkg-config
    - {{ posix }}make
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base
    - {{native}}gcc-libs         # [win]

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('ps')"           # [not win]
    - "\"%R%\" -e \"library('ps')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/r-lib/ps#readme, https://ps.r-lib.org/
  license: MIT
  summary: List, query and manipulate all system processes, on 'Windows', 'Linux' and 'macOS'.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: ps
# Title: List, Query, Manipulate System Processes
# Version: 1.7.5
# Authors@R: c( person("Jay", "Loden", role = "aut"), person("Dave", "Daeschler", role = "aut"), person("Giampaolo", "Rodola'", role = "aut"), person("Gabor", "Csardi", , "csardi.gabor@gmail.com", role = c("aut", "cre")), person("RStudio", role = c("cph", "fnd")) )
# Description: List, query and manipulate all system processes, on 'Windows', 'Linux' and 'macOS'.
# License: MIT + file LICENSE
# URL: https://github.com/r-lib/ps#readme, https://ps.r-lib.org/
# BugReports: https://github.com/r-lib/ps/issues
# Depends: R (>= 3.4)
# Imports: utils
# Suggests: callr, covr, curl, pillar, pingr, processx (>= 3.1.0), R6, rlang, testthat (>= 3.0.0), webfakes
# Biarch: true
# Encoding: UTF-8
# RoxygenNote: 7.2.1
# Config/testthat/edition: 3
# Config/Needs/website: tidyverse/tidytemplate
# NeedsCompilation: yes
# Packaged: 2023-04-18 14:27:32 UTC; gaborcsardi
# Author: Jay Loden [aut], Dave Daeschler [aut], Giampaolo Rodola' [aut], Gabor Csardi [aut, cre], RStudio [cph, fnd]
# Maintainer: Gabor Csardi <csardi.gabor@gmail.com>
# Repository: CRAN
# Date/Publication: 2023-04-18 19:30:02 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
