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

package:
  name: r-maps
  # Note that conda versions cannot contain -, so any -'s in the version have
  # been replaced with _'s.
  version: "3.1.0"

source:
  fn: maps_3.1.0.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/maps_3.1.0.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/maps/maps_3.1.0.tar.gz


  # You can add a hash for the file here, like md5 or sha1
  # md5: 49448ba4863157652311cc5ea4fea3ea
  # sha1: 3bcfbee008276084cbb37a2b453963c61176a322
  # patches:
   # List any patch files here
   # - fix.patch

build:
  # If this is a new build for the same version, increment the build
  # number. If you do not include this key, it defaults to 0.
  # number: 1

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

# Suggests: mapproj (>= 1.2-0), mapdata (>= 2.2-4), sp, maptools
requirements:
  build:
    - r-base
    - posix               # [win]
    - {{native}}toolchain # [win]
    - gcc                 # [not win]

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('maps')" # [not win]
    - "\"%R%\" -e \"library('maps')\"" # [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:
  license: GPL-2
  summary: Display of maps.  Projection code and larger maps are in separate packages ('mapproj'
    and 'mapdata').
  license_family: GPL2

# The original CRAN metadata for this package was:

# Package: maps
# Title: Draw Geographical Maps
# Version: 3.1.0
# Date: 2016-02-11
# Author: Original S code by Richard A. Becker and Allan R. Wilks. R version by Ray Brownrigg. Enhancements by Thomas P Minka and Alex Deckmyn.
# Description: Display of maps.  Projection code and larger maps are in separate packages ('mapproj' and 'mapdata').
# Depends: R (>= 2.14.0)
# Imports: graphics, utils
# LazyData: yes
# Suggests: mapproj (>= 1.2-0), mapdata (>= 2.2-4), sp, maptools
# License: GPL-2
# Maintainer: Alex Deckmyn <alex.deckmyn@meteo.be>
# NeedsCompilation: yes
# Repository: CRAN
# Packaged: 2016-02-11 19:32:51 UTC; dalex
# Date/Publication: 2016-02-13 19:01:15

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
