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

package:
  name: r-geomap
  version: "2.3_8"
source:
  fn: GEOmap_2.3-8.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/Archive/GEOmap/GEOmap_2.3-8.tar.gz
  md5: 3207abd337906a9345fc6d2be6c2c212
build:
  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-mba
    - r-rpmg
    - r-fields
    - r-splancs
    - posix               # [win]
    - {{native}}toolchain # [win]
    - gcc                 # [not win]
  run:
    - r-base
    - r-mba
    - r-rpmg
    - r-fields
    - r-splancs
test:
  commands:
    - $R -e "library('GEOmap')" # [not win]
    - "\"%R%\" -e \"library('GEOmap')\"" # [win]
about:
  #home:
  license: GPL (>= 2)
  summary: Set of routines for making Map Projections (forward and inverse), Topographic Maps,
    Perspective plots, Geological Maps, geological map symbols, geological databases,
    interactive plotting and selection of focus regions.
  license_family: GPL3
