{% set version = '1.4.6' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/shape_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/shape/shape_{{ version }}.tar.gz
  sha256: b9103e5ed05c223c8147dbe3b87a0d73184697343634a353a2ae722f7ace0b7b

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

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

requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('shape')"           # [not win]
    - "\"%R%\" -e \"library('shape')\""  # [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://CRAN.R-project.org/package=shape
  license: GPL-3
  summary: Functions for plotting graphical shapes such as ellipses, circles, cylinders, arrows,
    ...
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: shape
# Version: 1.4.6
# Title: Functions for Plotting Graphical Shapes, Colors
# Author: Karline Soetaert <karline.soetaert@nioz.nl>
# Maintainer: Karline Soetaert <karline.soetaert@nioz.nl>
# Depends: R (>= 2.01)
# Imports: stats, graphics, grDevices
# Description: Functions for plotting graphical shapes such as ellipses, circles, cylinders, arrows, ...
# License: GPL (>= 3)
# NeedsCompilation: no
# Packaged: 2021-05-19 06:02:02 UTC; karlines
# Repository: CRAN
# Date/Publication: 2021-05-19 07:20:03 UTC

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