{% set version = '3.4-3' %}

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

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

source:
  fn: RFOC_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/RFOC_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/RFOC/RFOC_{{ version }}.tar.gz
  sha256: 8d5d9947353e1fe19471f035d7a193f88dc9a9cf1ef0db20f7986677c531d512

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-geomap
    - r-mass
    - r-rpmg
    - r-rseis
    - r-splancs

  run:
    - r-base
    - r-geomap
    - r-mass
    - r-rpmg
    - r-rseis
    - r-splancs

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

about:
  home: https://CRAN.R-project.org/package=RFOC
  license: GPL (>= 2)
  summary: Graphics for statistics on a sphere, as applied to geological fault data, crystallography,
    earthquake focal mechanisms, radiation patterns, ternary plots and geographical/geological
    maps.  Non-double couple plotting of focal spheres and source type maps are included
    for statistical analysis of moment tensors.
  license_family: GPL3

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