{% set version = '0.1.0' %}

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

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

source:
  fn: FField_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/FField_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/FField/FField_{{ version }}.tar.gz
  sha256: 18c5fbcf3f7c9151ee528df3be1156febf5d3f6fc650e1ec829898bdc5360117

build:
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-ggplot2
    - r-gridextra
  run:
    - r-base
    - r-ggplot2
    - r-gridextra

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

about:
  home: https://CRAN.R-project.org/package=FField
  license: GPL-3
  summary: Force field simulation of interaction of set of points. Very useful for placing text
    labels on graphs, such as scatterplots.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

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